microsoftgraph / powershell-intune-samples

This repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell.
MIT License
1.37k stars 658 forks source link

Function Get-AADGroup shares name with Microsoft.Graph.Intune Get-Groups Alias #176

Open marmingr opened 3 years ago

marmingr commented 3 years ago

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.

marmingr commented 3 years ago

get-alias -Definition Get-Groups

CommandType Name Version Source


Alias Get-AADGroup 6.1907.1.0 Microsoft.Graph.Intune