I am making an attempt at my first powershell script and getting a bad parameter error when running the following code. How can I pass the argument to the command in powersehll?
& "bcdedit" /store c:\boot\bcd /set {bootmgr} device partition=C:
EDIT:
The working code for this is:
& "bcdedit" /store c:\boot\bcd /set "{bootmgr}" device partition=C:
The curly brackets threw everything off. Putting quotes around
{bootmgr}fixed the problem.