The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
A duplicate of export-quarantine-using-a-script.html
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Is it possible pass the credentials: username and password to connecto to EOP by the command "Connect-IPPSSession -ConnectionUri https://ps.protection.outlook.com/powershell-liveid/"?
I know that I could youse -UserPrincipalName but this option doesn't include the password so is not usable for me.
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
A duplicate of export-quarantine-using-a-script.html
Yes, the cmdlet does support a -Credential parameter. So you can do this:
$cred = Get-Credential ******@domain.com
Connect-IPPSSession -Credential $cred
Note however that this will always result in connecting via Basic authentication, which might be blocked in your organization. Whereas using the -UserPrincipalName parameter, or connecting without specifying any parameters supports Modern authentication/MFA too.
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
1 deleted commentComments have been turned off. Learn more