mirror of
https://github.com/actions/runner-images.git
synced 2025-12-31 14:29:16 +08:00
Fix error "NoProcessFoundForGivenName" when running Disable-InternetExplorerESC
The error happens because we try to stop the Explorer process which may not running, so let's check first if the process is running.
This commit is contained in:
@@ -36,6 +36,9 @@ $SensitiveData = @(
|
||||
': ->'
|
||||
)
|
||||
|
||||
Write-Host "Show Packer Version"
|
||||
packer --version
|
||||
|
||||
Write-Host "Build $Image VM"
|
||||
packer build -var "capture_name_prefix=$ResourcesNamePrefix" `
|
||||
-var "client_id=$ClientId" `
|
||||
|
||||
Reference in New Issue
Block a user