Assistance with script to run .reg as admin RRS feed

  • Question

  • Hi,

    I need to add an entry into the Registry on several machines, I searched the internet but i just cant get it right.

    Windows Registry Editor Version 5.00



    Its needs to run with admin access and I don't mind putting in my domain admin account in the script and putting the password in myself.

    I was trying to connect the .reg file in a batch file using the runas /profile /user:administrator 

    I have not been able to get much further than this and I'm not sure batch file is the best way, as I am not experienced in this area.

    It needs to run on Win7 and Win 10 machines

    Can someone please assist me with this issue. 

    Wednesday, July 11, 2018 1:57 AM

All replies

  • Hi,

    Before moving on, let's confirm your problem. Did you want to deploy the registry entry for some of domain computers?

    If yes, why don't you use the Group Policy Reference to deploy it on Domain level?

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, July 12, 2018 1:55 AM