TREK Posted April 27, 2006 Share Posted April 27, 2006 Hello. The posivilidad exists to write in the usuary registry as without privilejios I am using the following one I cosay but it does not work. RunAsSet("administrator", @Computername, "123", "0")RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\AdministratorOnly\Security", "UseVPUninstallPassword", "REG_DWORD", "0")RunAsSet()single doubt I can write in the registry like admin? Thanks for its aid Link to comment Share on other sites More sharing options...
MHz Posted April 27, 2006 Share Posted April 27, 2006 Hi, You could try to restart the run of your script as admin like this. If $CMDLINE[0] And $CMDLINE[1] = '/admin' Then RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\AdministratorOnly\Security", "UseVPUninstallPassword", "REG_DWORD", "0") Exit Else RunAsSet("administrator", @Computername, "123", "0") If @Compiled Then RunWait(@ScriptFullPath & ' /admin') Else RunWait(@AutoItExe & ' "' & @ScriptFullPath & '" /admin') EndIf RunAsSet() Exit EndIf Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now