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

Want to kickstart your project?Use the new AI Studio to create your code