Sha256: 32e1fa8e8364a5c6e99f2e1850c2f99b5deaca2d055ecc9c775ba16b4d33fb5b
Contents?: true
Size: 722 Bytes
Versions: 2
Compression:
Stored size: 722 Bytes
Contents
Function SetupWinRM { Param( [String]$hostname, [String]$thumbprint ) netsh advfirewall firewall set rule group="remote administration" new enable=yes netsh advfirewall firewall add rule name="WinRM HTTP" dir=in action=allow protocol=TCP localport=5985 netsh advfirewall firewall add rule name="WinRM HTTPS" dir=in action=allow protocol=TCP localport=5986 winrm create winrm/config/Listener?Address=*+Transport=HTTPS "@{Hostname=`"${hostname}`"; CertificateThumbprint=`"${thumbprint}`"}" } $hostname = $env:COMPUTERNAME $cert = New-SelfSignedCertificate -CertStoreLocation cert:\LocalMachine\My -DnsName $hostname $thumbprint = $cert.Thumbprint SetupWinRM -hostname $hostname -thumbprint $thumbprint
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
vagrant-profitbricks-1.0.0 | bootstrap.cmd |
vagrant-rackspace-0.1.10 | bootstrap.cmd |