+ Post New Thread
Page 4 of 4 FirstFirst 1234
Results 46 to 49 of 49
Cloud Services Thread, Powershell - Office 365 - Any scripts? in Technical; Originally Posted by EduTech You do realize that the first part of that command before the | is going to ...
  1. #46

    Join Date
    Aug 2009
    Posts
    280
    Thank Post
    20
    Thanked 22 Times in 19 Posts
    Rep Power
    14
    Quote Originally Posted by EduTech View Post
    You do realize that the first part of that command before the | is going to go and get every single user within AD ;-) which in organizations where by they have 1,000s of user accounts it could take sometime )
    @Edu-IT

    If I was you I would encourage you to have a look at the WiseSoft Bulk AD Update tool in order to do this.

    James.
    Quote Originally Posted by aceonbass View Post
    But he's specified a -SearchBase and it looks to be a test OU, therefore he'll only get users under that OU?
    Who's missing something here? I'm new to Powershell so if I'm wrong please let me know!

  2. #47

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,074
    Thank Post
    160
    Thanked 937 Times in 731 Posts
    Blog Entries
    3
    Rep Power
    275
    Quote Originally Posted by Blue_Cookeh View Post
    Who's missing something here? I'm new to Powershell so if I'm wrong please let me know!
    I didn't see the -searchbase so that of course is much quicker than not having it {otherwise it would of got everything from AD}. Setting the searchbase and changing it is a better optimized query unless you use the root DSE ;-)

    I just saw Get-ADUser and didn't read on ;-)

    James.

  3. #48

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    7,250
    Thank Post
    404
    Thanked 630 Times in 575 Posts
    Rep Power
    185
    @EduTech - Did you figure out a Powershell on how I can take the bit before the @ on the users UPN, and add it to a different suffix as a primary SMTP? So Office365 has a different Primary SMTP to what is currently set.

  4. #49

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    7,250
    Thank Post
    404
    Thanked 630 Times in 575 Posts
    Rep Power
    185
    Okay, so this will add the alias but what do I insert in to this to make this one the primary SMTP?

    $Mailboxes = Get-Mailbox
    Foreach ($Mailbox in $Mailboxes) { $NewAddress = $Mailbox.Alias + "@o365info.com" $Mailbox.EmailAddresses += $NewAddress Set-Mailbox -Identity $Mailbox.Alias -EmailAddresses $Mailbox.EmailAddresses }


SHARE:
+ Post New Thread
Page 4 of 4 FirstFirst 1234

Similar Threads

  1. Office 365 Licensing Powershell Query
    By Mr.Ben in forum Cloud Services
    Replies: 13
    Last Post: 22nd April 2014, 07:15 PM
  2. office 365 migration script issue
    By kweng7 in forum Cloud Services
    Replies: 4
    Last Post: 17th August 2013, 01:19 AM
  3. Bulk change Office 365 user names using Powershell?
    By adamf in forum Cloud Services
    Replies: 7
    Last Post: 10th July 2013, 08:14 AM
  4. Office 365 Powershell command, not doing what I expect
    By mbedford in forum Cloud Services
    Replies: 3
    Last Post: 7th June 2013, 08:37 PM
  5. Office 365 Useful Powershell
    By sottonk in forum Cloud Services
    Replies: 2
    Last Post: 8th March 2013, 01:54 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •