Roman Posted May 29, 2009 Share Posted May 29, 2009 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 29, 2009 Developers Share Posted May 29, 2009 Why not simply use RegRead() ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Roman Posted May 29, 2009 Author Share Posted May 29, 2009 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now