How to Set-CasMailbox -ActiveSyncAllowedDeviceIDs (To Allow for all user devices, where I don't know what devices the user has)

I need to change this for all of our users and have created this script so far.  Does anyone know how to Allow for all devices?  
$mailboxes = Get-casMailbox -Filter {hasactivesyncdevicepartnership -eq $true -and -not displayname -like "CAS_{*"} | Get-Mailbox 
foreach ($mailbox in $mailboxes)
    #write-output $mailbox.UserPrincipalName
    $devices = Get-MobileDevice -Mailbox $mailbox.UserPrincipalName
    foreach ($device in $devices){
        #write-output $device.deviceid
          Set-CASMailbox -identity $mailbox.UserPrincipalName -ActiveSyncAllowedDeviceIDs @{Add=$device}
          write-output $mailbox.UserPrincipalName
          write-output $device.deviceid

For Exchange issues post in Exchange.  You should also just try searching.
http://social.technet.microsoft.com/Forums/exchange/en-US/1ddc526d-f147-444c-a7bb-39d14415f9bc/clear-activesyncalloweddeviceids
This was first on list.
¯\_(ツ)_/¯

Similar Messages

  • HT201684 In Yosemite this no longer works, has anyone figured this out? How to set a custom default umask for all applications?

    In Yosemite this no longer works, has anyone figured this out? How to set a custom default umask for all applications?
    I've tried everything to get a custom umask set for all apps. It just seems impossible...
    Is there a replacement for launchd-user.conf?

    Please file a bug report: https://bugreport.apple.com
    I am sure this is something that got lost, like environment variables, in the Yosemite/iOS merger.

  • I would like to update the latest Adobe Flash as mine is outdated, but it says it can't install as my antivirus software is preventing it and I need to allow it.  My problem is I don't know what my antivirus software is or how to find it on my Mac to

    I would like to update the latest Adobe Flash as mine is outdated, but it says it can't install as my antivirus software is preventing it and I need to allow it.  My problem is I don't know what my antivirus software is or how to find it on my Mac OS X 10.9.5 to adjust the settings.  Help

    We don't know what it is either.

  • I have set up a new itunes library and am trying to sync this with my iphone.  My iphone is asking for an 'exchange' password.  I don't know what this is or where to find it.

    I am trying to sync my iphone with a new itunes library.  The iphone is askin for an 'exchange' password.  I don't know what this is or where to find it.

    Sounds like you do have an Exchange account setup on your phone. Have a Gmail or Hotmail account? They can both be setup as Exchange accounts. Have a work email account?

  • When I go to buy an app that isn't free it asks for my security question but I don't know what my security question is so I go to change it and it said it will send the info to this email that I don't even have. What do I do?

    When I go to buy an app that isn't free it asks for my security question but I don't know what my security question is so I go to change it and it said it will send the info to this email that I don't even have. What do I do?

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
         4. Account security issues almost always require you to speak directly to an
             Apple representative to securely establish your identity as the account holder.
             You can set it up so that Apple calls you, either immediately or at a time
             convenient to you.
                1. Go to www.apple.com/support.
                2. Choose Contact Support and click Contact Us.
                3. Choose Other Apple ID Topics and choose the appropriate topic for
                    your issue.
                4. Follow the onscreen instructions.
             Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                            Apple ID- All about Apple ID security questions.

  • I have had an eMac for a few years. I don't know any of the specs. Every time I try to download or install a new version of itunes or OS I get any number of error messages and cannot complete.  Help!!!!

    I have had an eMac for a few years. I don't know any of the specs. Every time I try to download or install a new version of itunes or OS I get any number of error messages and cannot complete.  Help!!!!

    It's best to start with figuring out your eMac model and OS in order to answer the question. This article will help you determine your model:
    How to locate the serial number and identify your model
    And to get the version of Mac OS that's installed:
    From the Apple Menu at the left end of your menu bar, select "About this Mac..."
    In the resulting Window, you can see the Mac OS version just under the big "Mac OS X":
    If the eMac is older and you have never upgraded the system software, it's possible that your OS version is too old to run the current iTunes. The current version requires OS 10.5 (Leopard)or higher, which is a pay-for system upgrade.

  • I want to buy a hard case for my macbook pro, but I don't know what year it is. When I use the serial number to try and find out, all it says is, "~VIN,MacBook Pro (15-inch Glossy)". When I type that into amazon for a case it gives me nothing!

    I want to buy a hard case for my macbook pro, but I don't know what year it is. When I use the serial number to try and find out, all it says is, "~VIN,MacBook Pro (15-inch Glossy)". When I type that into amazon for a case it gives me nothing!

    Hi T,
    Either of these will give you the info you seek:
    http://www.appleserialnumberinfo.com/Desktop/index.php
    http://www.chipmunk.nl/klantenservice/applemodel.html

  • How to set CHAR/BYTE as default for all entities attributes

    Hello,
    We'd like to have a way to set as a preference in the OSDM the Unit CHAR for all attributes who has datatype VARCHAR2 and CHAR, instead of the user have to set it manually for each attribute. Actually the database works or in one way or other. It means that if I have to set the Unit CHAR for one attribute, I'll have to set for all others.
    The preference "Show CHAR/BYTE Unit........." available on the Preferences dialog of the OSDM only show or not the information in the DDL script.
    Thanks
    Nelson

    Hi Nelson,
    The application developer should have only the option to set or not it for whole relational or physical model if the "length semantics" are Byte or Char.If database allow char/byte semantics to be set at column level we should support it. Otherwise you'll come and complain Data Modeler doesn't support it.
    In a real world the developer doesnt have to choose which columns are byte or char, it strictly depends the characteristis of the database defined for the database administrator.This workflow is supported by Data Modeler - you have an option char/byte semantic to be excluded from DDL generation and the setting at database and session level will come into effect when DDl script is executed.
    Philip

  • I have forgotten my login password for my macbook air and i don't know what to do?

    Okay, so I have forgotten my Login password and i have no idea what to do?

    OS X 10.7 Lion, 10.8 Mountain Lion & 10.9 Mavericks
    Reset Password starting from Recovery HD
    Start the computer,then press and hold down command and R keys to start into recovery partition.
    When you see the Apple logo, release the keys.
    Wait until  OS X Utilities window shows up.
    Move the mouse to the menubar at the top and click "Utilities", then select "Terminal"
    from the drop down.
    Terminal window will appear.
    Type in   resetpassword   and press enter on the keyboard.
    Leave the Terminal window open.
    Reset Password Utility window will open with Macintosh HD selected.
    Select the user account from the popup menu box.
    Enter a new password.
    Reenter the new password for the user.
    Enter a hint.
    Click the "Save" button.
    Click  in the menubar and select Restart.
    Log in.
    If Keychain dialog box appears, select “Create New Keychain”.

  • Got a new iPad and set up to sync with iCloud and now asking for password which I never set. How do I get on device if I don't know what it thinks password is?

    Help.  I just got a new iPad 2 and set up sync with iCloud and no password.  Now asking for a password and I never set one up.  What password does it want: iTunes, iPhone (no real password there either).  Tried as many passwords as I could think with the iPad locking me out since I don't have the password!  Would like to use the iPad but can't get on to try it.
    Thanks.
    Desparate

    So I guess it will only be new apps that I download that are allowed to give me their updates while 13 updates wait for me on an ID I can no longer access.
    Yes...  sorry.
    In the future, if need be, you can re download your purchases for free  >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Good rule of thumb is to back up your purchases regardless  >  Mac App Store: Backing up your app purchases

  • How to set a default open with, for all files

    I would simply like to make all my .avi files to open with VLC, rather than Quicktime. I have done the "change default open with", but it's only for that file.
    Any way to make all avi's open with VLC?
    Thanks!

    Right-click any .AVI file and select Get Info. Under the "Open with" section, select the app you want, and then press the "Change All" button.

  • I didn't create a pass code for my iPod touch, I want to change it but I don't know what is the original pass code?

    I never created a password for my iPod touch, it wants me to enter the original one to change it? I never entered one in the first place...default?

    Connect the iOS device to your computer and restore via iTunes. Place the iPod in Recovery Mode if necessary to allow the restore.
    For how to restore:
    iTunes: Backing up, updating, and restoring iOS software

  • I forgot my lock code password for my IPhone 4 and I don't know what to do...

    I really need help to fix it I need my iPhone!!

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device
    1. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. iOS- Understanding passcodes
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. How to Recover Forgotten iPhone Restrictions Passcode | The iPhone and iPad
    6. Restoring iPod touch after forgotten passcode
    Forgotten Restrictions Passcode Help
    1. How to Recover Forgotten iPhone, iPad Restrictions Passcode

  • How can i set a global error page for all error cod

    how can i set a global error page for all error code?
    i don't want to leave a long list in the web.xml file.could any one help me?
    thanks

    If u have a common Error JSP named as ErrorPage.jsp
    You need to have the following piece of code in the JSP as :
    <%@ page isErrorPage ="true"%>
    This makes it as the Common Error Page for the Application. Now all you need to do is from other JSP's throw the Exception to teh container. The container will redirect to this Page and process accordingly.
    Thanks and regards,
    Pazhanikanthan. P

  • I have for gotten my security questions and don't know how to fix it

    I have for gotten my security questions and don't know what to do need help

    The Three Best Alternatives for Security Questions and Rescue Mail
        1. Use Apple's Express Lane.
              Go to https://expresslane.apple.com ; click 'See all products and services' at the
              bottom of the page. In the next page click 'More Products and Services, then
              'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
              ID security questions' and click 'Continue'. Please be patient waiting for the return
              phone call. It will come in time depending on how heavily the servers are being hit.
         2.  Call Apple Support in your country: Customer Service: Contacting Apple for support or
              Apple ID- Contacting Apple for help with Apple ID account security. Ask to speak to
              Account Security.
         3.  Rescue email address and how to reset Apple ID security questions.
    How to Manage your Apple ID: Manage My Apple ID

Maybe you are looking for