-
Hi, 2023-04-18T07:54:59.5796946Z ##[section]Starting: Export Test |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Looks like an issue on or after row 184 in Core.ps1: if(Test-Path $global:modulesPath) It writes the PowerShell and OS information to the log, which is just above that. So the error must be the Test-Path call or in Import-AllModules. Not really sure why tough. You could try to add some additional logging eg. add the Write-Log lines below to identify exactly where it fails. Write-Log "!!! 1"
Write-Log "!!! 3" Cheers! |
Beta Was this translation helpful? Give feedback.
-
Thanks for answering Micke! 2023-04-19T12:06:16.5451674Z ##[section]Starting: Export Test |
Beta Was this translation helpful? Give feedback.
-
That looks like it broke somehow. It did not even write the PowerShell info to the log. Can you tried the attached version? I ran that with a silent batch job without any issues. |
Beta Was this translation helpful? Give feedback.
-
Sadly still the same issue. 2023-04-20T07:49:27.9712826Z ##[section]Starting: Export Test |
Beta Was this translation helpful? Give feedback.
-
Indeed that was the case , we forgot to push that folder to devops repository. Thanks for Your help it works fine now !!! |
Beta Was this translation helpful? Give feedback.
Hello!
I did not expect it to be fixed. I just added extra logging.
That looks like it doesn't have the modules folder downloaded eg the the logs says !!! 1.1 D:\a\1\s\IntuneManagementTool\Extensions
The next line says !!! 4.
That suggests that it can't find the Extensions folder so no modules are imported and therefore it fails.
Not sure why but it looks like it can't detect that folder.
Cheers!