MSEndpointMgr / IntuneWin32App

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

New-IntuneWin32AppDependency issue because of missing parentheses #137

Closed DennisBergemann closed 9 months ago

DennisBergemann commented 9 months ago

Hi, the function above fails because of a mistake with parentheses

IMG_0559

The line 42 fails because If(Test-AccessToken -eq $false) {..} resolves as Test-AccessToken has no -eq parameter. Here one forgot the parentheses and it must be

if((Test-AccessToken) -eq $false) {..}

Best regards