Windows-itpro-docs: DOES NOTHING

Created on 23 Oct 2018  Â·  8Comments  Â·  Source: MicrosoftDocs/windows-itpro-docs

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

  • copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig. ...
  • ~~~~~~~~~~~~~~~~~

    • CategoryInfo : InvalidArgument: (:) [Copy-Item], ParameterBindingException

    • FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

      PS C:\Users\damir>

      PS C:\Users\damir> bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader

      Invalid command line switch: /encodedCommand

      Run "bcdedit /?" for command line assistance.

      The parameter is incorrect.

      PS C:\Users\damir>

      PS C:\Users\damir> bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"

      The set command specified is not valid.

      Run "bcdedit /?" for command line assistance.

      The parameter is incorrect.

      PS C:\Users\damir>

      PS C:\Users\damir> bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}

      bcdedit.exe : The command parameter was already specified.

      At line:1 char:1

  • bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d ...
  • ~~~~~~~~~~~~~~~~~

    • CategoryInfo : InvalidArgument: (:) [], ParameterBindingException

    • FullyQualifiedErrorId : ParameterSpecifiedAlready

      PS C:\Users\damir>

      PS C:\Users\damir> bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO

      The set command specified is not valid.

      Run "bcdedit /?" for command line assistance.

      The parameter is incorrect.

      PS C:\Users\damir>

      PS C:\Users\damir> bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:

      The set command specified is not valid.

      Run "bcdedit /?" for command line assistance.

      The parameter is incorrect.

      PS C:\Users\damir>

      PS C:\Users\damir> mountvol X: /d


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author credential guard identity protection security

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.

All 8 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andrewpong picture andrewpong  Â·  3Comments

iadgovuser1 picture iadgovuser1  Â·  3Comments

thohun picture thohun  Â·  3Comments

Ludwig1770 picture Ludwig1770  Â·  3Comments

RAJU2529 picture RAJU2529  Â·  3Comments