Godlysoup Posted January 5, 2018 Report post Posted January 5, 2018 I've been trying to import a registry key in order to upgrade the bomgar automatic elevation installed on our clients. I've tried regedit.exe /s, reg import, I've tried creating a batch that copies it locally and then runs it, and I've tried New-ItemProperty through a PowerShell script. All exemgr log gives me is an exit 0 code successful. The scripts run fine on their own if I just right-click and run as admin or type it into cmd manually. It' a HKLM registry so it shouldn't require the user at all. I'm at a loss, any advise would be helpful. Thanks, GS Quote Share this post Link to post Share on other sites More sharing options...
skissinger Posted January 5, 2018 Report post Posted January 5, 2018 Suggestion: google "run cmd prompt as system using psexec", and on a test system, get to a cmd prompt as system. then run your powershell script (or your batch file, etc.) If that doesn't help you figure out the issue, presuming it doesn't violate any of your practices, if you'd post your posh script here, perhaps one of us could help you add logging to it, or a more verbose exit code if there's an error. Quote Share this post Link to post Share on other sites More sharing options...