I am trying to create a script that can get all the servers patches installations in our environment. The script I am running is giving me continuous output without printing any success messages after each server read from text file. I have fairly written a basic script! doh.
I wanted some code to be inserted in my script to either print each server details with a break or Success message before printing another server continuously in CLI. Or to print each server in each separate text file. Please find the below Code:
$Computers
= gc ServerListFile.txt
Get-hotfix
-computer $Computers
Please Give me some input at least, to try and get it done.