Running msc files in Admin ?


  1. Posts : 98
    Windows10
       #1

    Running msc files in Admin ?


    If I want to run Group Policy editor in administration mode, what command must be used before gpedit.msc so the group policy editor runs in Administrator mode ?
      My Computer


  2. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #2

    Run it from a Elevated Command Prompt?????
      My Computers


  3. Posts : 165
    Windows 10 Professional x64
       #3

    Ztruker, that seems very valid.

    You can also find it in here "C:\Windows\System32\gpedit.msc" with the file explorer, right-click and choose run as admin. But beware when playing with this, since I suppose you're new to Windows !
      My Computer


  4. Posts : 98
    Windows10
    Thread Starter
       #4

    That is what I was trying to do, why I posted the message. Hrm, alright thanks.
      My Computer


  5. Posts : 165
    Windows 10 Professional x64
       #5

    If you're looking for an easy way to get an elevated command line, right-click on the start menu icon, you will get a menu with an appropriate option.

    EDIT : Sorry I read too quickly, you want to know what to put before gpedit to have it run as an admin. Well, to my knowledge there's no secure way to do this. You could use the runas command, but it asks for the password outside User Account Control, which is bad. However, you could modify a copy of the Microsoft Management Console executable's manifest, changing its requested execution level from asHighest to asAdmin. This can be done with the CFF Explorer utility, part of the Explorer suite freely available at ntcore.com.

    Then type the following on the command line :

    yourmmc gpedit.msc

    You will then get an elevation prompt. But considering you'll get a UAC prompt anyway, I suppose the solution in my previous post remains better !
    Last edited by NovHak; 04 May 2016 at 22:05.
      My Computer


  6. Posts : 98
    Windows10
    Thread Starter
       #6

    NovHak thanks for the tip, I did manage to get Local Group Policy to run as an Administrator. :) Problem solved :)
      My Computer


 

  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 10:56.
Find Us




Windows 10 Forums