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.
pull/35040/head
Alessandro Pilotti 7 years ago committed by Jordan Borean
parent 3605c19377
commit 1baa9b4d90

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

Loading…
Cancel
Save