Jan 19 2023 07:20 AM - edited Jan 19 2023 09:24 AM
I use
$cred = get-credential (enters credentials)
connect-exchangeonline -Credential $cred
after this powershell asks me login in pop up when the account is improper or has MFA. is there a way to block the credential popup and just show the error message. and this also occurs if we execute a cmdlet for an active session in which the user's account's credential has been changed in between.
Also the error message is not in the error stream. actual error is displayed like info.
Jan 19 2023 09:06 AM
Feb 03 2023 04:34 AM