Powershell - Exception

Windows Powershell Menu

try
{
# Do soemthing
}
catch
{
Write-Error "Error!"
Write-Error "Message: $_.message"
Exit(1)
}







Share this page:
Follow us:
Task Runner