Thanks to The Microsoft Scripting Guys and their project at: for having that GUID constant that links to the current Boot Manager. In fact, Windows provides boot manager to manage multi operating systems and it helps you boot from either. Note Before setting BCDEdit options you might need to disable or suspend BitLocker and Secure Boot on the computer. " which is a link to the current Boot Manager. To add a new boot entry, open a Command Prompt window with elevated privileges (select and hold (or right-click) Command Prompt and select Run as administrator from the shortcut menu). ![]() ManagementScope managementScope = new connectionOptions) The ManagementScope is used to access the WMI info as Administrator 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
0 Comments
Leave a Reply. |