Powershell script to query multiple servers for their Local Machine Run Registry Keys
$servers = Get-Content c:\scripts\servers.txt
foreach ($server in $servers) {
$Reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $server.ServerName)
$RegKey= $Reg.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run")
$server
$RegKeyRO.GetValueNames()
}