SkinnyWhiteGuy Posted July 26, 2007 Posted July 26, 2007 I am trying to get at some Remote User's Registry Settings, and I've hit a bit of a snag. I want to read/write a few settings from/to each remote computer's registry, but the problem is the computer I'm on doesn't have the same name/password as the rest of them, so I don't have admin rights to their computers. I found out that, using DriveMapAdd, I could remote transfer files to their machine, and provide the correct name and password to gain access, and it worked like a charm. I can't seem to get the Registry commands to let me do anything similar. As a last resort, I tried to use RunAsSet, along with the REG utility, only to discover that the RunAs service needed is not on the box I am on. Don't know why, can't find it either. So, that rules out that option for me. I've pretty much resigned myself to being screwed on this, unless anyone else knows another method for providing a username and password to get to a remote computer's registry. If so, that would be awesome. Thanks to anyone in advance for even trying to help me.
Developers Jos Posted July 26, 2007 Developers Posted July 26, 2007 I am trying to get at some Remote User's Registry Settings, and I've hit a bit of a snag. I want to read/write a few settings from/to each remote computer's registry, but the problem is the computer I'm on doesn't have the same name/password as the rest of them, so I don't have admin rights to their computers. I found out that, using DriveMapAdd, I could remote transfer files to their machine, and provide the correct name and password to gain access, and it worked like a charm. I can't seem to get the Registry commands to let me do anything similar. As a last resort, I tried to use RunAsSet, along with the REG utility, only to discover that the RunAs service needed is not on the box I am on. Don't know why, can't find it either. So, that rules out that option for me.I've pretty much resigned myself to being screwed on this, unless anyone else knows another method for providing a username and password to get to a remote computer's registry. If so, that would be awesome.Thanks to anyone in advance for even trying to help me.What I would do is to restart my script with the needed credentials using RunAsSet() and the needed service is called "Secondary Logon" Other option it to login on your PC with an account that does have the rights on all target boxes... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
SkinnyWhiteGuy Posted July 26, 2007 Author Posted July 26, 2007 Believe me, if I had a service just disabled called "Secondary Login", it'd already be on, and this post would be but a dream... The other option is probably the route I'll go, just using a separate computer instead (I've got 2 computers that I use here at work, tied together with Synergy).
SkinnyWhiteGuy Posted July 27, 2007 Author Posted July 27, 2007 Well, it's not too often, but I found an answer to my own question. I thought there was another way to do this, and turns out, there is. $IP = "192.168.0.48" $User = "Administrator" $Pass = "password" RunWait("net use \\" & $IP & "\ipc$ /user:" & $User & " " & $Pass,"",@SW_HIDE) MsgBox(4096,"Info",RegRead("\\" & $IP & "\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesDir")) RunWait("net use \\" & $IP & "\ipc$ /del",@ScriptDir,@SW_HIDE)
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