Jump to content

Help Regwrite


TREK
 Share

Recommended Posts

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:

Link to comment
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:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...