Sign in to follow this  
Followers 0
laphlaw

Reading Remote Registry -- Correct Syntax?

2 posts in this topic

I'm having problems reading a registry key on a remote computer. I've read the help file and searched the forums, but I'm unsure if my syntax is right.

$var = RegRead("\\10.80.2.166\HKLM\SOFTWARE\AutoIt v3\AutoIt\", "Version")

That returns a blank string, and an error code of 1. So for some reason it can't open the key. But first of all... is it okay to use the IP instead of the host name? Unfortunately i can't use the host name, so I have to use the IP.

The default admin share is enabled on the remote computer... what else would I have to do?

Thanks!

Share this post


Link to post
Share on other sites



I'm having problems reading a registry key on a remote computer. I've read the help file and searched the forums, but I'm unsure if my syntax is right.

$var = RegRead("\\10.80.2.166\HKLM\SOFTWARE\AutoIt v3\AutoIt\", "Version")

That returns a blank string, and an error code of 1. So for some reason it can't open the key. But first of all... is it okay to use the IP instead of the host name? Unfortunately i can't use the host name, so I have to use the IP.

The default admin share is enabled on the remote computer... what else would I have to do?

Thanks!

You should be able to use the IP address, but the default admin share has nothing to do with remote registry access. Try reading KB314837.

Hope that helps. :)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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