I have used the Win32 Content Prep Tool to capture and upload the NAV client install to Intune. Before doing so I validated that the install via command line works and runs silently on several PCs. After assigning the app in Intune it shows up on PCs. When selecting the app from the Company Portal to install it fails. Checking the IntuneManagementExtension.log shows that it downloads the ZIP file (also verified by seeing it in C:\Program Files (x86)\Microsoft Intune Management Extension\Content\Incoming). It also moves it to the staging folder. But when it tries to extract the zip it gets the below error message in the log and the install reports as failed. Tried on multiple PCs with the same error. I have been unable to find any references to this error. I have also tested manually unzipping the downloaded zip file from the Staging folder to the C:\Windows\IMECache folder it it unzips without error. There is no AV software running other than the built-in Windows Defender with default settings. Computer is not domain joined but is Azure AD joined. There are no policies setup to the PCs as this is a brand new environment.
UnauthorizedAccessException occurs when unzipping Win32App user session 1, the exception is System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Microsoft Intune Management Extension\Content\Staging\1d739ef8-0eae-41ba-97c5-1b9182b6dead_1\1d739ef8-0eae-41ba-97c5-1b9182b6dead_1.zip' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.Compression.ZipFile.Open(String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding)
at System.IO.Compression.ZipFile.ExtractToDirectory(String sourceArchiveFileName, String destinationDirectoryName, Encoding entryNameEncoding)
at Microsoft.Management.Services.IntuneWindowsAgent.AgentCommon.FileSystemWrapper.ExtractZipFileToDirectory(String sourceArchiveFileName, String destinationDirectoryName)
at Microsoft.Management.Clients.IntuneManagementExtension.Win32AppPlugIn.ContentUnzipper.Unzip(SideCarApplicationClientPolicy sideCarApplicationClientPolicy, Int32 sessionId, String downloadFilePath, Win32AppResult win32AppResult, String& unzipFolder)