I have a script that I can use to remotely search a local registry for a subkey and get it's value.
I need to do a similar script that will search remote computers once provided with the computer name.
I read that I need to use .Net for remote access but it doesn't seem that it'll work
$values = ''
$MachineName = hostname
$key = Get-ChildItem registry::HKU -recurse -include Lotus -ErrorAction silentlycontinue | Select-Object -first 1
$sub = Get-ChildItem Registry::$key -recurse -include Installer
$values = Get-ItemProperty $sub.PSPath