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)
Please log in to answer
Posted by:
dugullett
11 years ago
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 11 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 11 years ago
-
this handy free tool will sort you out: http://www.robotronic.de/index.html - mattski 11 years ago