MSEndpointMgr / IntuneWin32App

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

Add-IntuneWin32AppDependency: The term 'Get-IntuneWin32AppRelationExistence' is not recognized #100

Open rirarave opened 1 year ago

rirarave commented 1 year ago

It looks like Add-IntuneWin32AppDependency refers to a function that does not exist. The file 'Get-IntuneWin32AppRelationExistence.ps1' exists but the function in it is called 'Get-IntuneWin32AppRelation' without the 'Existence'.. So i assumed that this is the one and changed the call inside Add-IntuneWin32AppDependency to Get-IntuneWin32AppRelation. (and the name of the .ps1 and inside 'PSGetModuleInfo.xml') Additionally it tries to call the function with a parameter 'type' which is not used by 'Get-IntuneWin32AppRelation'. So i removed that as well.

With those changes it seems like its working now..

Can you confirm that there is an issue and if my solution is correct?

vinuelz commented 1 year ago

i ran in the same issue but i made an different approach in fixing it:

i changed the Get-IntuneWin32AppRelationExistence.ps1 File in C:\Program Files\WindowsPowerShell\Modules\IntuneWin32App\1.4.1\Private

Line1: function Get-IntuneWin32AppRelationExistence {

Line26 and 27: [string]$ID, [string]$Type

after that i reimportet the module (import-module Intunewin32app -force) and then everything worked as expected

rodw-wilkins commented 1 year ago

i ran in the same issue but i made an different approach in fixing it:

i changed the Get-IntuneWin32AppRelationExistence.ps1 File in C:\Program Files\WindowsPowerShell\Modules\IntuneWin32App\1.4.1\Private

Line1: function Get-IntuneWin32AppRelationExistence {

Line26 and 27: [string]$ID, [string]$Type

after that i reimportet the module (import-module Intunewin32app -force) and then everything worked as expected

Thanks for this, helped me with this issue as well.

Soolkiki commented 1 year ago

Is this going to get updated soon? I rolled back to 1.3.6 so this would work in my pipeline.

YoPablo75 commented 1 year ago

Thank you [vinuelz], this helped me also. I hope the file gets updated in the repository.

NickolajA commented 1 year ago

This will be fixed in 1.4.2