Skip to content

Commit 8fdd751

Browse files
authored
Merge pull request #3 from RSE-Telecom-ICT/BJD1997-prevent-unnecessary-logs
Update hash-upload.ps1
2 parents 6a0cba3 + b3120b4 commit 8fdd751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hash-upload.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ else {
2020

2121
#Check if Powershell Autopilot script is installed, if not install it
2222
Write-Host "Checking if script Get-WindowsAutopilotInfo exists"
23-
if (Get-InstalledScript -Name Get-WindowsAutopilotInfo) {
23+
if (Get-InstalledScript -Name Get-WindowsAutopilotInfo -ErrorAction SilentlyContinue) {
2424
Write-Host "script Get-WindowsAutopilotInfo exists"
2525
}
2626
else {

0 commit comments

Comments
 (0)