SOLVED

how to connect to compliance protection

%3CLINGO-SUB%20id%3D%22lingo-sub-877468%22%20slang%3D%22en-US%22%3Ehow%20to%20connect%20to%20compliance%20protection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-877468%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Experts%2C%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20exchange%20online%20powershell%20module%20i%20have%20used%20the%20below%20syntax%20to%20connect%20to%20compliance%20protection%2C%20i%20am%20getting%20below%20error.%26nbsp%3BI%20am%20logged%20in%20with%20my%20laptop%20with%20username%3A%20user1%40contoso.com%20but%20my%20privilege%20account%20to%20connect%20to%20exchange%20online%20powershell%20module%20is%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Euser2%40contoso.com%20with%20mfa%20enabled%3C%2FSTRONG%3E.%20user1%40contoso.com%20is%20local%20admin%20on%20my%20laptop.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3EConnect-IPPSSession%20-UserPrincipalName%20user2%40contoso.com%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3EPS%20C%3A%26gt%3B%20Connect-IPPSSession%20-UserPrincipalName%20user2%40contoso.com%3CBR%20%2F%3EWARNING%3A%20Your%20connection%20has%20been%20redirected%20to%20the%20following%20URI%3A%3CBR%20%2F%3E%22%3CA%20href%3D%22https%3A%2F%2Feur03c.ps.compliance.protection.outlook.com%2FPowerShell-LiveId%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Feur03c.ps.compliance.protection.outlook.com%2FPowerShell-LiveId%3C%2FA%3E%20BasicAuthToOAuthConversion%3Dtrue%3BPSVersion%3D5.1.16%3CBR%20%2F%3E299.1146%20%22%3CBR%20%2F%3EWARNING%3A%20The%20names%20of%20some%20imported%20commands%20from%20the%20module%20'tmp_quu4z3hb.tkx'%20include%20unapproved%20verbs%20that%20might%20make%20them%20less%20discoverable.%26nbsp%3BTo%20find%20the%20commands%20with%20unapproved%20verbs%2C%20run%20the%20Import-Module%20command%20again%20with%20the%20Verbose%20parameter.%20For%20a%20list%20of%20approved%20verbs%2C%20type%20Get-Verb%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-877468%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECompliance%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIdentity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-878601%22%20slang%3D%22en-US%22%3ERe%3A%20how%20to%20connect%20to%20compliance%20protection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-878601%22%20slang%3D%22en-US%22%3E%3CP%3EThat's%20not%20an%20error%20but%20a%20warning%2C%20which%20you%20can%20ignore.%20You%20can%20also%20simply%20run%20Connect-IPPSSession%20without%20any%20parameters%20and%20provide%20credentials%20when%20asked.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Hi Experts, 

From exchange online powershell module i have used the below syntax to connect to compliance protection, i am getting below error. I am logged in with my laptop with username: user1@contoso.com but my privilege account to connect to exchange online powershell module is user2@contoso.com with mfa enabled. user1@contoso.com is local admin on my laptop.

Connect-IPPSSession -UserPrincipalName user2@contoso.com

PS C:> Connect-IPPSSession -UserPrincipalName user2@contoso.com
WARNING: Your connection has been redirected to the following URI:
"https://eur03c.ps.compliance.protection.outlook.com/PowerShell-LiveId BasicAuthToOAuthConversion=true;PSVersion=5.1.16
299.1146 "
WARNING: The names of some imported commands from the module 'tmp_quu4z3hb.tkx' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb

1 Reply
best response confirmed by Roger Roger (Frequent Contributor)
Solution

That's not an error but a warning, which you can ignore. You can also simply run Connect-IPPSSession without any parameters and provide credentials when asked.