From 4ba29c8bf10acf83adfa4ea4e52728ea34dcc199 Mon Sep 17 00:00:00 2001 From: Will Thames Date: Thu, 12 Apr 2018 14:16:18 +1000 Subject: [PATCH] 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 --- docs/docsite/rst/user_guide/windows_setup.rst | 6 +++--- 1 file 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 57e163ffc34..bb741c93342 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)