Skip to content

Commit 8b89e6e

Browse files
Update src/powershell/public/Disconnect-ZtAssessment.ps1
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent df8f349 commit 8b89e6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/powershell/public/Disconnect-ZtAssessment.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function Disconnect-ZtAssessment
109109
Write-PSFMessage 'Disconnecting from Azure Information Protection'
110110
try
111111
{
112-
Disconnect-AipService -ErrorAction SilentlyContinue | Out-Null
112+
Disconnect-AipService -ErrorAction Stop | Out-Null
113113
Write-Host "Successfully disconnected from Azure Information Protection" -ForegroundColor Green
114114
}
115115
catch [Management.Automation.CommandNotFoundException]

0 commit comments

Comments
 (0)