Ghost21 Posted July 31, 2007 Share Posted July 31, 2007 I'm trying to read a Reg Key on a remote machine ... but it just shows me nothing... Yes i'm an admin on both computers and no I'm not hacking.... ok.. now.. I first connect to the network registery.. then $defaultusername = RegRead("computer1" & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultUserName") iniwrite(@DesktopDir & "\" & "computer1" & ".ini","Default User Login","Login Name",$defaultusername) but nothing ??? Help!!! Link to comment Share on other sites More sharing options...
Gif Posted July 31, 2007 Share Posted July 31, 2007 (edited) I'm trying to read a Reg Key on a remote machine ... but it just shows me nothing... Yes i'm an admin on both computers and no I'm not hacking.... ok.. now.. I first connect to the network registery.. then $defaultusername = RegRead("computer1" & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultUserName") iniwrite(@DesktopDir & "\" & "computer1" & ".ini","Default User Login","Login Name",$defaultusername) but nothing ??? Help!!! try: $defaultusername = RegRead("computer1" & "\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultUserName") iniwrite(@DesktopDir & "\computer1.ini","Default User Login","Login Name",$defaultusername) Edited July 31, 2007 by c4nm7 Link to comment Share on other sites More sharing options...
Ghost21 Posted July 31, 2007 Author Share Posted July 31, 2007 try: $defaultusername = RegRead("computer1" & "\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultUserName") iniwrite(@DesktopDir & "\computer1.ini","Default User Login","Login Name",$defaultusername) BANGS HIS HEAD AGAINST THE FREKIN WALL .. OMFG ... all I needed was a \\ before the computer name... Thanks all .. . Link to comment Share on other sites More sharing options...
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