+ Post New Thread
Results 1 to 12 of 12
Cloud Services Thread, Office 365 Pre-filling TimeZone in Technical; Whenever I try to do this it causes problems with the user opening their Outlook, it says there is a ...
  1. #1

    Join Date
    May 2011
    Location
    Jus North of London, close but not too close
    Posts
    743
    Thank Post
    172
    Thanked 56 Times in 54 Posts
    Rep Power
    35

    Office 365 Pre-filling TimeZone

    Whenever I try to do this it causes problems with the user opening their Outlook, it says there is a problem with the users mailbox.

    We seem to notice when I try and set the TimeZone for UK and I'm wondering if it is down to the code I am using it does set the language fine but not the Time Zone.

    set-MailboxRegionalConfiguration -TimeZone "GMT Standard Time" -Language en-GB

    We have a script that runs first which uploads students to Office 365 (until we setup DirSync). A while after the students have been uploaded a second script comes along, Sets the mailbox configuration for each unlicensed student and then applies licences.

    We will set up DirSync soon but will need to have a script to follow that assigns licenses anyway so this is why I have broken down onto to tasks.

  2. #2
    andyrite's Avatar
    Join Date
    Apr 2007
    Posts
    412
    Thank Post
    7
    Thanked 90 Times in 71 Posts
    Rep Power
    41
    Looks like the right command.

    I used

    Get-Mailbox -Filter {RecipientTypeDetails -eq 'UserMailbox'} | set-MailboxRegionalConfiguration -Timezone "GMT Standard Time" -Language en-GB

  3. Thanks to andyrite from:

    Davit2005 (6th May 2014)

  4. #3

    Join Date
    May 2011
    Location
    Jus North of London, close but not too close
    Posts
    743
    Thank Post
    172
    Thanked 56 Times in 54 Posts
    Rep Power
    35
    It doesn't seem to recognize the cmdlet 'set-MailboxRegionalConfiguration' even when I type manually.

  5. #4
    andyrite's Avatar
    Join Date
    Apr 2007
    Posts
    412
    Thank Post
    7
    Thanked 90 Times in 71 Posts
    Rep Power
    41
    You need to import the commands

    $Session = New-PSSession -ConfigurationName Microsoft.Exchange-ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic -AllowRedirection
    Import-PSSession $Session
    Set-ExecutionPolicy RemoteSigned

  6. Thanks to andyrite from:

    Davit2005 (6th May 2014)

  7. #5
    Zoom7000's Avatar
    Join Date
    Feb 2006
    Location
    London
    Posts
    927
    Thank Post
    303
    Thanked 79 Times in 52 Posts
    Rep Power
    32
    Interesting. When I called Microsoft support and asked if this can be predefined, they said no!

  8. #6
    andyrite's Avatar
    Join Date
    Apr 2007
    Posts
    412
    Thank Post
    7
    Thanked 90 Times in 71 Posts
    Rep Power
    41
    Quote Originally Posted by Zoom7000 View Post
    Interesting. When I called Microsoft support and asked if this can be predefined, they said no!
    Sounds about right for Microsoft Support.

  9. #7

    Join Date
    May 2011
    Location
    Jus North of London, close but not too close
    Posts
    743
    Thank Post
    172
    Thanked 56 Times in 54 Posts
    Rep Power
    35
    Quote Originally Posted by andyrite View Post
    You need to import the commands

    $Session = New-PSSession -ConfigurationName Microsoft.Exchange-ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic -AllowRedirection
    Import-PSSession $Session
    Set-ExecutionPolicy RemoteSigned
    That's exactly what I am doing but the PowerShell says no

    Is there a way I can test that I am actually connected to the Office 365 with PowerShell????

  10. #8
    andyrite's Avatar
    Join Date
    Apr 2007
    Posts
    412
    Thank Post
    7
    Thanked 90 Times in 71 Posts
    Rep Power
    41
    Quote Originally Posted by Davit2005 View Post
    That's exactly what I am doing but the PowerShell says no

    Is there a way I can test that I am actually connected to the Office 365 with PowerShell????
    You need the Azure modules by the sound of it.

    Manage Azure AD using Windows PowerShell

  11. #9

    Join Date
    May 2011
    Location
    Jus North of London, close but not too close
    Posts
    743
    Thank Post
    172
    Thanked 56 Times in 54 Posts
    Rep Power
    35
    Quote Originally Posted by andyrite View Post
    You need the Azure modules by the sound of it.

    Manage Azure AD using Windows PowerShell
    Well I fixed the issue with the command.

    The user account (a basic user administration account) that I was using in the script didn't have the command available but when I log in with my own account the command is available

  12. #10

    Join Date
    May 2011
    Location
    Jus North of London, close but not too close
    Posts
    743
    Thank Post
    172
    Thanked 56 Times in 54 Posts
    Rep Power
    35
    I have found now that you need to add a switch for it to populate and go straight into Outlook

    -Timezone "GMT Standard Time" -confirm:$False

  13. #11
    andyrite's Avatar
    Join Date
    Apr 2007
    Posts
    412
    Thank Post
    7
    Thanked 90 Times in 71 Posts
    Rep Power
    41
    Quote Originally Posted by Davit2005 View Post
    I have found now that you need to add a switch for it to populate and go straight into Outlook

    -Timezone "GMT Standard Time" -confirm:$False
    Thats a new one on me. Thanks for that.

  14. #12

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    7,121
    Thank Post
    403
    Thanked 619 Times in 566 Posts
    Rep Power
    180
    Would you mind sharing your other scripts?

SHARE:
+ Post New Thread

Similar Threads

  1. Office 365 Pre-upgrade
    By theaksy in forum Cloud Services
    Replies: 3
    Last Post: 26th May 2013, 10:34 PM
  2. Free Office 365 ebook
    By steve in forum Cloud Services
    Replies: 0
    Last Post: 18th August 2011, 07:35 PM
  3. Office 365 Charges
    By klop in forum General Chat
    Replies: 7
    Last Post: 9th May 2011, 03:54 PM
  4. Microsoft Office 365 Public BETA
    By EduTech in forum General Chat
    Replies: 4
    Last Post: 21st April 2011, 09:40 AM
  5. Replies: 3
    Last Post: 20th October 2010, 09:35 AM

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
  •