Sign in to follow this  
Followers 0
roman

Reading in remote Windows Registry?

3 posts in this topic

Hi

I want to read a Registry-Value (String) from a remote Computer? (Same subnet)

I tryed this:

Const $s_HKLM = "&H80000002"
Dim $s_KeyPath = "SOFTWARE\Microsoft\Windows\xyz"
Dim $s_ValueName = "Example"
Dim $s_ComputerName = "COMPI"
Dim $s_Value

Dim $o_Reg = ObjGet("winmgmts:{impersonationLevel=impersonate}!\\" & ComputerName & "\root\default:StdRegProv")
$o_Reg.GetStringValue($s_HKLM, $s_KeyPath, $s_ValueName, $s_Value)
MsgBox(0, "RegValue", $s_Value)

But what ever i try, i get this message: The requested action with this object has failed.

Can anyone help me how to read a simple string from a remote computer Registry?

Thanks,

Roman.

Share this post


Link to post
Share on other sites



Sorry.

I've read the help file for "RegRead" to fast because i didn't expect this possibility, i have overseen the last sentence... :-o

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