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:
Marco Mansi
2020-03-13 21:23:23 +01:00
parent 99478a7e21
commit 9b2f575307
3 changed files with 17 additions and 2 deletions

View File

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