Jump to content

Recommended Posts

Posted

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.

Posted

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

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
  • Recently Browsing   0 members

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