PowerShell - Error Handling
Identify the error in this PowerShell script:
try {
throw "Missing file"
} catch {
Write-Output "Error: $error"
}try {
throw "Missing file"
} catch {
Write-Output "Error: $error"
}Use $_ in catch for error message = A [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions