Manipulate Costom Attribute
Overall goal - Disable ACTIVESYNC for everybody in company EXCEPT for a group of users. I need a script that will do the following: 1) Populate AD customAttribute15 with - "EAS-iPhone" - (I have a list of in an excel spreadsheet) 2) Disable "ACTIVESYNC" for everyone except for anyone that has "EAS-iPhone" in customattribute15. If there is a better way to do this I am open for suggestions, we are an exchange 2007 shop...
June 10th, 2010 9:19pm

Get-Mailbox | Where-Object {$_.customAttribute15 -eq "EAS-iPhone"} | Set-CasMailbox -ActiveSyncEnabled:$False -WhatIf:$True Take off the "-WhatIf:$True" after you verify that you get the results you want. -- Ed Crowley MVP "There are seldom good technological solutions to behavioral problems." . "batescr" wrote in message news:a186ee6f-0496-4d45-8c94-4f6e46162cbf... Overall goal - Disable ACTIVESYNC for everybody in company EXCEPT for a group of users. I need a script that will do the following: 1) Populate AD customAttribute15 with - "EAS-iPhone" - (I have a list of in an excel spreadsheet) 2) Disable "ACTIVESYNC" for everyone except for anyone that has "EAS-iPhone" in customattribute15. If there is a better way to do this I am open for suggestions, we are an exchange 2007 shop... Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Free Windows Admin Tool Kit Click here and download it now
June 11th, 2010 7:18am

Hi batescr, If you are looking for 1st cmdlet, "Populate AD customAttribute15 with - EAS-iPhone", Try this one: Create a csv file to include all uses which listed in EXE file, for example c:\EAS.csv, the format can be: name user1 user2 .... Then please run the cmdlet: Import-Csv c:\EAS.csv | foreach {Set-Mailbox -Identity $_.name -CustomAttribute15 "EAS-Iphone" }Frank Wang
June 14th, 2010 9:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics