远程运维工具
# PowerShell
$psversiontable
# PowerShell
cd c:\
Invoke-WebRequest -Uri https://dvpr.me/assets/windows/ConfigureRemotingForAnsible.ps1 -OutFile ConfigureRemotingForAnsible.ps1
set-ExecutionPolicy RemoteSigned
# set-ExecutionPolicy -ExecutionPolicy UNRESTRICTED # 可选
.\ConfigureRemotingForAnsible.ps1 -SkipNetworkProfileCheck
rm .\ConfigureRemotingForAnsible.ps1
# PowerShell
netsh advfirewall firewall add rule name="Win-RM-HTTP" dir=in localport=5985 protocol=TCP action=allow