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:
parent
3605c19377
commit
1baa9b4d90
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue