Question

  • Creator
    Topic
  • #2141388

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

    Locked

    by t0kyobanana ·

    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*

All Answers

  • Author
    Replies
    • #2413386
      Avatar photo

      I don’t work this area.

      by rproffitt ·

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

      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.

Viewing 0 reply threads