We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6a0cba3 + b3120b4 commit 8fdd751Copy full SHA for 8fdd751
hash-upload.ps1
@@ -20,7 +20,7 @@ else {
20
21
#Check if Powershell Autopilot script is installed, if not install it
22
Write-Host "Checking if script Get-WindowsAutopilotInfo exists"
23
-if (Get-InstalledScript -Name Get-WindowsAutopilotInfo) {
+if (Get-InstalledScript -Name Get-WindowsAutopilotInfo -ErrorAction SilentlyContinue) {
24
Write-Host "script Get-WindowsAutopilotInfo exists"
25
}
26
else {
0 commit comments