Forum Discussion
PaulKoning
Jun 19, 2023Brass Contributor
Can't make a goup calendar readonly anymore with Powershell
Hi, We have some groups where regular group members are not allowed to make changes to the group calendar. I was able achieve this with Powershell as described in this post: https://answers.micros...
bthomas
Aug 04, 2023Iron Contributor
I used the command in my test tenant yesterday successfully to set the group calendar to CalendarMemberReadOnly:$true.
Today I wanted to revert it for another test and am not able to set it to CalendarMemberReadOnly:$false nor $true...
Today I wanted to revert it for another test and am not able to set it to CalendarMemberReadOnly:$false nor $true...
PaulKoning
Aug 07, 2023Brass Contributor
It is still not working for me either 😞
Can it be that the extra line under the error message has something to do with it?
Set-UnifiedGroup -Identity "MYGROUP" -CalendarMemberReadonly
Write-ErrorMessage : Object reference not set to an instance of an object.
At C:\Users\<myupn>\AppData\Local\Temp\tmpEXO_hxn1vmy2.kes\tmpEXO_hxn1vmy2.kes.psm1:1159 char:13
When I open this tempfile and look at the code at line 1159 it has this Powershell command:
Write-ErrorMessage $ErrorObject
Makes some sense as the errormessage alse mentions this. Seems that an errormessage has to be written to the screen, but that it goes wrong?