i am looking for a power shell script to pull the os version on our 5000 servers in our environment. i need to call the servers list from a text file. and require output on csv file.
script should say access denied in case of credentials does not work. also if server is down should say "Not online".
please help. needed this urgently for meltdown vul. fix.