Jump to content
Sign in to follow this  
Ghost21

Network Regread

Recommended Posts

Ghost21

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
Gif

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
Ghost21

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.