Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
f42905a9
Commit
f42905a9
authored
Jun 19, 2014
by
Craig Ackerman
Committed by
Matt Martz
Jun 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added commands to allow Windows firewall access to WinRM HTTPS listener
parent
7e055ec6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
docsite/rst/intro_windows.rst
+7
-0
examples/scripts/upgrade_to_ps3.ps1
+2
-2
No files found.
docsite/rst/intro_windows.rst
View file @
f42905a9
...
@@ -101,6 +101,13 @@ Alternatively, a self-signed SSL certificate can be generated in powershell usin
...
@@ -101,6 +101,13 @@ Alternatively, a self-signed SSL certificate can be generated in powershell usin
$ winrm create winrm/config/Listener?Address=*+Transport=HTTPS @{Hostname="host_name";CertificateThumbprint="certificate_thumbprint"}
$ winrm create winrm/config/Listener?Address=*+Transport=HTTPS @{Hostname="host_name";CertificateThumbprint="certificate_thumbprint"}
# Delete the http listener
# Delete the http listener
$ WinRM delete winrm/config/listener?Address=*+Transport=HTTP
$ 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:
.. code-block:: bash
# Windows 2008 / 2008R2 / 2012 / 2012R2
$ netsh advfirewall firewall add rule name="Allow WinRM HTTPS" dir=in localport=5986 protocol=TCP action=allow
It's time to verify things are working::
It's time to verify things are working::
...
...
examples/scripts/upgrade_to_ps3.ps1
View file @
f42905a9
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
# 6.2 is 2012
# 6.2 is 2012
# 6.3 is 2012 R2
# 6.3 is 2012 R2
Start-Transcript
"C:\powershell\scriptlog.txt"
if
(
$PSVersionTable
.psversion.Major -ge 3
)
if
(
$PSVersionTable
.psversion.Major -ge 3
)
{
{
...
@@ -33,6 +32,7 @@ function download-file
...
@@ -33,6 +32,7 @@ function download-file
$client
=
new-object
system.net.WebClient
$client
=
new-object
system.net.WebClient
$client
.Headers.Add
(
"user-agent"
,
"PowerShell"
)
$client
.Headers.Add
(
"user-agent"
,
"PowerShell"
)
$client
.downloadfile
(
$path
,
$local
)
$client
.downloadfile
(
$path
,
$local
)
write-host
"file downloaded successfully"
}
}
if
(!(
test-path
$powershellpath
))
if
(!(
test-path
$powershellpath
))
...
@@ -78,5 +78,5 @@ else
...
@@ -78,5 +78,5 @@ else
$FileName
=
$DownLoadUrl
.Split
(
'/'
)[
-1]
$FileName
=
$DownLoadUrl
.Split
(
'/'
)[
-1]
download-file
$downloadurl
"
$powershellpath
\
$filename
"
download-file
$downloadurl
"
$powershellpath
\
$filename
"
Stop-Transcript
.
"
$powershellpath
\
$filename
"
/quiet /log
"C:\powershell\install.log"
.
"
$powershellpath
\
$filename
"
/quiet /log
"C:\powershell\install.log"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment