Jump to content
Sign in to follow this  

RegWrite won't modify anything under HKLM\SYSTEM

Recommended Posts

Hi everyone. I am trying to write a basic script to modify or create a key under HKEY_LOCAL_MACHINE\SYSTEM on a remote PC however i ran into a problem - it just doesnt work, and i have no idea why. it works for HKEY_LOCAL_MACHINE\SOFTWARE for example but not for SYSTEM.

Any ideas? this is my script here:

(software keys work, but system doesnt!)

Dim $Computer

$Computer = Inputbox("Type remote computername", "Computername", "")

RegWrite("\\" & $Computer & "\HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey", "REG_SZ", "Hello this is a test2")

RegWrite("\\" & $Computer & "\HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey2", "REG_DWORD", "5")

RegWrite("\\" & $Computer & "\HKEY_LOCAL_MACHINE\SYSTEM", "TestKey3", "REG_DWORD", "5")

any help would be really appreciated!! thank you!

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...