Sign in to follow this  
Followers 0
moshi

Add HKEy_Local_Machine key on windows 7

4 posts in this topic

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")

Share this post


Link to post
Share on other sites



You need to run as admin in Vista+.

Share this post


Link to post
Share on other sites

run the script with the #RequireAdmin function?

Share this post


Link to post
Share on other sites

Yes.

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