mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Off turns off the update notification feature
This commit is contained in:
@@ -5,4 +5,10 @@
|
|||||||
|
|
||||||
Invoke-Expression "& { $(Invoke-RestMethod https://aka.ms/install-powershell.ps1) } -UseMSI -Quiet"
|
Invoke-Expression "& { $(Invoke-RestMethod https://aka.ms/install-powershell.ps1) } -UseMSI -Quiet"
|
||||||
|
|
||||||
|
# about_update_notifications
|
||||||
|
# While the update check happens during the first session in a given 24-hour period, for performance reasons,
|
||||||
|
# the notification will only be shown on the start of subsequent sessions.
|
||||||
|
# Also for performance reasons, the check will not start until at least 3 seconds after the session begins.
|
||||||
|
[System.Environment]::SetEnvironmentVariable("POWERSHELL_UPDATECHECK", "Off", [System.EnvironmentVariableTarget]::Machine)
|
||||||
|
|
||||||
Invoke-PesterTests -TestFile "Tools" -TestName "PowerShell Core"
|
Invoke-PesterTests -TestFile "Tools" -TestName "PowerShell Core"
|
||||||
|
|||||||
Reference in New Issue
Block a user