No need to set execution policy. AWS default is unrestricted

This commit is contained in:
DanHam 2017-10-14 01:49:50 +01:00
parent 6d4e8ab583
commit 69393ef9bb
1 changed files with 0 additions and 3 deletions

View File

@ -338,9 +338,6 @@ example of that file.
net user Administrator SuperS3cr3t! net user Administrator SuperS3cr3t!
wmic useraccount where "name='Administrator'" set PasswordExpires=FALSE wmic useraccount where "name='Administrator'" set PasswordExpires=FALSE
# Turn off PowerShell execution policy restrictions
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine
# First, make sure WinRM can't be connected to # First, make sure WinRM can't be connected to
netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new enable=yes action=block netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new enable=yes action=block