Sha256: 184c17edf168001c1130e0b2b5a44c71e8dd61a38a216857e5084402eb31bf98
Contents?: true
Size: 983 Bytes
Versions: 62
Compression:
Stored size: 983 Bytes
Contents
<powershell> $logfile="C:\\Program Files\\Amazon\\Ec2ConfigService\\Logs\\packer-build-userdata.log" # Allow script execution Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force #PS Remoting and & winrm.cmd basic config Enable-PSRemoting -Force -SkipNetworkProfileCheck & winrm.cmd set winrm/config '@{MaxTimeoutms="1800000"}' >> $logfile & winrm.cmd set winrm/config/winrs '@{MaxMemoryPerShellMB="1024"}' >> $logfile & winrm.cmd set winrm/config/winrs '@{MaxShellsPerUser="50"}' >> $logfile #Server settings - support username/password login & winrm.cmd set winrm/config/service/auth '@{Basic="true"}' >> $logfile & winrm.cmd set winrm/config/service '@{AllowUnencrypted="true"}' >> $logfile & winrm.cmd set winrm/config/winrs '@{MaxMemoryPerShellMB="1024"}' >> $logfile #Firewall Config & netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" profile=public protocol=tcp localport=5985 remoteip=localsubnet new remoteip=any >> $logfile </powershell>
Version data entries
62 entries across 62 versions & 2 rubygems