tag:blogger.com,1999:blog-7257353.post7828416913012395967..comments2009-03-24T14:20:27.364-07:00Comments on Exchangepedia Blog: Exchange Server 2007: Bulk mailbox-enabling users ...Bharat Sunejahttp://www.blogger.com/profile/15642944816309113988noreply@blogger.comBlogger33125tag:blogger.com,1999:blog-7257353.post-79147558778469719502009-03-24T14:20:00.000-07:002009-03-24T14:20:00.000-07:00@damianini: For 926 user accounts, typing the -ext...@damianini: For 926 user accounts, typing the -externalemailaddress isn't practical, and it already exists in the WindowsEmailAddress attribute.<BR/><BR/>@aallien: Sorry, not enough time to test the type conversion, but posting answer in a separate blog post soon... :)Bharat Sunejahttp://www.blogger.com/profile/15642944816309113988noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-33924369669178639162009-03-24T13:54:00.000-07:002009-03-24T13:54:00.000-07:00depending on whether these accounts are mailcontac...depending on whether these accounts are mailcontacts or regular users what you can do is this:<BR/><BR/>Get-user -organizationalunit "domain/subfolder/subfolder" -resultsize unlimited | foreach {enable-mailuser $_ -ExternalEmailAddress "blah@somewhere.com"}<BR/><BR/>You can add any switch you like.damianinihttp://www.blogger.com/profile/05922212422561217895noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-17831821122850554902009-03-24T13:52:00.000-07:002009-03-24T13:52:00.000-07:00@aallien: Can you paste the exact command you're u...@aallien: Can you paste the exact command you're using (mask the real details)? For <A HREF="http://technet.microsoft.com/en-us/library/aa996549.aspx" REL="nofollow">Enable-MailUser</A>, the only required parameters are identity (which gets piped from Get-User) and ExternalEmailAddress.<BR/><BR/>Are you populating the ExternalEmailAddress property?Bharat Sunejahttp://www.blogger.com/profile/15642944816309113988noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-66945422227946185442009-03-24T13:34:00.000-07:002009-03-24T13:34:00.000-07:00Is there a way to do the same thing but instead us...Is there a way to do the same thing but instead use enable-mailuser. I've tried several things to make it do so and all I get are errors. I have 926 accounts to mail enable with external email addresses. The email field is populated in AD. I've been using a script that spawns a gui that populates fields and you click a button which is great, but it would be even better if I could just have itaallienhttp://aallien.wordpress.com/noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-51349347073186080172009-03-07T10:59:00.000-08:002009-03-07T10:59:00.000-08:00@Anonymous from March 7: "Mailboxes without a poli...@Anonymous from March 7: "Mailboxes without a policy"? Do you mean mailboxes set to not have email addresses generated by policy?<BR/><BR/>Get-Mailbox -Filter {EmailAddressPolicyEnabled -eq $false}Bharat Sunejahttp://www.blogger.com/profile/15642944816309113988noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-69216828636173283022009-03-07T06:41:00.000-08:002009-03-07T06:41:00.000-08:00I have used scripts like this, but is there a way ...I have used scripts like this, but is there a way to list mailboxes without a mailbox policy, can I use -eq "no" or something like that? Thanks for your help.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7257353.post-91831130360391839962009-02-26T16:30:00.000-08:002009-02-26T16:30:00.000-08:00Another set of cmdlets is available using the free...Another set of cmdlets is available using the free utility from Quest. It's ActiveRoles Management Shell for Active Directory. You can use these cmdlets to query any group regardless of security or distribution using Get-qadgroup or get-qadgroupmember. If you want exchange functionality also you can start powershell. Run the command Add-PSSnapin Microsoft.exchange* and then run Add-PSSnapin damianinihttp://www.blogger.com/profile/05922212422561217895noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-75397782544313925502009-02-26T12:39:00.000-08:002009-02-26T12:39:00.000-08:00@HikingStick: One of the benefits of using unique ...@HikingStick: One of the benefits of using unique names for things like Organizational Units/Containers, Exchange Databases/Storage Groups, etc. is that in a lot of cmdlets you can simply use the name of the object.<BR/><BR/>If the object is not unique, as in this case, you try to specify the *fully-qualified name* or path— a distinguishedName for AD objects.Bharat Sunejahttp://www.blogger.com/profile/15642944816309113988noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-71713074413451278092009-02-26T12:05:00.000-08:002009-02-26T12:05:00.000-08:00Great post! Thanks for sharing the information.How...Great post! Thanks for sharing the information.<BR/><BR/>How would one modify the OrganizationalUnit parameter to search only a specific OU container that is on a nested branch if its name matches a higher level OU?<BR/><BR/>For example, in MyDomain.com, I have the deafault Users container. To help with internal administration, a child OU was created (let's call it "MD"--short for MyDomain), andHikingStickhttp://www.blogger.com/profile/12745521455991266510noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-67983394947325463562008-11-20T18:04:00.000-08:002008-11-20T18:04:00.000-08:00This solves one of my problems.Is there a way to c...This solves one of my problems.<BR/><BR/>Is there a way to create a new user using a template/script from 2007 (AD 2003 environ) that gives group security permissions and other AD settings eg. remote desktop profile, settings etc.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7257353.post-41506663568277400452008-10-21T13:25:00.000-07:002008-10-21T13:25:00.000-07:00@Pejy: If the Security Group is also mail-enabled ...@Pejy: If the Security Group is also mail-enabled (that is, it's a Distribution Group as well. Exchange 2007's definition of Distribution Groups = mail-enabled Distribution or Security Groups), you can use the <A HREF="http://technet.microsoft.com/en-us/library/aa996367(EXCHG.80).aspx" REL="nofollow">Get-DistributionGroupMember</A> cmdlet to get group members:<BR/>Get-DistributionGroupMember "Bharat Sunejahttp://www.blogger.com/profile/15642944816309113988noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-89842871957251900052008-10-21T12:55:00.000-07:002008-10-21T12:55:00.000-07:00Instead of searching for AD accounts within a spec...Instead of searching for AD accounts within a specific OU or department, can you search for accounts within a security group?pejyhttp://www.blogger.com/profile/09116323956592657086noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-85986632167088955172008-10-13T07:46:00.000-07:002008-10-13T07:46:00.000-07:00For Becky: To set the mailbox policy you can use t...For Becky: To set the mailbox policy you can use the following switch in your powershell script: -ManagedFolderMailboxPolicy 'PolicyName'. This will set the mailbox policy for the users.<BR/><BR/>For txt file guy: Set up a csv/text file using a header row so your file would look like:<BR/><BR/>SamAccount,Display,First,Last<BR/>jdoe,"Doe, John",John,Doe<BR/><BR/>Then call the file in your damianinihttp://www.blogger.com/profile/05922212422561217895noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-3983907658149266332008-10-13T04:29:00.000-07:002008-10-13T04:29:00.000-07:00great script. i think i can use it for my needs bu...great script. i think i can use it for my needs but how do you feed the script with values from, say, a text file?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7257353.post-16685528299539406572008-08-26T07:56:00.000-07:002008-08-26T07:56:00.000-07:00I would like to know how to create in bulk, mailbo...I would like to know how to create in bulk, mailbox enabled users and create them in a certain mailbox databases according to their last initialDavidhttp://www.blogger.com/profile/04323564691575432764noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-91102487614681018312008-08-25T06:35:00.000-07:002008-08-25T06:35:00.000-07:00I have to apply a mailbox management policy to all...I have to apply a mailbox management policy to all users in a particular database. There must be a command I can use in PowerShell to get this done? I am not having any luck. <BR/><BR/>BeckyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7257353.post-40377074140386623102008-08-11T10:02:00.000-07:002008-08-11T10:02:00.000-07:00@Anonymous: The option to select multiple users is...@Anonymous: The option to select multiple users is available in Exchange 2007 SP1. Since this post is titled "...using Exchange Shell", it did not include details on how to do this using the Exchange console.<BR/><BR/>The post has been updated to include the SP1 change.Bharat Sunejahttp://www.blogger.com/profile/15642944816309113988noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-61695594638246199242008-08-11T09:23:00.000-07:002008-08-11T09:23:00.000-07:00Yes, so much better tahn simple selecting a group ...Yes, so much better tahn simple selecting a group of users in ADUC and selecting Exchange Tasks, what a huge adavancement....everyone thank Microsoft....Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7257353.post-14162843333704818242008-08-06T07:28:00.000-07:002008-08-06T07:28:00.000-07:00Does someone know how to do this in an c#-Applicat...Does someone know how to do this in an c#-Application from an external Windows-XP-client?<BR/><BR/>I allways get the error "No Windows PowerShell Snap-ins are available for version 1"<BR/><BR/>when I execute:<BR/><BR/>"PSSnapInInfo info = rsConfig.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.Admin", out snapInException);"Wollenoreply@blogger.comtag:blogger.com,1999:blog-7257353.post-26558859912374753052008-06-05T09:32:00.000-07:002008-06-05T09:32:00.000-07:00This is really superb! it saved lot of work for me...This is really superb! it saved lot of work for me! Thanks for the good post.Robnoreply@blogger.comtag:blogger.com,1999:blog-7257353.post-83786711174694675152008-05-11T11:59:00.000-07:002008-05-11T11:59:00.000-07:00damianini,That would require a script to get all m...damianini,<BR/><BR/>That would require a script to get all mailbox databases in the Org or one server or have the database names fed manually. <BR/><BR/>Alternatively, you can filter users based on OU/department or some other common attribute and place those on one mailbox database.Bharat Sunejahttp://www.blogger.com/profile/15642944816309113988noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-25411165363089023352008-04-07T13:43:00.000-07:002008-04-07T13:43:00.000-07:00Your instructions work great. But how do you spre...Your instructions work great. But how do you spread the mailboxes created over several storage groupsdamianinihttp://www.blogger.com/profile/05922212422561217895noreply@blogger.comtag:blogger.com,1999:blog-7257353.post-88455233750183066072008-03-24T23:22:00.000-07:002008-03-24T23:22:00.000-07:00A bit late, but for others that follow... to answe...A bit late, but for others that follow... to answer gitenberg you need to use the -filter option, e.g.<BR/><BR/>get-user -filter {memberofgroup -eq "cn=group,ou=orgunit,dc=network,dc=lan"}<BR/><BR/>hope that helps others.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7257353.post-20460612645136990022007-08-19T09:01:00.000-07:002007-08-19T09:01:00.000-07:00How can I sort/filter users by group before enabli...How can I sort/filter users by group before enabling mailbox?gitenbergnoreply@blogger.comtag:blogger.com,1999:blog-7257353.post-36979011386041534252007-08-06T00:46:00.000-07:002007-08-06T00:46:00.000-07:00It`s really fantastic. I`m search a week over Inte...It`s really fantastic. I`m search a week over Internet, try csv and and from console. But it`s method much more simplest and faster. Thank very much to autor.Andrewnoreply@blogger.com