mgeeky-Penetration-Testing-.../windows/Force-PSRemoting.ps1

2 lines
255 B
PowerShell
Raw Normal View History

2019-01-29 11:19:12 +01:00
Set-ExecutionPolicy -ExecutionPolicy Bypass ; Start-Service winrm ; Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private ; Enable-PSRemoting -SkipNetworkProfileCheck -Force ; winrm quickconfig ; Configure-SMRemoting -Force -Enable