Showing posts with label 365. Show all posts
Showing posts with label 365. Show all posts

Saturday, February 28, 2015

Automating Windows Azure Active Directory Module for Powershell Connections Office 365

I have been working on a PowerShell script to automated the Windows Azure Active Directory Module for Powershell Connection and login. 

I started by exporting my password to a file so that powershell could load that from my script.

 (get-credential).password|convertFrom-SecureString|set-content c:cred.txt  


Then I created this powershell script to make the connection.  At the bottom I added some powershell to tell us when the last DirSync was run too.  This is set to utc by default, so I also convert that to Local Time.

 $pass = get-content C:cred.txt | convertto-securestring

$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist "superadmin@yourcompany.onmicrosoft.com",$pass

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication:Basic -AllowRedirection

Import-PSSession $Session | Out-String

Connect-MsolService -Credential $cred | Out-String

echo "Last Dir Sync Completed at:"

$DATEutc = Get-MSOLCompanyInformation | select -expand LastDir*

$DATEutc.ToLocalTime()
Read more »

Office 365 Outlook 2013 OpenXChange OXTender 2 MAPI Mail profile error oxstor dll could not be loaded

Today i installed Office 365 in parallel to my existing Office 2010 on my Windows 8 Computer. Under Outlook 2010 i use OpenXChange OXTender 2 - Version 7.0.62 to sync with OpenXChange Groupware.
After installing Outlook i created a new mail profile. But in Outlook 2013 i cant open the MAPI Folder. Clicking on it an error message Pops up "The Folder could not be expanded.... MAPI was unable to load the Information service "oxstor.dll" ..."

I also re-installed OXTender, but this did not fix it. Under Outlook 2010 the sync is still working fine.

I posted the question here:
http://answers.microsoft.com/en-us/office/forum/office_365hp-outlook/cant-sync-outlook-2013-with-openxchange-because-of/f87f287c-e62a-4e5b-994c-da90769bf00c

https://forum.open-xchange.com/showthread.php?7769-Outlook-2013-quot-Der-Informationsdienst-quot-oxstor-dll-quot-konnte-nicht-geladen-werden-quot

How-i-fixed-it:
The document Outlook OXtender 2 Best Practices states, that it does not work having both Office 2013 and 2013 installed in parallel:
...
Please note that the following is not supported:
  • Office 2010 Home and Business test version
  • MS Outlook running in a virtual environment (e.g. VMware or Parallels Desktop)
  • Using both OL2007 and OL2013
  • Using both OL2010 and OL2013
....

I removed Office 2010 from my Computer and re-installed Outlook OXTender again, created a new profile and... it works.

Here you can find the Information:
http://oxpedia.org/wiki/index.php?title=Outlook_OXtender2_Best_Practice
Read more »

Tips for a cutover migration to Office 365 with ADFS and Single Sign on


Here are some of my tips for a cutover migration to Office 365 with ADFS and Single Sign-on

When you read about converting mailboxes to mail-enabled users (MEUs) they dont mention Exchange 2010.  So I opened a ticket with Microsoft and they confirmed that everything for 2007 will work with 2010, and it did.
This is the wiki on that subject:
Convert Exchange 2007 mailboxes to mail-enabled users after a staged Exchange migration
 
http://community.office365.com/en-us/wikis/exchange/845.aspx
 
Here are some problems I ran into converting mailboxes to MEUs:
  1. My primary smtp on Exchange 2010 still had a reference to skillsinc.local (along with skillsinc.com) after I changed all the UPNs from .local to .com and that was messing things up.  When I looked in Office 365 none of my migrated mailboxes had .onmicrosoft.com aliases!  Without that Federation will not work.  I used ADMODIFY from Codeplex to remove all reference to skillsinc.local from my local AD.  This blog does a great job detailing how to do that: http://seanofarrelll.blogspot.com/2012/07/how-to-federate-existing-office365.html  Then I wrote a powershell script that added the .onmicrosoft.com alias to all the inboxes using Set-MsolUserPrincipalName to fix this problem.  I will post that in another blog post.
  2. Make sure you are running your powershell commands and scripts in the correct window!  Some run on your local exchange shell and some in the Office 365 shell (Microsoft Online Services Powershell module).  Exchange2007MBtoMEU.ps1 must be run from your local exchange server shell to make the changes to your local Active Directory.
  3. Make sure you open the scripts and know what they are doing!  If you get errors, stop everything and figure out what went wrong.  Did you run it from the wrong shell?  Is there something wrong with the .onmicrosoft.com alias or the primary smtp in AD? Look at the output in cloud.csv and see if any information is missing.  Mine was missing the CloudEmailAddress because the .onmicrosoft.com alias was missing from all my cloud mailboxes. (See bullet point 1)
 
Read more »