Advertisement
vinissh

psRemoting.ps1

Jan 25th, 2021
784
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <#
  2.  
  3.     #Powershell habilitando Remoto
  4.         Enable-PsRemoting
  5.  
  6. #>
  7.  
  8.  
  9. <#
  10.  
  11.     Validando atualizações instaladas
  12.      
  13.     Get-HostFix -id KB433898
  14.  
  15. #>
  16.  
  17.  
  18. <#
  19.     Executando bloco de script em estação remota
  20.  
  21.     Invoke-Command -ComputerName Ws2012R2 -ScriptBlock { Get-HostFix -id KB433898 }
  22.  
  23. #>
  24.  
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement