Sign in to follow this  
Followers 0
TREK

Help Regwrite

2 posts in this topic

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 :think:

Share this post


Link to post
Share on other sites



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

:think:

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0