Jump to content

Network Regread


Recommended Posts

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

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
Link to comment
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 .. .

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...