Open rirarave opened 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
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.
Is this going to get updated soon? I rolled back to 1.3.6 so this would work in my pipeline.
Thank you [vinuelz], this helped me also. I hope the file gets updated in the repository.
This will be fixed in 1.4.2
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?