Merge branch 'master' into libvirt_provider
This commit is contained in:
@@ -8,7 +8,7 @@ winrm set winrm/config/service/auth '@{Basic="true"}'
|
|||||||
winrm set winrm/config/client/auth '@{Basic="true"}'
|
winrm set winrm/config/client/auth '@{Basic="true"}'
|
||||||
winrm set winrm/config/listener?Address=*+Transport=HTTP '@{Port="5985"}'
|
winrm set winrm/config/listener?Address=*+Transport=HTTP '@{Port="5985"}'
|
||||||
netsh advfirewall firewall set rule group="Windows Remote Administration" new enable=yes
|
netsh advfirewall firewall set rule group="Windows Remote Administration" new enable=yes
|
||||||
netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new enable=yes action=allow
|
netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new enable=yes action=allow remoteip=any
|
||||||
sc config winrm start= disabled
|
sc config winrm start= disabled
|
||||||
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /v StartWinRM /t REG_SZ /f /d "cmd.exe /c 'sc config winrm start= auto & sc start winrm'"
|
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /v StartWinRM /t REG_SZ /f /d "cmd.exe /c 'sc config winrm start= auto & sc start winrm'"
|
||||||
Restart-Service winrm
|
Restart-Service winrm
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# Purpose: Installs chocolatey package manager, then installs custom utilities from Choco.
|
# Purpose: Installs chocolatey package manager, then installs custom utilities from Choco.
|
||||||
|
|
||||||
If (-not (Test-Path "C:\ProgramData\chocolatey")) {
|
If (-not (Test-Path "C:\ProgramData\chocolatey")) {
|
||||||
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||||
Write-Host "Installing Chocolatey"
|
Write-Host "Installing Chocolatey"
|
||||||
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
|
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user