get-unifiedgroup unavailable

Palzkill, Marco 0 Reputation points
2023-07-21T09:53:00.53+00:00

Hello,

I'm a Powershell novice, and would like to work with get-unifiedgroup. However, Powershell anwers, that the command is not known. When listing the available modules of EXO, it's also not listed.

Any ideas of how to address this?

Best,

Marco

Powershell Version:

PS C:\Program Files\PowerShell\7> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.3.5
PSEdition                      Core
GitCommitId                    7.3.5
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Powershell installed modules and versions:

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands ---------- -------    ---------- ----                                --------- ---------------- Binary     2.0.2.180             AzureAD                             Desk
Script     3.2.0                 ExchangeOnlineManagement            Desk      {Add-VivaModuleFeaturePolicy, Get-Conne…
Binary     16.0.2371…            Microsoft.Online.SharePoint.PowerS… Desk
Script     1.0.1                 Microsoft.PowerShell.Operation.Val… Desk      {Get-OperationValidation, Invoke-Operat…
Script     5.3.0                 MicrosoftTeams                      Core,Desk {Add-TeamChannelUser, Add-TeamUser, Con…
Script     1.4.8.1               PackageManagement                   Desk      {Find-Package, Get-Package, Get-Package…
Binary     1.0.0.1               PackageManagement                   Desk      {Find-Package, Get-Package, Get-Package…
Script     3.4.0                 Pester                              Desk      {Describe, Context, It, Should…}
Script     2.2.5                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-M…
Script     1.0.0.1               PowerShellGet                       Desk      {Install-Module, Find-Module, Save-Modu…
Script     2.0.0      beta2      PSReadline                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLi…

EXO available commands:

PS C:\WINDOWS\system32> Get-Command -Module ExchangeOnlineManagement

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        Connect-ExchangeOnline                             3.2.0      ExchangeOnlineManagement
Function        Connect-IPPSSession                                3.2.0      ExchangeOnlineManagement
Function        Disconnect-ExchangeOnline                          3.2.0      ExchangeOnlineManagement
Function        Get-WrappedCommand                                 3.2.0      ExchangeOnlineManagement
Function        IsCloudShellEnvironment                            3.2.0      ExchangeOnlineManagement
Function        UpdateImplicitRemotingHandler                      3.2.0      ExchangeOnlineManagement
Cmdlet          Get-ConnectionInformation                          3.2.0      ExchangeOnlineManagement
Cmdlet          Get-DefaultTenantBriefingConfig                    3.2.0      ExchangeOnlineManagement
Cmdlet          Get-DefaultTenantMyAnalyticsFeatureConfig          3.2.0      ExchangeOnlineManagement
Cmdlet          Get-EXOCasMailbox                                  3.2.0      ExchangeOnlineManagement
Cmdlet          Get-EXOMailbox                                     3.2.0      ExchangeOnlineManagement
Cmdlet          Get-EXOMailboxFolderPermission                     3.2.0      ExchangeOnlineManagement
Cmdlet          Get-EXOMailboxFolderStatistics                     3.2.0      ExchangeOnlineManagement
Cmdlet          Get-EXOMailboxPermission                           3.2.0      ExchangeOnlineManagement
Cmdlet          Get-EXOMailboxStatistics                           3.2.0      ExchangeOnlineManagement
Cmdlet          Get-EXOMobileDeviceStatistics                      3.2.0      ExchangeOnlineManagement
Cmdlet          Get-EXORecipient                                   3.2.0      ExchangeOnlineManagement
Cmdlet          Get-MyAnalyticsFeatureConfig                       3.2.0      ExchangeOnlineManagement
Cmdlet          Get-UserBriefingConfig                             3.2.0      ExchangeOnlineManagement
Cmdlet          Get-VivaInsightsSettings                           3.2.0      ExchangeOnlineManagement
Cmdlet          Get-VivaModuleFeature                              3.2.0      ExchangeOnlineManagement
Cmdlet          Get-VivaModuleFeatureEnablement                    3.2.0      ExchangeOnlineManagement
Cmdlet          Get-VivaModuleFeaturePolicy                        3.2.0      ExchangeOnlineManagement
Cmdlet          Remove-VivaModuleFeaturePolicy                     3.2.0      ExchangeOnlineManagement
Cmdlet          Set-DefaultTenantBriefingConfig                    3.2.0      ExchangeOnlineManagement
Cmdlet          Set-MyAnalyticsFeatureConfig                       3.2.0      ExchangeOnlineManagement
Cmdlet          Set-UserBriefingConfig                             3.2.0      ExchangeOnlineManagement
Cmdlet          Set-VivaInsightsSettings                           3.2.0      ExchangeOnlineManagement
Cmdlet          Update-VivaModuleFeaturePolicy                     3.2.0      ExchangeOnlineManagement
Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,172 questions
Windows for business | Windows Server | User experience | PowerShell
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-07-21T14:32:05.4+00:00

    Hello Marco,

    Thank you for your question and for reaching out with your question today.

    The Get-UnifiedGroup cmdlet is part of the Microsoft Exchange Online PowerShell module, which is used to manage Exchange Online settings and configurations. It seems that you have installed the Exchange Online Management PowerShell module, but the Get-UnifiedGroup cmdlet is still not available.

    One possible reason for this could be the difference in module versions. The Get-UnifiedGroup cmdlet might be available in a different version of the Exchange Online Management module.

    To check if there are newer versions of the Exchange Online Management module available, you can use the following command:

    
    Get-Module ExchangeOnlineManagement -ListAvailable
    
    

    This command will list all available versions of the Exchange Online Management module on your system.

    To update to the latest version of the Exchange Online Management module, you can use the following command:

    
    Update-Module ExchangeOnlineManagement
    
    

    After updating to the latest version, try running Get-UnifiedGroup again to see if the cmdlet is now available.

    If the Get-UnifiedGroup cmdlet is still not available after updating the module, it's possible that there might be some issues with the installation or configuration of the module. In such cases, you can try reinstalling the module or troubleshooting the installation to resolve the issue.

    Additionally, please ensure that you have the necessary permissions to access and manage Unified Groups in your Exchange Online environment.

    If you continue to experience issues, it might be helpful to check for any errors or warnings in the PowerShell console when importing the module or running the cmdlet, as they can provide more insights into the problem.

    Keep in mind that PowerShell modules and cmdlets are regularly updated, and features might vary across different versions, so staying up-to-date with the latest module versions is essential for accessing the latest functionalities.

    I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.

    If the reply was helpful, please don’t forget to upvote or accept as answer.

    0 comments No comments

  2. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2023-07-21T16:56:52.3866667+00:00

    The Exchange Online module dynamically downloads the set of cmdlets available for your user after you authenticate. Said cmdlets are stored in a temp file on your device, which you can get to via Get-Module, or the Get-ConnectionInformation cmdlet. So the first thing you need to do is connect via the Connect-ExchangeOnline cmdlet, then check again whether Get-UnifiedGroup is available.

    If the answer is still no, the next step is to check your permissions. Each cmdlet within Exchange Online is contained within one or more "roles", which in turn can be assigned to users. Thus, you need to ensure that at least one such role is assigned to your user. To get the list of roles, you can use this:

    Get-ManagementRole -Cmdlet Get-UnifiedGroup

    In the default configuration, the minimum role needed would be View-Only Recipients. But that might differ, depending on any customization made in your tenant.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.