PowerShell - Error Handling
Why does this script not catch the error?
try { Get-Item 'nofile.txt' } catch { Write-Host 'Caught' }try { Get-Item 'nofile.txt' } catch { Write-Host 'Caught' }15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions