powershell-intune-samples
powershell-intune-samples copied to clipboard
Function Get-AADGroup shares name with Microsoft.Graph.Intune Get-Groups Alias
The function Get-AADGroup in many of the scripts shares the same name as the Alias of Get-Groups in the Microsoft.Graph.Intune Powershell module, it has different parameters and if it is loaded when running these scripts the id parameters is not found because it tries to uses the module function instead of the function defined within the script.
get-alias -Definition Get-Groups
CommandType Name Version Source
Alias Get-AADGroup 6.1907.1.0 Microsoft.Graph.Intune