-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ErrorUpdatingUser - is not like a error #161
Comments
Hi, As you can imagine, this is not reproducible if the configuration is correct. regards |
Ok, AD user in MFA config can't do change attributes in specific OU and I know that, it's okay for me. This is not the point. It's in code. I don't know C# but I can see the difference in the code. Remote or local Powershell doesn't matter in this case. See lines 795 and 1319 - it's different: Link The screen shows the difference in errors. In the last command, powershell should write "TEST", not red text. |
Hi, Yes of course it's in the code ... You could be more specific on some points.
You must also have detailed logs in the EventLog of your server. As indicated above, we are not able to reproduce your case. Although we have multiple test platforms (SQL / ADDS), multiple forests and subdomains, multiple versions of adfs. So without more information there will be no possible fixes. regards |
I know why I got the error, but the problem is how MFA presents some errors in PowerShell. |
Hi, In first place, it's not desirable to mix up the problems. For your problem, yes it is not the same type of exceptions. first, the user is not known (usually or not registered in MFA), and above all you pass a precise indentity (-Identity), there is only one user to process, therefore, if it's not good -> Script Terminating Error. If it's a collection which is passed in parameters, we are not "Killing" the script for one user error and just showing this error on console. So, "Mr PowerShell", the request is justified, but it is an evolution and not a bug... When an identity is passed, regardless of the error, the script must be terminated (standard powershell error) So, we will add a systematic terminating error if an identity is provided. Let us know if it's OK for you regrads |
Done in version 3.1.2103.7 |
Hi,
In PowerShell, when I want to disable MFA on a user and MFA doesn't have permission to do so, I don't have a PowerShell error and cannot use "-ErrorAction".
The text was updated successfully, but these errors were encountered: