Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

Help with a Script for Remote updates

$
0
0

Ok. So I know what I *Want* this thing to do, it just doesn't seem to want to listen to me.

We have a Server infrastructure of about 20+ that are updated via SCCM and rebooted each week.

What I would like to have is a script that grabs a list of the computer names (in a txt file) and runs the "for-each" command that forces all patches that have not been installed yet (the Software Update Installation Progress box in the taskbar still wants you to click on it and click 'Install.' I'd like that automated.) and then reboot the system. But I would like the system receiving the update to come back online before the script starts the next one.

I got the reboot command to work properly, and I even got the "for-each" command working. What I am completely baffled by is the patch part. Does anyone have any suggestions/code that can help me write this script correctly? Thanks!


Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images