Difference between revisions of "Powershell"

From Max's Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
__FORCETOC__
 
__FORCETOC__
  
==Run Powershell Remotely==[https://www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/ How to Run PowerShell Commands on Remote Computers]
+
==Run Powershell Remotely==
 
+
[https://www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/ How to Run PowerShell Commands on Remote Computers]
  
 
==View Installed Updates Remotely==
 
==View Installed Updates Remotely==

Revision as of 20:17, 8 November 2017


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