Please wait,
Processing your request...

  Business logo  
  ... | Selecteer de Nederlandse taal | Print this page. | Linkedin page of Johan van Soest | User: Guest | Login

Postcard image. Click this to mail to Johan


ICT-Hotlist Topic

Back to the ICT-Hotlist...
Don't miss the latest updates

Disable a Windows (server) system.

On Windows server 2003 and Windows server 2003 r2 (and Windows XP) you could disable a server by removing the NTLDR file from the C:\ root folder. Once the NT Loader file was removed by an administrator, the system will not boot.
With Windows Vista, Windows 7 and Windows server 2008 Microsoft introduced a new boot management system, so this trick will not work any more.

Disable boot of a Windows server 2008 and Vista and newer operating system

Warning : Use these steps at your own risk. Disabling Windows to boot makes the system unusable unless repaired using CD/DVD media or WDS.

Windows bootmanager

Windows server 2008r2, 2012R2 and Windows 7, 8.1 and 10 use the new bootmanager to describe the diskpartitions and operating systems to load. These partitions can be viewed by entering the command:
Next you have to remove all the partition references by using the command:
bcdedit /delete <Partition ID> /f
An actual example with the shutdown command issued:
Warning : Use these steps at your own risk. Disabling Windows to boot makes the system unusable unless repaired using CD/DVD media or WDS.

Windows Boot Manager
identifier              {bootmgr}
device                  partition=\Device\HarddiskVolume1
description             Windows Boot Manager
locale                  en-us
inherit                 {globalsettings}
default                 {default}
resumeobject            {14f34e48-37c6-11e0-a3cd-d85edc162383}
displayorder            {default}
toolsdisplayorder       {memdiag}
timeout                 30

Windows Boot Loader
identifier              {default}
device                  partition=C:
path                    \windows\system32\winload.exe
description             Windows Server 2008 R2
locale                  en-us
inherit                 {bootloadersettings}
osdevice                partition=C:
systemroot              \windows
resumeobject            {14f34e48-37c6-11e0-a3cd-d85edc162383}
nx                      OptOut
detecthal               Yes

C:\>bcdedit /delete {default} /f
The operation completed successfully.

C:\>bcdedit /delete {bootmgr} /f
The operation completed successfully.

C:\>shutdown /s /t 00 /f
Warning : Remember to wipe or destroy data disks. This procedure only disables the booting of a system, the disks retain all the data.
You may vote your opinion about this article:

Topic created  :  01-05-2017
Topic last edited  :  11-05-2017

Scripts and programming examples disclaimer

Unless stated otherwise, the script sources and programming examples provided are copyrighted freeware. You may modify them, as long as a reference to the original code and hyperlink to the source page is included in the modified code and documentation. However, it is not allowed to publish (copies of) scripts and programming examples on your own site, blog, vlog, or distribute them on paper or any other medium, without prior written consent.
Many of the techniques used in these scripts, including but not limited to modifying the registry or system files and settings, impose a risk of rendering the Operating System inoperable and loss of data. Make sure you have verified full backups and the associated restore software available before running any script or programming example. Use these scripts and programming examples entirely at your own risk. All liability claims against the author in relation to material or non-material losses caused by the use, misuse or non-use of the information provided, or the use of incorrect or incomplete information, are excluded. All content is subject to change and provided without obligation.
Generated by WebHalla™ Version 0.1.e.2 : Tuesday 22-1-2019 © Copyright 1995-2019 Johan van Soest
Response Form    Cookie- and Privacy statement
Weather in Waalre by OpenWeatherMap logo mist
Temperature -3.76 °C mist
Humidity 85 % mist
Air pressure 1017 hPa mist
Wind speed 2.1 m/s mist
Wind direction South South mist