summaryrefslogtreecommitdiff
path: root/docs/docsite/rst/user_guide
diff options
context:
space:
mode:
authorWill Thames <will@thames.id.au>2018-04-12 14:16:18 +1000
committerJordan Borean <jborean93@gmail.com>2018-04-12 14:16:18 +1000
commit4ba29c8bf10acf83adfa4ea4e52728ea34dcc199 (patch)
tree9f50946e2d353712b54f35baaa5aea421a45b361 /docs/docsite/rst/user_guide
parent6d830166e9dc7d99917bd3d241868da11cc1450d (diff)
downloadansible-4ba29c8bf10acf83adfa4ea4e52728ea34dcc199.tar.gz
Use a temp directory that is more likely to exist (#38645)
`env:SystemDrive\temp` does not necessarily exist `env:temp` is much more likely to exist. Use that
Diffstat (limited to 'docs/docsite/rst/user_guide')
-rw-r--r--docs/docsite/rst/user_guide/windows_setup.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/docsite/rst/user_guide/windows_setup.rst b/docs/docsite/rst/user_guide/windows_setup.rst
index 57e163ffc3..bb741c9334 100644
--- a/docs/docsite/rst/user_guide/windows_setup.rst
+++ b/docs/docsite/rst/user_guide/windows_setup.rst
@@ -35,7 +35,7 @@ This is an example of how to run this script from PowerShell:
.. code-block:: guess
$url = "https://raw.githubusercontent.com/jborean93/ansible-windows/master/scripts/Upgrade-PowerShell.ps1"
- $file = "$env:TEMP\Upgrade-PowerShell.ps1"
+ $file = "$env:temp\Upgrade-PowerShell.ps1"
$username = "Administrator"
$password = "Password"
@@ -93,7 +93,7 @@ The following PowerShell command will install the hotfix:
.. code-block:: guess
$url = "https://raw.githubusercontent.com/jborean93/ansible-windows/master/scripts/Install-WMF3Hotfix.ps1"
- $file = "$env:SystemDrive\temp\Install-WMF3Hotfix.ps1"
+ $file = "$env:temp\Install-WMF3Hotfix.ps1"
(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)
powershell.exe -ExecutionPolicy ByPass -File $file -Verbose
@@ -116,7 +116,7 @@ To use this script, run the following in PowerShell:
.. code-block:: guess
$url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1"
- $file = "$env:SystemDrive\temp\ConfigureRemotingForAnsible.ps1"
+ $file = "$env:temp\ConfigureRemotingForAnsible.ps1"
(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)