Jump to content

Install updates and shutdown cmd


ElectricalStorm

Recommended Posts

Hi,

As a network administrator I often shutdown all my network computers remotely with a command like this “shutdown /r /m \\computername /t 5”.

Now, when an computer has done some updates I want to send him a similar command like the user has chosen the “Install updates and shutdown” option.

Does anyone know this command line?

Thanks,

Chris

Link to comment
Share on other sites


You should be able to do this with PowerShell, but you'll obviously need to have that installed on all the clients. I found a script that looks like it will do pendinging updates from WSUS and then you can reboot/shutdown. I have no experience with PowerShell but if you want to go down this path this topic can be moved to the scripting forum. Here is that link:

http://poshcode.org/1932

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...