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.
This commit is contained in:
Alessandro Pilotti 2018-01-29 03:47:06 +02:00 committed by Jordan Borean
parent 3605c19377
commit 1baa9b4d90

View file

@ -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"