RSS

Category Archives: Office 365

Office 365 – Create PowerShell Session is failed using OAuth when trying to connect to Exchange Online PowerShell using Connect-ExoPSSession

For some time now I’ve been using the Microsoft Exchange Online Powershell Module that supports Azure multi-factor authentication (MFA)  , but for an unknown reason it stopped working

When trying to connect to Exchange Online PowerShell using the code below with a global administrator account, I was getting an access denied error:

Connect-EXOPSSession -UserPrincipalName admin.bjorn@mydomain.nl
New-ExoPSSession : Create PowerShell Session is failed using OAuth
At C:\users\admin\adppdata\local\Apps\2.0\84VE2AT5.PKO\HHYLAA32.DC7\micr..tion_c3bce3770c238a49_0010.0000_90fa60bba125a33a\CreateExoPSSession.ps1:179 char:22
+ ... PSSession = New-ExoPSSession -UserPrincipalName $UserPrincialName -C ...
+
    + CategoryInfo          : NotSpecified: (:) [New-ExoPSSession], Exception
    + FullyqualifiedErrorID : System.Exception,Microsoft.Exchange.Management.ExoPowerShellSnapin.NewExoPSSession

For me the solution was to install the Microsoft Exchange Online Powershell Module through Programs and then reinstalling it.

For more information about the new Exchange Online PowerShell module that supports Azure multi-factor authentication (MFA) see: https://technet.microsoft.com/en-US/library/ms.exch.eac.EXORPSMFAModuleLearnMore(EXCHG.150).aspx?v=15.1.860.4&l=1&s=BPOS_S_E15_0

Advertisement
 
 

Tags: , , , , , , , , ,

Office 365 – Access denied when trying to connect to Exchange Online PowerShell

When trying to connect to Exchange Online PowerShell using the code below with a global administrator account, I was getting an access denied error:

$usercredential = get-credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri<span class="Apple-converted-space"> </span>https://outlook.office3
65.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed with the following
error message :
[ClientAccessServer=VI1PR08CA0018,BackEndServer=,RequestId=1c6b263f-08cf-4885-937c-e9c9808ddf89,TimeStamp=1/12/2017
2:46:41 PM] Access Denied For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:12
+ $Session = New-PSSession -ConfigurationName Microsoft.Exchange -Conne ...
+            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : -2144108477,PSSessionOpenFailed

I was able to succesfully logon to https://login.microsoftonline.com/ so the credentials were correct.
Also I had not enabled Multi-factor authentication because I knew this could be a problem.
I tried clearing credentials / cookies in browsers and credential manager.

Since this did not solve the issue, I started to search online for answers. The first result was : https://support.microsoft.com/en-gb/kb/2905767 which suggested I entered the wrong username/password or that I didn’t have the correct permissions (organization administrator).

Both where not the case.

I then came across this post where someone apparently had to reset the password: https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin-mso_manage/exchange-online-remote-powershell-access-denied/b91205bf-3419-4251-badc-4181af701d4f , but this was also not the case for me.

So I tried using the new Exchange Online PowerShell module that supports Azure multi-factor authentication (MFA) and the Connect-EXOPSSession cmdlet which did seem to work.

As it turns out, I accidentally tried to logon using <domain>\username instead of using my User Principal Name (UPN). When using my UPN it worked perfectly.

As a bonus though, now I have no excuse anymore to start testing with MFA

For more information about the new Exchange Online PowerShell module that supports Azure multi-factor authentication (MFA) see: https://technet.microsoft.com/en-US/library/ms.exch.eac.EXORPSMFAModuleLearnMore(EXCHG.150).aspx?v=15.1.860.4&l=1&s=BPOS_S_E15_0

 
Leave a comment

Posted by on January 16, 2017 in Microsoft, Office, Office 365, Powershell

 

Tags: , , , , , , , ,

Milestone of 50.000+ views reached !!! Thanks everybody.

My blog reached 50.000+ views. Thanks everybody, this really exceeded my expectation and motivates me even more to keep going. Special thanks go out to my fellow bloggers in my blogroll and to those who shared my posts on Twitter, Facebook and other social networks.

Even though my blog exists since January 2012, I really started to blog actively around August and ever since I’ve tried to keep posting on a regular basis. At the start of 2013 I even intended to blog every day. I was able to keep it up for a short while, but it was just too time consuming. Now I try to blog something at least once every 5 days. The blog post count is now at 170.

Personally I think Microsoft is on the right track. I’m really looking forward to all new Microsoft product (preview) releases including Windows 8.1, Windows Server 2012 R2 and System Center 2012 R2 and you can expect some blog posts about this in the near future.

Popular posts

From the stats, it turned out these are the blog posts that are being viewed most, if you’ve missed any of them you might want to take a look at them:

Stats

For those interested in the view stats, here they are:

Views

Comments and suggestions

If you have suggestions about what I can do to improve, please let me know. Also if you’d like to see some things covered more or in more detail, just leave a comment.

 

Tags: , , , , , , , , , , , , , , ,

Office 365 – Detailed comparison of the different available plans

Even though the website http://office.microsoft.com provides a comparison of the different Office 365 plans, it is not always entirely clear which features are available or what the restrictions are.

Luckily, Jasper Osgaard created a great blog post comparing the different plans in more detail without having to go through tons of documentation:
http://blogs.technet.com/b/lystavlen/archive/2013/03/30/office-365-comparing-p-m-and-e-plans.aspx

 
 

Tags: , , , , , , , ,

Office 365 – My wave 15 / 2013 service upgrade experience

About 3 weeks before the upgrade took place, I received e-mails informing me about the upcoming update. It included the plan date and also mentioned I could postpone the update. As the date of the upgrade approached I also received mails with information of new features and what had to be done.

The upgrade itself took place on the date that was communicated to me and when it was done I got a mail informing me that the upgrade had been completed. When I logged on to the Office 365 admin center (https://portal.microsoftonline.com/) I immediately found this to be a big improvement. It also showed me some alerts containing links to information about changes and tasks that still needed to be performed like upgrading SharePoint sites.

I didn’t expect any big issues, but I was a bit worried if my SharePoint customizations would keep working correctly:

It is possible to leave the SharePoint site the way it is (at least with this upgrade), but you can also upgrade it and take advantage of the new options. If you are considering upgrading the SharePoint site, you can perform a health check and you can also request an upgrade evaluation copy of the site collection before you actually upgrade.

Probably because of my customizations, the Site Collection Health Check found some problems related to Customized Files that could result in unexpected visuals or behavior.

For now, everything seems to be working fine though on my upgrade evaluation copy of the site collection, so I’ll probably upgrade my site collection soon. If you want to, you can take a look at both the pre-upgrade SharePoint site and the post-upgrade SharePoint site. The evaluation post-upgrade version will only be available until the 23rd of June.

What I did notice, is that the interface of the services have improved and have also been changed to better suit for touch devices. By example the white space between navigation items seems to have increased and everything is a bit bigger.

After the upgrade, I also had to restart some Office 2013 apps once.

Of course the upgrade to Wave 15 provides many more advantages, but in this post I only wanted to share my service upgrade experience without really changing anything. All in all, I think the upgrade experience went very well.

 

Tags: , , , , , , , , , , , , , ,

Office 365 – Full Office Web Apps have been added to my E1 account for free

Back in February I posted that as part of the new Office 365 service, changes would be made to the Office 365 plans.

These changes are in effect right now. In short this means that the E1 and K1 plans that previously were only able to read with the Web Apps have gotten the full Office Web Apps (view, edit, create). This replaces the old E2 and K2. So basically:

  • Old E1/K1 have gotten E2/K2 functionality at the same low cost.
  • Old E2/K2 customers will keep the same features, but at a lower cost (E1/K1).
  • Old E2/K2 will be replaced by E1/K1 since they will then have the same functionality.

The new situation has become like this:

New Office 365 Enterprise Plans overview

New Office 365 Enterprise Plans overview

PS: I love the Office 365 service and I’m looking forward to the new Office 365 features that will be added when Office 365 will start using the Office 2013 (Wave 15) versions of SharePoint, Outlook, Lync, Office Web Apps. I’ve gotten a mail that I’m planned to be upgraded within the next 4 weeks, so more about that soon. I’m especially curious if my SharePoint customizations will continue to work.

 
 

Tags: , , , , , , , , , , , , , , , ,

Microsoft – Resources to get more familiar with Active Directory Federation Services (ADFS)

Nowadays more and more work, communication and collaboration involves multiple external parties. This can involve by example employees, customers, partners, suppliers, cloud providers/platforms/applications.

This means it is becoming increasingly important to have proper authentication and authorization methods in place for single sign on (SSO) so users can be more productive. Besides the ease-of-use It can also lead to better security.

Microsoft’s Active Directory Federation Services (ADFS) will make this possible. For more information on ADFS, here are some resources. Keep in mind though that while some information may be outdated, it will give you a broad idea of the concept and the inner workings. The current version of ADFS in Windows Server 2012 is 2.1 , while Windows Server 2008 uses 2.0

PS: Microsoft is moving more and more towards claims based authentication. Examples include Windows Server 2012 Dynamic Access Control and also SharePoint 2013 that has switched to claims based authentication by default now.

If you have some other resources that might be useful, please let me know so I can add them as well.

 

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Microsoft – System Center Universe videos and presentations are available now

The System Center Universe videos and presentations are available at http://www.systemcenteruniverse.com. I’ve only been able to browse through them a bit, but it seems very promising.

Also if you’ve missed it in the past, you might also want to take a look at the NIC 2013 (Nordic Infrastructure Conference) session at http://nicconf.com/

 

Tags: , , , , , , , , , , , , ,

Office 365 / Sharepoint online – Add search to your public site

In the past I’ve created a post to get my public site to become a SharePoint 2010 style team site. The only thing I’d been missing since was a way to allow public/anonymous users to use the search (when trying to perform a search you would have to logon).This also meant that filters in the lists I created weren’t working 😦

Because of the unsupported customizing I did on the SharePoint site, I thought this just wasn’t possible.

Thankfully however, a visitor of my blog (Denis) came across my post “Provide anonymous access to sharepoint lists on Office 365 (Sharepoint online)” and shared this blog post to enable search for an Office 365 / SharePoint Online public site which refers to https://dotnetmafia.sys-con.com/node/1918049/mobile

So now my website http://www.bjornhouben.com and all the content inside it, including the lists is completely searchable.

Thanks again Denis.

 

Tags: , , , , , , , ,

 
%d bloggers like this: