Generation

gitThu, 22 Dec 2022

create exchange powershell command to search member of a specific AD security group that is activesync is disabled

## Get-ADUser -Filter {msExchRemoteRecipientType -eq 2 -and Enabled -eq $true} -Properties msExchRemoteRecipientType,Enabled -ResultSetSize $null -SearchBase "ou=users,dc=ecs,dc=local" | ft -AutoSize > C:\temp\Disable-Activesync-Member.txt

Questions about programming?Chat with your personal AI assistant