|
![]() |
|
|||||||
![]() |
ICT-Hotlist TopicDisable 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 systemWarning : Use these steps at your own risk. Disabling Windows to boot makes the system unusable unless repaired using CD/DVD media or WDS.Windows bootmanagerWindows 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:
bcdedit
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. C:\>bcdedit 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
You may vote your opinion about this article:
![]() ![]() ![]() ![]() ![]() Scripts and programming examples disclaimerUnless 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. |