Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Try
- {
- Get-MsolSubscription -ErrorAction Stop | Out-Null
- }
- Catch [Microsoft.Online.Administration.Automation.MicrosoftOnlineException]
- {
- $Err = $_
- Write-host -fore red "$($Err.Exception.Message)`nException: $($Err.Exception.GetType().FullName)"
- }
- Catch
- {
- $Err = $_
- write-host -fore red $Err.Exception.Message
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement