From cd3edf1ebabe0bf841f7d7192e2707e73c91fb68 Mon Sep 17 00:00:00 2001 From: Craig Ackerman Date: Thu, 19 Jun 2014 17:08:17 +0000 Subject: [PATCH] Added FW commands to allow access to HTTPS listener --- docsite/rst/intro_windows.rst | 2 +- examples/scripts/upgrade_to_ps3.ps1 | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docsite/rst/intro_windows.rst b/docsite/rst/intro_windows.rst index 645ea98c75..9032a9df38 100644 --- a/docsite/rst/intro_windows.rst +++ b/docsite/rst/intro_windows.rst @@ -102,7 +102,7 @@ Alternatively, a self-signed SSL certificate can be generated in powershell usin # Delete the http listener $ WinRM delete winrm/config/listener?Address=*+Transport=HTTP -Again, if your Windows firewall is enabled, you must also run the following command to allow firewall access to the public firewall profile: +Again, if your Windows firewall is enabled, the following command to allow firewall access to the HTTPS listener: .. code-block:: bash diff --git a/examples/scripts/upgrade_to_ps3.ps1 b/examples/scripts/upgrade_to_ps3.ps1 index f9cbb2de48..1e36607f81 100644 --- a/examples/scripts/upgrade_to_ps3.ps1 +++ b/examples/scripts/upgrade_to_ps3.ps1 @@ -32,7 +32,6 @@ function download-file $client = new-object system.net.WebClient $client.Headers.Add("user-agent", "PowerShell") $client.downloadfile($path, $local) - write-host "file downloaded successfully" } if (!(test-path $powershellpath)) @@ -56,6 +55,7 @@ if (!(test-path $powershellpath)) # If the Operating System is above 6.2, then you already have PowerShell Version > 3 if ([Environment]::OSVersion.Version.Major -gt 6) { + write-host "OS is new; upgrade not needed." Exit } @@ -78,5 +78,6 @@ else $FileName = $DownLoadUrl.Split('/')[-1] download-file $downloadurl "$powershellpath\$filename" - +write-host "Download successful" +exit ."$powershellpath\$filename" /quiet /log "C:\powershell\install.log"