Powershell

From Max's Wiki
Revision as of 20:17, 8 November 2017 by Max (talk | contribs)
Jump to navigation Jump to search


Run Powershell Remotely

How to Run PowerShell Commands on Remote Computers

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

View Mapped Drives Remotely

Get-WmiObject Win32_MappedLogicalDisk -computer <computername> | select name, providername