Sign in to follow this  
Followers 0
Ghost21

Network Regread

3 posts in this topic

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!!!

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by c4nm7

Share this post


Link to post
Share on other sites

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 .. .

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