MSEndpointMgr / IntuneAppFactory

Intune App Factory automates Win32 application packaging in Intune.
https://msendpointmgr.com/intune-app-factory
MIT License
32 stars 12 forks source link

Pipeline failed install modules admin permission #9

Closed DennisBergemann closed 11 months ago

DennisBergemann commented 11 months ago

Hello Team,

the devops pipeline fails for me with the following message: Starting: Install-Modules

Task : PowerShell Description : Run a PowerShell script on Linux, macOS, or Windows Version : 2.228.1 Author : Microsoft Corporation Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell

Generating script. Formatted command: . 'C:\ADOAgent_work\1\s\Scripts\Install-Modules.ps1' ========================== Starting Command Output =========================== "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\ADOAgent_work_temp\7b363cec-e052-4026-885a-b57a2e0d2644.ps1'" Install-PackageProvider : Administrator rights are required to install packages in ''. Log on to the computer with an account that has Administrator rights, and then try again, or install in 'C:\Users\intunefactory\AppData\Local\PackageManagement\ProviderAssemblies' by adding "-Scope CurrentUser" to your command. You can also try running the Windows PowerShell session with elevated rights (Run as Administrator). At C:\ADOAgent_work\1\s\Scripts\Install-Modules.ps1:2 char:20

You recommmend that i install the modules manually before? I can not see that i missed a step, so maybe if you want me to do it manually it should be added to documentation?

thanks for your help and your wonderfull work on this factory

DennisBergemann commented 11 months ago

Hello @NickolajA ,

Unfortunately, the pipeline also fails, although I have installed the modules manually, in the script is probably not checked before whether the modules are installed. I can not see any step that we would have forgotten.

My user on VM has: Administrators Remote Desktop Users Users VSTS_AgentService_G40e8b

any guesses to help me out here :-)

DennisBergemann commented 11 months ago

Topic can be closed.

I changed permission to the user, but forgot to restart vm.

Thank you