gwmi -class win32_computersystem

远程脚本签名

PS C:\WINDOWS\system32> Get-ExecutionPolicy

Unrestricted

PS C:\WINDOWS\system32> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Enter-session DC50=è相当于remote到dc50上去了

powershell 公开课

powershell 公开课

-prefix指定前缀

远程端口5985/5986

PS C:\WINDOWS\system32> Get-HotFix

PSWA:power shell web access

Enter-pssession win2014

Get-windowsfeature windwspowershellwebaccess| install-windowsFeature –verbose

powershell 公开课

创建pswa的权限:

powershell 公开课

powershell 公开课

powershell 公开课



本文转自 bilinyee博客,原文链接:    http://blog.51cto.com/ericfu/1872124    如需转载请自行联系原作者


相关文章:

  • 2021-07-27
  • 2021-06-19
  • 2021-05-29
  • 2021-11-13
  • 2021-07-13
  • 2021-08-27
  • 2021-10-17
  • 2021-08-22
猜你喜欢
  • 2022-02-28
  • 2021-12-08
  • 2021-08-17
  • 2022-12-23
  • 2021-11-11
相关资源
相似解决方案