Forum Discussion
Office 365 group calendar missing?
Here's the kicker - even though I've connected to exchange online management via powershell, the set-unifiedgroup command consistently returns an error that it doesn't exist (though the get-unifiedgroup command works just fine).
Set-UnifiedGroup : The term 'Set-UnifiedGroup' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ Set-UnifiedGroup -Identity "Marcom" -HiddenFromAddressListsEnabled:$f ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Set-UnifiedGroup:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Or try this guide:
https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps
- dfoster303Aug 10, 2022Copper ContributorThank you! Unfortunately, we do not have any on-premises exchange server, so this guide is not applicable to my situation.
- paulcreedy710Aug 10, 2022Brass Contributor
Hi
We don't use on premises exchange either. The Exchange Online Powershell module is an add on for the online version of exchange, not the on premises one.
You can still use built in Powershell but it gets complicated if the credentials you use have MFA enabled. The Exchange Online Powershell supports MFA as it gives you the appropriate prompts when you log.Further down that article is a link from where you can download it. Here is the direct link
https://docs.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps#install-and-maintain-the-exo-v2-module
- paulcreedy710Aug 10, 2022Brass ContributorHi
You also get that error if the group you are targeting doesn't exist.
If you go into Exchange Admin to see the groups, it could be there's a typo on the name or the name you are using wasn't the one that was created. Groups can also have alias names which may not match the actual group name.
Does this bring back any results?
Get-UnifiedGroup |ft DisplayName,HiddenFrom*