Posts Tagged ‘o365’

Export Contact information from Office 365 (or Exchange 2010 +)

September 13th, 2013

The following exports all contacts and selected information.  This is an Exchange/Office 365 commandlet so you will need to be connected appropriately:

get-contact -resultsize unlimited | Select-Object name,FirstName,LastName,displayname,Company,WindowsEmailAddress | Export-Csv c:\script\user_audit.csv -Delimiter "|"

Tags: ,
Posted in Uncategorized | Comments (0)

Office 2013 “Call us Overprotective” and Lync 2013 “Cannot sign in because the server is temporarily unavailable” using Office 365

September 10th, 2013

As we have been testing Office 2013 with our Office 365 implementation, we ran into two issues.

#1 – Lync 2013 could not sign in and we would receive an error message stating “Cannot sign in because the server is temporarily  unavailable”.  After digging through a lot of different forums and support threads, the one workaround that worked reliably was to launch Lync as a different user that was local to the computer and not on the domain. While this works for IT folks, not a permanent solution for the entire company.

#2 – When trying to access SharePoint documents or otherwise interact with Office 365 through Office 2013, we would get authentication prompts that would state “Call us overprotective, but we need to verify your account again before opening this document.”  These we could not find a reliable workaround to.  Many-times a document from SharePoint simply could not be opened/edited due to the prompt displaying over and over again.

We ended up opening a ticket with Microsoft for each of these issues.  While troubleshooting the issue we were doing packet captures and analyzing the packet captures when we noticed a number of TCP resends which looked similar to an issue we were having with downloading larger files from SharePoint Online. (Side note: If you are battling SharePoint download issues as well, this will help identify the issue…)  The fix/workaround that we found for that solution was to disable AutoTuning in Windows 7.

We tested disabling AutoTuning and like magic both of these issues went away we could sign into Lync 2013 and we could successfully authenticate when the Overprotective prompt comes up.

To disable AutoTuning, from an elevated command prompt (right click on cmd.exe or command prompt and choose run as administrator) execute the following command:

netsh int tcp set global autotuninglevel=disabled

For best results reboot your computer.

We are still working with Microsoft to determine what in our network layer would be causing this. For reference we are a Cisco shop, if this fixes your problem would love to hear what your core network vendor is.

Note: Our configuration provides WS-Fed through a Cloud Identity Management Solution. We utilize our Active Directory Domain for authentication to Office 365 through this service.

Posted in Uncategorized | Comments (0)

Scripting Office 365 license assignment

April 1st, 2013

I had a need to script the removal of one license type and add another type from a list of users. Below is how I accomplished this. You will need to create a csv file with a single column with a header of “UserPrincipalName”.


That will output your sku’s. Once you have that you would run a script like this:

Connect-MSOLService -Credential $cred
$AccountSkuIdAdd = "myco:STANDARDPACK"
$AccountSkuIdRemove = "myco:ENTERPRISEPACK"
$UsageLocation = "US"
$LicenseOptions = New-MsolLicenseOptions -AccountSkuId $AccountSkuIdAdd
$Users = Import-Csv c:\scripts\users.csv
$Users | ForEach-Object
Set-MsolUser -UserPrincipalName $_.UserPrincipalName -UsageLocation $UsageLocation
Set-MsolUserLicense -UserPrincipalName $_.UserPrincipalName -RemoveLicenses $AccountSkuIdRemove
Set-MsolUserLicense -UserPrincipalName $_.UserPrincipalName -AddLicenses $AccountSkuIdAdd

Additional Options:
if you wanted to do this for everyone you would change the line:
$users | Import-Csv c:\Users.csv
$users | get-msoluser -resultsize unlimited
For Granular License options:


Tags: ,
Posted in Uncategorized | Comments (0)