/build/static/layout/Breadcrumb_cap_w.png

Run a Script as a Local Admin

Forgive me as I am new to scripting, but I need to run this command and Deploy via K1000 Scripting

reg.exe ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v CertificateRevocation /t REG_DWORD /d 0 /f

Ive tried calling this with psexec.. couldnt get it to work, Ive tried calling a bat file as a dependency and that does not work. even as a offline kscript running as the domain admin account.

any suggestions for a scripting beginner such as myself?


0 Comments   [ + ] Show comments

Answers (1)

Posted by: dugullett 10 years ago
Red Belt
1

Have you tried running as logged in user? Since it's HKCU you would have to. Either that, or active setup.


Comments:
  • Yep... that fixed the trick, i had tried everything but running as all logged in users. - frasercarter 10 years ago
  • The trick is to always think of 'HKEY_CURRENT_USER' as 'HKEY_CURRENTLY_LOGGED-IN_USER'. As a remote user/admin, you (or the KBox or SCCM or whatever) are NOT the currently logged-in user, so unless you want to get into proper scripting, that hive is unavailable to you. - anonymous_9363 10 years ago
  • this handy free tool will sort you out: http://www.robotronic.de/index.html - mattski 10 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ