MSEndpointMgr / IntuneWin32App

Provides a set of functions to manage all aspects of Win32 apps in Microsoft Intune.
MIT License
351 stars 91 forks source link

Update Invoke-IntuneGraphRequest.ps1 #177

Open Ka1Nn opened 2 months ago

Ka1Nn commented 2 months ago

Invoke-IntuneGraphRequest -APIVersion "v1.0" -Route "" -Resource "groups" -Method "GET"

or

Invoke-IntuneGraphRequest -APIVersion "v1.0" -Route "groups" -Resource "" -Method "GET"

returns an error :

Invoke-IntuneGraphRequest : Cannot validate argument on parameter 'Route'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At line:124 char:53
+ Invoke-IntuneGraphRequest -APIVersion "v1.0" -Route "" -Resource "gro ...
+                                                     ~~
    + CategoryInfo          : InvalidData: (:) [Invoke-IntuneGraphRequest], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Invoke-IntuneGraphRequest