ShadowCopyVolume Scheduled Task Failing with 0x2

In monitoring we recently saw a Scheduled Task for a Shadow Copy Job failing with 0x2.After running the Action manually in CMD I go the below errorC:\Windows\system32>C:\Windows\system32\vssadmin.exe […]

Powershell – List group Memberships in 365 of Distribution groups and Unified groups

 [pastacode lang=”markdown” manual=”%24groups%3DGet-UnifiedGroup%0A%0Aforeach(%24group%20in%20%24groups)%0A%7B%0A%20%20%20%20Write-Host%20%22************************************************%22%0A%20%20%20%20Write-Host%20%22GroupName%3A%20%22%20%20%24group.DisplayName%0A%20%20%20%20Write-Host%20%22Email%3A%20%22%20%20%24group.primarySMTPAddress%0A%20%20%20%20Write-Host%20%22—%20Members%20—%22%0A%20%20%20%20%24membersOfGroup%3DGet-UnifiedGroupLinks%20-Identity%20%24group.Identity%20-LinkType%20Members%0A%20%20%20%20foreach(%24member%20in%20%24membersOfGroup)%0A%20%20%20%20%7B%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20Get-Recipient%20-Identity%20%24member.Name%20%7C%20select%20PrimarySmtpAddress%20%7CFormat-Wide%20%0A%20%20%20%20%7D%0A%20%20%20%20%20%0A%7D%0A%0A%0A%24groups%3DGet-DistributionGroup%0A%0Aforeach(%24group%20in%20%24groups)%0A%7B%0A%20%20%20%20Write-Host%20%22************************************************%22%0A%20%20%20%20Write-Host%20%22GroupName%3A%20%22%20%20%24group.DisplayName%0A%20%20%20%20Write-Host%20%22Email%3A%20%22%20%20%24group.primarySMTPAddress%0A%20%20%20%20Write-Host%20%22—%20Members%20—%22%0A%20%20%20%20%24membersOfGroup%3DGet-DistributionGroupMember%20-Identity%20%24group.Identity%0A%20%20%20%20foreach(%24member%20in%20%24membersOfGroup)%0A%20%20%20%20%7B%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20Get-Recipient%20-Identity%20%24member.Name%20%7C%20select%20PrimarySmtpAddress%20%7CFormat-Wide%20%0A%20%20%20%20%7D%0A%20%20%20%20%20%0A%7D” message=”” highlight=”” provider=”manual”/]