Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Reading registry values on remote servers using a list of servers in PowerShell

$
0
0

I am a newby to PowerShell and I need some help in writing a script.  I have found out how to get the registry values from remote servers by the following  reg query command:

reg query \\servername\HKLM\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\PermittedManagers

What I would like to do is the following:

Setup a server.txt file that I can populate with the names of remote servers I need to query the regsitry on from my laptop.  Next I would like to read four registry values that will display on the screen for different servers.  I know this is probably elementary to the experts, but I would really appreciate any assistance.

Thanks,

J


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>