What Exactly Happens When You Shut Down or Sign Out of Windows?

It’s the end of a long day. You have been working long hours, and are getting ready to close up shop. And as you prepare to power down, you notice Windows lists multiple options to shut down your PC.

Most are familiar, of course, but one or two you may just have noticed now.

To fix various Windows 10 problems, we recommend Outbyte PC Repair:
This software will repair common computer errors, protect you from file loss, malware damage, hardware failure, and optimise your computer for peak performance. In three simple steps, you can resolve PC issues and remove virus damage:

  1. Download Outbyte PC Repair Software
  2. Click Start Scan to detect Windows 10 issues that may be causing PC issues.
  3. Click Repair All to fix issues with your computer's security and performance.
    This month, Outbyte has been downloaded by 26,078 readers.

Or what about the time when you call in your hardware, software or network support, and they guide you through the process of fixing your problem? You may get suggestions to reboot or restart your computer, shut down or log off — enough to make you dizzy!

Time to clear the confusion.

The Windows Shutdown Process

Windows does a lot of work in the background every time you boot up, restart, and shutdown your computer. Likewise, when you sign in and out of your machine, or switch users. These standard processes are necessary to ensure that all your work is saved, and applications data is secured, before your hardware powers off.

Newer versions of the operating system, Windows 10 in particular, have streamlined these routines.

But this was not always the case.

Back in Windows 95, some of you may remember, the OS displayed a “It’s now safe to turn off your computer.” message to confirm that it was okay for you to press the power button. Yes, you had to physically power of the PC yourself to finish the shutdown process.

safe to turn off

That all changed with the advent of the Advanced Configuration and Power Interface (ACPI) standard that was first released in 1996. It allowed Windows to power off your devices itself.

Today, computers come with power buttons, not those vintage on/off switches. In addition to that, you don’t even turn off a PC. Instead, the machine methodically plods through what is conveniently called the shutdown process.

We’ll take a look at what each option does below. But first, a brief overview of the shutdown process itself, and what actually happens whenever you shut down your PC.

  How to Set Shutdown Timer on Windows 10

What happens when you shut down your PC?

A lot. The shutdown process is overall formal, and for a reason. Windows has several checks in place before programs are closed and users are logged out. It is only after ensuring that everything is properly closed that the OS begins to halt and shut itself down.

The following is what happens when you initiate shut down of your computer:

User check takes place

The first thing that happens is that Windows does a user check to find out whether other users are logged into the computer, or another account is used on the same PC. If it sees this, the operating system alerts you by asking and confirming whether you want to actually shut down.

You may be familiar with this check that takes place, most notably when you have other programs running or have unsaved documents. It is here you can click on No to cancel the operation.

closing one app

Programs are closed

After confirming that you really want to shut down your PC, Windows begins the process by shutting down any programs, windows, or processes that you are running. The OS compiles a list and sifts through that to send a shutdown signal to every program that is open. In case a program contains unsaved data, it usually prompts you to save the data to continue before it can exit. And when a program can’t be stopped, Windows prompts you to end it by force.

You still have the option of clicking on No to cancel the operation here, if you have changed your mind or initiated the shutdown process in by mistake.

Users are logged out

After programs and processes that belong to you have been stopped, Windows now gets down to the business of ending your session. This is straightforward enough — the operating system simply logs you out to end your session.

Windows is halted

Now comes the big deal. If things go according to plan, Windows now gets ready to halt itself. This part is where the operating system shuts down, bit by bit, as all active services are closed. Windows basically needs to make sure that all associated programs, services, and processes are all safely ended, and your next restart does not create issues or problems.

Shutdown signal is sent

After Windows is done with itself, and safely halted operations, it then sends a signal to the power management hardware of your computer to turn off the power. That is, if you have such hardware in place. Otherwise, you are presented with a message that it is now safe to turn off your PC, like the good old days of the 90s.

  Difference Between Sleep, Hibernate and Hybrid Sleep

Dirty Bit

How about we get just a little bit technical? One mystery that had gone unresolved for the longest of time is of what is called the Dirty Bit. This is a feature that controls the shutdown and boot process on computers that Microsoft did not reveal.

Until recently.

Basically, this is just a 1 hex value that is hidden somewhere on the hard drive, which Windows checks to determine if a volume may have corrupted files due to your PC being reset while files were still open. It also comes in play when you unplug a USB flash drive in the midst of copying a file.

What actually happens is that the Dirty Bit is set on your system early in the boot process. In a controlled shutdown, sleep, or hibernate process, this bit is cleared. But in a sudden or uncontrolled shutdown like during a crash or when you manually power off, the Dirty Bit is left on and not flushed.

preparing automatic repair

The Dirty Bit is what asks Windows to check your disk for consistency before the OS is loaded.

If the Dirty Bit is found upon the next reboot, it induces the disk diagnostic tools built into Windows. You can, obviously, skip disk checking by pressing any key during the loading process, but the prompt will come back again the next time you restart your computer. This will keep on happening until you let the drive to be scanned, or specifically ask Windows to stop checking that specific drive.

A look at the options

Microsoft, understanding that powering down your computer is not always what a user needs to do, designed several shutdown options in the operating system to provide more convenient options for Windows users depending on their needs.

Imagine having to shut down and power back on just to log in using a different account!

working on updates

Available options include Shut Down, Restart (or Reboot), Hibernate, Log Off, Switch User, and Lock Computer. You may also get a few other choices, depending on if you have updates pending to be deployed on your system. In those cases, Windows will give you the choice of install updates and restart, for example.

So, what exactly does each do and when is it best to use them?

Let’s check:

  5 Ways to Turn off Laptop Screen Lid

Power on

To power on a system means to simply press the power button on your computer, and let the system come up to a login prompt. If you enter your user name and password here, you have gone one step further and actually logged on to your system.

Log in

Also known as log on, this is when you enter your username and password after your computer has booted up. After that instance, you can simply log off or log in and out by switching to another account without shutting down your computer.

Log off

To log off a system means that the user that is currently logged on has ended their session, but the left the computer running for someone else to use. Log out comes in really handy in cases where you want to prevent other users from accessing your private documents, saved passwords, files and other data.

Plus, it is also faster than a full restart, making this generally a better choice for PCs that are shared between multiple users in a business, work or school environment.

Switch account

It’s easy to get this option confused with log on or off. But switch account takes your enter Windows session and sets it aside, then returns you to the login screen. This allows you, or someone else, to sign in with another account.

Once you want to sign back in to your original account, you can simply switch back in and get back to your previous environment.

Lock computer

Locking your computer is a great way to protect your programs and data for when you are about to step away from your PC. This option does not close any applications or documents that you may have open and working on. It merely prohibits others from using your machine in your absence.

Shut down

This is the process of powering down or powering off your system. That is, once the shutdown process is complete, the machine becomes inactive, and will not come back up again until someone takes further action like pressing the power button to turn it on again.

Shutting down our computer instructs Windows to close all running programs, log all users out, and then completely shut off your machine. Once Windows shuts down properly after saving all the necessary data to the drive, the hard drive stops spinning or the SSD is powered off, with a signal sent indicating that your system data has been saved to the physical disk. Your computer is then turned off.

Some PCs still use a trickle of power even in this state, mostly to monitor the power button.


Rebooting or restarting is when Windows turns your machine off and back on again quickly. The OS basically safely saves your data, turns off the computer for a moment and then turns it back on again.

This makes restarts best for when your PC is running unusually slow or if a program has locked up your system. A reboot is also performed as a troubleshooting step, and can fix many an unexpected problem. It may also be required after a new program is installed, or when Windows deploys and update or new versions of itself.


Putting your computer to sleep does not shut down the computer, but puts it in a state that uses very little power. This is a neat option for when you want to conserve power, yet need to get back to your desktop quick, near instantly.

Not all desktop computer, laptops or tablets have this option, and the same goes for hibernate below.


And finally, the hibernate option. This works in a similar way, except it turns off the machine. What makes this really useful is that it remembers what you were doing. So, when you return back to work, you can pick up where you left off.

shutting down

Clearing the confusion

Hopefully, the explanations above do a good job of helping you differentiate between the various power and sign in options in Windows. Many users frequently have difficulty with these concepts.

Specifically, when dealing with tech support staff who often guide you with vague instructions one after the other like “log off your PC” or “switch your account” and “power down the system”. Confusion between these terms can not only cause problems, but also waste time for everyone involved. Fingers crossed, you also learned a bit about the technical aspects of each option, and what goes on behind the scenes. And are better prepared to deal with these options as they come up next time.


Microsoft has built in a bunch of options to power down and log out of your system, and Windows 10 implements these in the best possible fashion. It is important to understand the shutdown process, if you deal with these options on a daily basis, or want to troubleshoot an issue with your PC.

One thing is for sure: You’ll never look at these options in the same way, once you do!

4 thoughts on “What Exactly Happens When You Shut Down or Sign Out of Windows?”

  1. Thanks for the very good overview of the PC Windows 10 choices in various modes! Much Appreciated!

    Please make one note… In a sentence above..”When dealing with technical stuff”… I believe you meant STAFF not STUFF as you followed with “WHO”. I know what you meant. Thanks!

  2. Thanks for this very interesting article.
    I would like to see a similar paper about turn on and Windows 10 login processes.
    Is there any program that shows what is happening step by step in these processes?
    Like those that open a window when you are installing a new program and you choose to see the details.

  3. Sleep: leaves your current session in memory, and retains power to the memory, for a quick return. If the power goes off while you are in sleep mode, the memory content (and therefore the session) is lost, and startup is a normal boot as if it had been a power off shutdown. This is the inherent danger of sleep mode, some power must remain at all times.

    Hibernate: the current session and memory content are saved to HDD, in the hibernate file. Machine them powers off. Upon power on, the machine boots, and finished the boot process by loading the saved data in the hibernate file back into memory, and then resumes the session from where it was left off. Hibernate is slower than sleep because of the need to write/read gigabytes of memory content to the HDD, but safer as power off makes no difference.



Leave a Comment