Forum Discussion
Exchange Online error: Write-ErrorMessage : Object reference not set to an instance of an object.
- May 02, 2024
For me the solution was creation of new policy with all the desired parameters in one command. It is strange, but it is working 🙂
Try to run the following command.:
New-AuthenticationPolicy -Identity "Block Basic Auth_v2" -AllowBasicAuthPop:$false -AllowBasicAuthSmtp:$false
Do not forget to put all the parameters to command. Edit of policy via Set-AuthenticationPolicy is (currently) not working. You cannot edit it later.
For me the solution was creation of new policy with all the desired parameters in one command. It is strange, but it is working 🙂
Try to run the following command.:
New-AuthenticationPolicy -Identity "Block Basic Auth_v2" -AllowBasicAuthPop:$false -AllowBasicAuthSmtp:$false
Do not forget to put all the parameters to command. Edit of policy via Set-AuthenticationPolicy is (currently) not working. You cannot edit it later.
- Edwin_OrokoMay 03, 2024Copper Contributor
matacek Thank you! Yes, seems one cannot edit it later.
- Andries77Jun 03, 2024Copper Contributor
matacek I have experienced the same behaviour. I created a policy and was unable to modify it. Removed the policy and created a new one with the same name as I already applied it to a subset of users. I tested if the policy was applied correctly and it worked! Another hour wasted before I stumbled upon your very helpful post 😉 Thanks!