PS C:\Users\damir> mountvol X: /s
PS C:\Users\damir>
PS C:\Users\damir> copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y
Copy-Item : A positional parameter cannot be found that accepts argument '/Y'.
At line:1 char:1
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Absolute rubbish. The poster should be ashamed of himself.
This "solution" has been posted around multiple sites for years, and hasn't worked in about as long.
Those commands are meant to be run in "An Elevated Command Prompt" (cmd) not Powershell. If anyone else has these issues please use cmd.
@cacodemon9000 : Please take note of what botmoto has commented above.
@e0i : Looks like this issue can be closed (unless you know of a reason to keep it open).
Please update the commands above to reflect the correct syntax and switches. (i.e. mountvol’s depreciated /s)
I presume you mean _deprecated_ -- but which version(s) are affected? I tested it on an updated Windows Server 2016 a couple of weeks ago and it seemed to work OK then.
Please have a look at issue ticket #3234 for a closely related discussion on this topic.
@cacodemon9000. I have an idea. Copy the secconfig.efi to C:\EFI\Microsoft\Boot\
and then boot the computer by using windows dvd into windows RE mode.
Go to the command prompt , use diskpart, format the efi partition , assign drive letter .exit
use bcdboot command to copy required files to efi partition
exit and restart the windows
@cacodemon9000 : Please take note of what botmoto has commented above.
@e0i : Looks like this issue can be closed (unless you know of a reason to keep it open).
@officedocsbot close
Most helpful comment
Those commands are meant to be run in "An Elevated Command Prompt" (cmd) not Powershell. If anyone else has these issues please use cmd.