CMD run as administrator registry


  1. Posts : 6
    Windows 10 64bit Edu
       #1

    CMD run as administrator registry


    We have an automated sysprep process that works fine for windows 8 but not in windows 10.

    The whole process runs when run manually through an elevated cmd prompt but after sysprep i need the cmd prompts to be automatically elevated to prompt for a computer name change.

    In windows 8 you could add a registry entry that would allow the cmd prompt to elevate without prompt.
    [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
    "C:\Windows\System32\cmd.exe"="RUNASADMIN"

    this is no longer a working option in windows 10.
    Any one know any other ways around it?
      My Computer


  2. Posts : 19,518
    W11+W11 Developer Insider + Linux
       #2

    Hope Kari sees this, if not send him a message, he's authority for sysprep around here.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:10.
Find Us




Windows 10 Forums