Description
This script will run registry editor and connect to a remote machine’s registry for you. It needs to be compiled into an exe file. I use AutoIT V3 myself. Then you can run it with the computer name you want to connect to as a switch at the end.
For example I’ll call the exe autoreg. The command would then be:
autoreg.exe “computer name”
It will then open the registry editor, open the Connect Network Registry window and input the computer name you entered and execute it.
Make sure you are an administrator of the remote computer and it has the remote registry service turned on.
Source Code
Global $Var1
$Var1 = $CmdLine[1]
$CmdLine[0]
$CmdLine[1]
Run ("regedit")
WinWaitActive ("Registry Editor")
Send ("{ALT}")
Send ("{DOWN 5}")
Send ("{ENTER}")
Sleep (500)
Send ($Var1)
Send ("{ENTER}")
dkirkland
(TTSIncVA)
2
You could also add “#RequireAdmin” at the top of the script and incorporate an “InputBox” with an assigned variable that, when the user enters it, can be injected into the underlying script instead of having to CLI or “Run as Administrator” anything.