From 1baa9b4d90171328bb98321b81b3c4a9b4791ca9 Mon Sep 17 00:00:00 2001 From: Alessandro Pilotti Date: Mon, 29 Jan 2018 03:47:06 +0200 Subject: [PATCH] Use TEMP variable instead of hardcoded path (#35380) The script fails if a Temp directory is not present in the system drive (e.g. C:\Temp). This can be solved by using the TEMP environment variable instead. --- docs/docsite/rst/windows_setup.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docsite/rst/windows_setup.rst b/docs/docsite/rst/windows_setup.rst index a7366eec54..84a50322c4 100644 --- a/docs/docsite/rst/windows_setup.rst +++ b/docs/docsite/rst/windows_setup.rst @@ -35,7 +35,7 @@ This is an example of how to run this script from PowerShell: .. code-block:: powershell $url = "https://raw.githubusercontent.com/jborean93/ansible-windows/master/scripts/Upgrade-PowerShell.ps1" - $file = "$env:SystemDrive\temp\Upgrade-PowerShell.ps1" + $file = "$env:TEMP\Upgrade-PowerShell.ps1" $username = "Administrator" $password = "Password"