SOLVED
Home

Connect PowerShell with O365 on Windows 10 Machine

%3CLINGO-SUB%20id%3D%22lingo-sub-802887%22%20slang%3D%22en-US%22%3ERe%3A%20Connect%20PowerShell%20with%20O365%20on%20Windows%2010%20Machine%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802887%22%20slang%3D%22en-US%22%3EHmmm%2C%20you%20shouldn't%20need%20all%20that%20if%20you%20download%20the%20Exchange%20Online%20Powershell%20module%20from%20the%20Exchange%20admin%20center.%20Think%20it's%20under%20tools%20or%20something%20but%20it's%20near%20bottom%20of%20list.%20Once%20you%20install%2C%20load%20that%20up%20then%20all%20you%20need%20to%20do%20is%20type%20in%20connect-exopssession%20and%20hit%20enter%2C%20the%20rest%20is%20easy%2C%20asks%20for%20login%2C%20then%20your%20connected%20to%20your%20tenant.%20%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-803020%22%20slang%3D%22en-US%22%3ERe%3A%20Connect%20PowerShell%20with%20O365%20on%20Windows%2010%20Machine%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-803020%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20your%20account%20is%20protected%20by%20MFA%2C%20you%20need%20to%20follow%20the%20steps%20here%20instead%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fexchange%2Fexchange-online%2Fconnect-to-exchange-online-powershell%2Fmfa-connect-to-exchange-online-powershell%3Fview%3Dexchange-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fexchange%2Fexchange-online%2Fconnect-to-exchange-online-powershell%2Fmfa-connect-to-exchange-online-powershell%3Fview%3Dexchange-ps%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-802828%22%20slang%3D%22en-US%22%3EConnect%20PowerShell%20with%20O365%20on%20Windows%2010%20Machine%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802828%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETrying%20to%20connect%20PowerShell%20with%20O365%20on%20my%20%22Windows%2010%20Enterprise%2064-bit%20version%201803%22%20Machine%20using%20below%20given%20article%20but%20it's%20throwing%20attached%20error%2C%20could%20anyone%20assist%20me%20on%20this.%3C%2FP%3E%3CP%3Eyour%20assistance%20is%20highly%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fexchange%2Fexchange-online%2Fconnect-to-exchange-online-powershell%2Fconnect-to-exchange-online-powershell%3Fview%3Dexchange-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fexchange%2Fexchange-online%2Fconnect-to-exchange-online-powershell%2Fconnect-to-exchange-online-powershell%3Fview%3Dexchange-ps%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-802828%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%20center%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Administration%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-803953%22%20slang%3D%22en-US%22%3ERe%3A%20Connect%20PowerShell%20with%20O365%20on%20Windows%2010%20Machine%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-803953%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStill%20getting%20the%20same%20error%20while%20did%20as%20per%20your%20suggestion----%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPS%20C%3A%5CUsers%5Csidrisi%26gt%3B%20%24Session%20%3D%20New-PSSession%20-ConfigurationName%20Microsoft.Exchange%20-ConnectionUri%20%3CA%20href%3D%22https%3A%2F%2Foutlook.offic%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.offic%3C%2FA%3E%3CBR%20%2F%3Ee365.com%2Fpowershell-liveid%2F%20-Credential%20%24UserCredential%20-Authentication%20Basic%20-AllowRedirection%3CBR%20%2F%3ENew-PSSession%20%3A%20%5Boutlook.office365.com%5D%20Connecting%20to%20remote%20server%20outlook.office365.com%20failed%20with%20the%20following%3CBR%20%2F%3Eerror%20message%20%3A%20Access%20is%20denied.%20For%20more%20information%2C%20see%20the%20about_Remote_Troubleshooting%20Help%20topic.%3CBR%20%2F%3EAt%20line%3A1%20char%3A12%3CBR%20%2F%3E%2B%20%24Session%20%3D%20New-PSSession%20-ConfigurationName%20Microsoft.Exchange%20-Conne%20...%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20OpenError%3A%20(System.Manageme....RemoteRunspace%3ARemoteRunspace)%20%5BNew-PSSession%5D%2C%20PSRemotin%3CBR%20%2F%3EgTransportException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20AccessDenied%2CPSSessionOpenFailed%3CBR%20%2F%3EPS%20C%3A%5CUsers%5Csidrisi%26gt%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-804710%22%20slang%3D%22en-US%22%3ERe%3A%20Connect%20PowerShell%20with%20O365%20on%20Windows%2010%20Machine%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-804710%22%20slang%3D%22en-US%22%3EYeah%2C%20what%20%5E%20he%20said%2C%20but%20it's%20basically%20what%20I%20was%20saying%20just%20drawn%20out%20%3A).%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello,

 

Trying to connect PowerShell with O365 on my "Windows 10 Enterprise 64-bit version 1803" Machine using below given article but it's throwing attached error, could anyone assist me on this.

your assistance is highly appreciated.

 

https://docs.microsoft.com/en-us/powershell/exchange/exchange-online/connect-to-exchange-online-powe...

 

3 Replies
Highlighted
Hmmm, you shouldn't need all that if you download the Exchange Online Powershell module from the Exchange admin center. Think it's under tools or something but it's near bottom of list. Once you install, load that up then all you need to do is type in connect-exopssession and hit enter, the rest is easy, asks for login, then your connected to your tenant.
Highlighted
Solution

If your account is protected by MFA, you need to follow the steps here instead: https://docs.microsoft.com/en-us/powershell/exchange/exchange-online/connect-to-exchange-online-powe...

Highlighted
Yeah, what ^ he said, but it's basically what I was saying just drawn out :).