Exchange Bulk import from .csv file to remove from Allow and then Allow

By t0kyobanana ·
Tags: Microsoft
Hello Genius Peeps,

Thought maybe I could turn here for some help! Does anyone know of a Powershell script I could run on our Exchange server for to the following:

1) We would initially want to clear all or current mobile devices from all the users

2) Then re-add their specific mobile device ID that we received from them to the ALLOW list

Is there some sort of .csv and script I can create to make this process fast?

We found the following scripts to remove all from ALLOW and to add to ALLOW

Clear all Allow
Set-CASMailbox -Identity username -ActiveSyncAllowedDeviceIDs $null

Add to Allow
Set-CASMailbox -Identity username -ActiveSyncAllowedDeviceIDs @{add='DeviceId'}

And maybe after running this script if theres also a quick way to show the results were made to the accounts? Using this command? Get-CASMailbox -Identity username | fl activesync*
Thread display: Collapse - | Expand +

All Answers

Collapse -

I don't work this area.

by rproffitt Moderator In reply to Exchange Bulk import from ...

But I recall that the command with $null was bugged in some way that it kept working after the command.

I haven't seen device level access control for over a decade now. We tossed out that idea as it created far too much work for our IT staff. Today we stop with classic username and password to get the email access.

Related Discussions

Related Forums