Difference between revisions of "Powershell"

From Max's Wiki
Jump to navigation Jump to search
Line 4: Line 4:
 
Get-Hotfix -computername SEA-SRV-01 | Select HotfixID, Description, InstalledOn | Sort-Object InstalledOn
 
Get-Hotfix -computername SEA-SRV-01 | Select HotfixID, Description, InstalledOn | Sort-Object InstalledOn
  
Uninstall Updates
+
Uninstall Updates:
psexec @target+workstations.txt -d -s wusa.exe /uninstall /kb:000000 /quiet /norestart
+
* psexec @target+workstations.txt -d -s  
 +
* wusa.exe /uninstall /kb:000000 /quiet /norestart

Revision as of 17:57, 8 June 2016

View Installed Updates Remotely

Get-Hotfix -computername SEA-SRV-01 | Select HotfixID, Description, InstalledOn | Sort-Object InstalledOn

Uninstall Updates:

  • psexec @target+workstations.txt -d -s
  • wusa.exe /uninstall /kb:000000 /quiet /norestart