J. Scott Elblein
J. Scott Elblein

Reputation: 4283

Restart only the Windows OS (not the whole computer) via .NET?

I know that it's possible to manually restart only Windows by holding down the Shift key, clicking restart and then the OK button, but is there a way to do this programatically in a .NET app?

Upvotes: -1

Views: 380

Answers (1)

Orion Edwards
Orion Edwards

Reputation: 123662

I assume you're referring to this microsoft knowledgebase article about restarting windows without restarting the PC - which is also referenced here on wikipedia ?

You'll note that this refers only to windows 95, 98 and ME. It makes sense in that context, as those versions of windows ran on top of MS-DOS, and so I'm assuming that it restarted the windows layer without restarting the DOS layer underneath it.

On later versions of windows, holding the shift key will have no effect, as they don't run on top of DOS. Restarting windows is restarting the whole computer, as there's no "layer underneath it".

Upvotes: 8

Related Questions