Hi Karl,
Thanks for your quick response, I've been playing with this over the weekend and I'm still having problems.. Firstly, my main issue with your suggestion is that the script needs to be automated and therefore it is not possible to use get-credential as this requires user input. however I can't get it to work properly with that method either.
I'm tring the following ways:
$cred = get-credential MyDomain\Administrator
$test = Get-WmiObject -namespace "root\default" -class "StdRegProv" -credential $cred -computer $strComputer
and also
$obj = new-object -com "WbemScripting.SWbemLocator"
$conn=$obj.ConnectServer($strComputer, "root\default", $strUserName, $strPassword)
$test=$conn.Get("StdRegProv"
Both ways seem to work, but then when I try to write out $test OR pipe $test to get-member, it is empty
$test|gm
Get-Member : No object has been specified to get-member.
At line:1 char:5
+ $test|gm <<<<
Any ideas how I can query a remote registry key in an automated fashion using powershell, as I'm stuck!
Thanks in advance..
Craig