powershell 公开课

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    如需转载请自行联系原作者