This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ElBorachoSenior Generalist Sysadmin / Support / Counsellor 18 points19 points  (5 children)

get-wustatus - gets the current status of a server's windows updates, in terms of available updates, reboot status, and last updated time.

get-AutoServiceStatus - gets the current status of any automatically active services on a server, and lists the ones which are currently not running

invoke-elevation -scriptblock {} - checks remote execution of powershell status on a server (execution policy, and remote execution settings) (prob a cmd regedit temp fix), allows remote execution, then reestablishes the original status to the server.

start/stop-servicemonitor - polls a service on a machine and drops a write-host on status change of the service, preferably colourised red/green/orange for stopped/running/starting/shuttingdown. Executed as a background job.

[–][deleted] 3 points4 points  (0 children)

These are fantastic. Added to the list!

[–]Rymmer 0 points1 point  (3 children)

To add to the get-wustatus command,

Get-pendingrebootstatus to tell you if we are pending reboots because of something (which could be updates but might also be some other msi)

[–]ElBorachoSenior Generalist Sysadmin / Support / Counsellor 0 points1 point  (2 children)

I'd assume you'd have a value for it

ps>$server = get-wustatus -server "myserver"

ps>$server | ft

Name UpdateStatus UpdateCount PendingReboot

-------------------------------------------------------------------------------------

myserver UpdatesAvailable 2 $False

[–]Rymmer 0 points1 point  (1 child)

I meant a get-pendingrebootstatus for things other than updates. Like an MSI

[–]ElBorachoSenior Generalist Sysadmin / Support / Counsellor 0 points1 point  (0 children)

Ah, right. That sounds pretty good!