


Note: Ensure you Enable all Microsoft services when you are done. Thanks to The Microsoft Scripting Guys and their project at: for having that GUID constant that links to the current Boot Manager. Click Open Task Manager and enable all of your startup programs. " which is a link to the current Boot Manager. ManagementScope managementScope = new connectionOptions) Click the Start button, type msconfig in the search box, and then press Enter to start the System Configuration utility. Click on the Startup Repair link from list of recovery tools in System Recovery Options. Click Repair Your Computer and then select the operating system you want to repair. Select the previous version which you wish to delete from the boot order. There, you will find a listing of the bootable OS versions. Click on the search result showing ‘msconfig’ executable file and in the window that opens, choose the ‘Boot’ tab. The ManagementScope is used to access the WMI info as Administrator Insert the Windows 7 DVD and restart your computer. To do that, type ‘ msconfig ‘ in the search box of your Windows 7 installed version. There seem to be many problems accessing bcdedit.exe directly but I was able to figure out how to use WMI in C# to access the BcdStore: ConnectionOptions connectionOptions = new ConnectionOptions() ĬonnectionOptions.Impersonation = ImpersonationLevel.Impersonate ĬonnectionOptions.EnablePrivileges = true
