moshi Posted August 29, 2010 Posted August 29, 2010 Hello, I am tring to add a Registry keys using the RegWrite command. It works on XP, but on Vista/7 the RegWrite command will not add the HKEY_LOCAL_MACHINE keys, but it adds the HKEY_CURRENT_USER keys. any ideas? this is my script: ; --------------- Regsitry Setting for Tight VNC 2 RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\TightVNC\Server", "LocalInputPriority","REG_DWORD","1") RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\TightVNC\Server", "LocalInputPriorityTimeout","REG_DWORD","2") RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\TightVNC\Server", "EnableFileTransfers","REG_DWORD","1") ; --------------- Regsitry Setting for Tight VNC 1.3 RegWrite ( "HKEY_CURRENT_USER\Software\ORL\WinVNC3", "FileTransferEnabled" ,"REG_DWORD","1") RegWrite ( "HKEY_CURRENT_USER\Software\ORL\WinVNC3", "RemoveWallpaper" ,"REG_DWORD","1") RegWrite ( "HKEY_CURRENT_USER\Software\ORL\WinVNC3", "Tester" ,"REG_DWORD","1")
moshi Posted August 29, 2010 Author Posted August 29, 2010 run the script with the #RequireAdmin function?
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