Set-ADTRegistryKey not working

I’m trying to create the app registry keys using the Set-ADTRegistryKey and everything working fine with debug mode (administrator rights)
When I deploy the application to create the registry keys using the Intune (device scope and requireadminstrator=$true), I see the log that the keys was created but not true. Any idea ?

##================================================
## MARK: Post-Install
##================================================
$adtSession.InstallPhase = "Post-$($adtSession.DeploymentType)"

## <Perform Post-Installation tasks here>
$AppPackageName = "COMPANY_APP" + "_" + $adtSession.AppName + "_" + $adtSession.AppVersion + "_" + $adtSession.AppArch
$RegistryPath = "HKLM:\SOFTWARE\COMPANY\Package\$($AppPackageName)"

If (-not (Test-Path $RegistryPath))
{
    Try
    {
        New-Item -Path $RegistryPath -Force -ErrorAction Stop | Out-Null
        Write-ADTLogEntry -Message "Created registry path: $($RegistryPath)" -Source $adtSession.deployAppScriptFriendlyName
    }
    Catch
    {
        Write-ADTLogEntry -Message "Failed to create registry path: $($RegistryPath). Error: $_" -Source $adtSession.deployAppScriptFriendlyName -Severity 3
        throw
    }
}

Show-ADTInstallationProgress -StatusMessage "Creating registry keys. Please Wait..."    
Write-ADTLogEntry -Message "Setting install registry keys for $($AppPackageName)" -Source $adtSession.deployAppScriptFriendlyName

Try
{
    Set-ADTRegistryKey -Key $RegistryPath -Name 'Application_Code' -Value $AppPackageName -Type String -ErrorAction Stop
    Set-ADTRegistryKey -Key $RegistryPath -Name 'Application_Name' -Value $adtSession.AppName -Type String -ErrorAction Stop
    Set-ADTRegistryKey -Key $RegistryPath -Name 'Publisher' -Value $adtSession.AppVendor -Type String -ErrorAction Stop
    Set-ADTRegistryKey -Key $RegistryPath -Name 'Author' -Value $adtSession.AppScriptAuthor -Type String -ErrorAction Stop
    Set-ADTRegistryKey -Key $RegistryPath -Name 'Release' -Value $adtSession.AppRevision -Type String -ErrorAction Stop
    Set-ADTRegistryKey -Key $RegistryPath -Name 'Editor_Version' -Value $adtSession.AppVersion -Type String -ErrorAction Stop
    Set-ADTRegistryKey -Key $RegistryPath -Name 'Uninstall_Date' -Value "" -Type String -ErrorAction Stop
    Set-ADTRegistryKey -Key $RegistryPath -Name 'Uninstall_Detail_Date' -Value "" -Type String -ErrorAction Stop
    Set-ADTRegistryKey -Key $RegistryPath -Name 'Install_Date' -Value $(Get-Date -Format yyyyMMdd) -Type String -ErrorAction Stop
    Set-ADTRegistryKey -Key $RegistryPath -Name 'Install_Detail_Date' -Value $(Get-Date -Format yyyyMMddHHmm) -Type String -ErrorAction Stop
    Set-ADTRegistryKey -Key $RegistryPath -Name 'Language' -Value $adtSession.AppLang -Type String -ErrorAction Stop
    Set-ADTRegistryKey -Key $RegistryPath -Name 'Architecture' -Value $adtSession.AppArch -Type String -ErrorAction Stop
    Write-ADTLogEntry -Message "Successfully created registry keys for $($AppPackageName)" -Source $adtSession.deployAppScriptFriendlyName
}

Catch
{
    Write-ADTLogEntry -Message "Failed to set registry keys for $($AppPackageName). Error: $_" -Source $adtSession.deployAppScriptFriendlyName -Severity 3
    throw
}

Can you post some of that log file?

Keen to see the log also. Worth mentioning, you don’t need to provide -Source to Write-ADTLogEntry unless you don’t like the source name it determines. You also don’t need -ErrorAction Stop on the Set-ADTRegistryKey lines either as these will stop on an error by default.

Logs (company_intune)

<Removed by TAG because it wasn't readable and is available further down>

Sure.

The files with name admin_debug, represent the files created during the debug session, when I open the PowerShell using the local administrator.

The registry keys are created without any issues

The files with name company_intune, represent the files created over the Intune deployment.

The registry keys are not created.

Logs (admin_debug)

<![LOG[-------------------------------------------------------------------------------]LOG]!><time=“19:22:15.058-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: [Adoptium_OpenJDKTemurin_21.0.8.9_x64_EN_01] install started.]LOG]!><time=“19:22:15.067-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: [Adoptium_OpenJDKTemurin_21.0.8.9_x64_EN_01] script version is [1.0.0].]LOG]!><time=“19:22:15.088-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: [Adoptium_OpenJDKTemurin_21.0.8.9_x64_EN_01] script date is [2025-08-07].]LOG]!><time=“19:22:15.099-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: [Invoke-AppDeployToolkit.ps1] script version is [4.1.0].]LOG]!><time=“19:22:15.108-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: The following parameters were passed to [Invoke-AppDeployToolkit.ps1]: [-DeploymentType:‘Install’ -DeployMode:‘Silent’].]LOG]!><time=“19:22:15.116-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: [PSAppDeployToolkit] module version is [4.1.0].]LOG]!><time=“19:22:15.135-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: [PSAppDeployToolkit] module imported in [8,202108] seconds.]LOG]!><time=“19:22:15.147-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: [PSAppDeployToolkit] module initialized in [6,8822806] seconds.]LOG]!><time=“19:22:15.155-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: [PSAppDeployToolkit] module path is [‘C:\Temp\PSADT\PSAppDeployToolkit’].]LOG]!><time=“19:22:15.167-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: [PSAppDeployToolkit] config path is [‘C:\Temp\PSADT\Config’].]LOG]!><time=“19:22:15.177-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: [PSAppDeployToolkit] string path is [‘C:\Temp\PSADT\Strings’].]LOG]!><time=“19:22:15.188-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: [PSAppDeployToolkit] session mode is [Native].]LOG]!><time=“19:22:15.205-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: Computer Name is [WEL-D5CTP94.lanet.accorservices.net].]LOG]!><time=“19:22:15.215-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: Current User is [WEL-D5CTP94\WLapsAdmin].]LOG]!><time=“19:22:15.215-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: OS Version is [Microsoft Windows 11 Pro X64 10.0.26100.4652].]LOG]!><time=“19:22:15.235-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: OS Type is [WorkStation].]LOG]!><time=“19:22:15.245-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: Hardware Platform is [Physical].]LOG]!><time=“19:22:15.265-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: Current Culture is [pt-BR], language is [PT] and UI language is [PT].]LOG]!><time=“19:22:15.278-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: PowerShell Host is [Windows PowerShell ISE Host] with version [5.1.26100.4652].]LOG]!><time=“19:22:15.287-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: PowerShell Version is [5.1.26100.4652 X64].]LOG]!><time=“19:22:15.295-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: PowerShell Process Path is [C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell_ISE.exe].]LOG]!><time=“19:22:15.309-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: PowerShell CLR (.NET) version is [4.0.30319.42000].]LOG]!><time=“19:22:15.310-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: The following users are logged on to the system: [LANET\asvale].]LOG]!><time=“19:22:15.337-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: Session information for all logged on users: NTAccount : LANET\asvaleSID : S-1-5-21-1640946926-1539403933-3447711764-245908UserName : asvaleDomainName : LANETSessionId : 1SessionName : ConsoleConnectState : WTSActiveIsCurrentSession : TrueIsConsoleSession : TrueIsActiveUserSession : TrueIsUserSession : TrueIsRdpSession : FalseIsLocalAdmin : FalseIsLocalAdminException :LogonTime : 11/08/2025 13:50:54IdleTime : 155085.21:22:10.3330344DisconnectTime :ClientName :ClientProtocolType : ConsoleClientDirectory :ClientBuildNumber :]LOG]!><time=“19:22:15.343-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: Current process is running with user account [WEL-D5CTP94\WLapsAdmin] under logged on user session for [LANET\asvale].]LOG]!><time=“19:22:15.343-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: The following user is the console user [LANET\asvale] (user with control of physical monitor, keyboard, and mouse).]LOG]!><time=“19:22:15.364-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: The active logged on user who will receive UI elements is [LANET\asvale].]LOG]!><time=“19:22:15.373-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: The current execution context has a primary UI language of [pt-BR].]LOG]!><time=“19:22:15.373-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: The config file was configured to override the detected primary UI language with the following UI language: [EN].]LOG]!><time=“19:22:15.395-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: The following locale was used to import UI messages from the strings.psd1 files: [en].]LOG]!><time=“19:22:15.408-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: Unable to find COM object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.]LOG]!><time=“19:22:15.408-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: Device has completed the OOBE and toolkit is not running with an active ESP in progress.]LOG]!><time=“19:22:15.428-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: Session 0 not detected, toolkit running as non-SYSTEM user account.]LOG]!><time=“19:22:15.436-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: No processes were specified as requiring closure.]LOG]!><time=“19:22:15.452-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: Installation is running in [Silent] mode.]LOG]!><time=“19:22:15.468-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: Deployment type is [Install].]LOG]!><time=“19:22:15.477-180” date=“8-11-2025” component=“Open-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Initialization] :: Module [PSAppDeployToolkit.Extensions] imported successfully.]LOG]!><time=“19:22:15.539-180” date=“8-11-2025” component=“PSAppDeployToolkit.Extensions.psm1” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit.Extensions\PSAppDeployToolkit.Extensions.psm1”><![LOG[[Pre-Install] :: Running Show-ADTInstallationWelcome silently as the current deployment is NonInteractive or Silent.]LOG]!><time=“19:22:15.563-180” date=“8-11-2025” component=“Show-ADTInstallationWelcome” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Pre-Install] :: Evaluating disk space requirements.]LOG]!><time=“19:22:15.578-180” date=“8-11-2025” component=“Show-ADTInstallationWelcome” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Pre-Install] :: Retrieving free disk space for drive [C:].]LOG]!><time=“19:22:15.639-180” date=“8-11-2025” component=“Get-ADTFreeDiskSpace” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Pre-Install] :: Free disk space for drive [C:]: [362003 MB].]LOG]!><time=“19:22:15.653-180” date=“8-11-2025” component=“Get-ADTFreeDiskSpace” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Pre-Install] :: Successfully passed minimum disk space requirement check.]LOG]!><time=“19:22:15.668-180” date=“8-11-2025” component=“Show-ADTInstallationWelcome” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Pre-Install] :: Bypassing Show-ADTInstallationProgress [Mode: Silent]. Status message: Installation in progress. Please wait…]LOG]!><time=“19:22:15.681-180” date=“8-11-2025” component=“Show-ADTInstallationProgress” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: Executing MSI action [Install]…]LOG]!><time=“19:22:15.691-180” date=“8-11-2025” component=“Start-ADTMsiProcess” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: Reading data from Windows Installer database file [C:\Temp\PSADT\Files\OpenJDK21U-jdk_x64_windows_hotspot_21.0.8_9.msi] in table [Property].]LOG]!><time=“19:22:15.722-180” date=“8-11-2025” component=“Get-ADTMsiTableProperty” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: Getting information for installed applications…]LOG]!><time=“19:22:16.134-180” date=“8-11-2025” component=“Get-ADTApplication” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: Found no application based on the supplied FilterScript.]LOG]!><time=“19:22:16.188-180” date=“8-11-2025” component=“Get-ADTApplication” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: Preparing to execute process [C:\WINDOWS\system32\msiexec.exe]…]LOG]!><time=“19:22:16.213-180” date=“8-11-2025” component=“Start-ADTProcess” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: Checking to see if mutex [Global_MSIExecute] is available. Wait up to [10 minute(s)] for the mutex to become available.]LOG]!><time=“19:22:16.230-180” date=“8-11-2025” component=“Test-ADTMutexAvailability” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: Mutex [Global_MSIExecute] is available for an exclusive lock.]LOG]!><time=“19:22:16.251-180” date=“8-11-2025” component=“Test-ADTMutexAvailability” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: CreateNoWindow not specified, StdOut/StdErr streams will not be available.]LOG]!><time=“19:22:17.299-180” date=“8-11-2025” component=“Start-ADTProcess” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: Working Directory is [C:\Temp\PSADT\Files].]LOG]!><time=“19:22:17.311-180” date=“8-11-2025” component=“Start-ADTProcess” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: Executing [“C:\WINDOWS\system32\msiexec.exe” /i C:\Temp\PSADT\Files\OpenJDK21U-jdk_x64_windows_hotspot_21.0.8_9.msi /quiet /norestart INSTALLLEVEL=3 ADDLOCAL=ALL /LV C:\WINDOWS\Logs\Software\EclipseTemurinJDKwithHotspot21.0.8+9(x64)_21.0.8.9_Install.log]…]LOG]!><time=“19:22:17.343-180” date=“8-11-2025” component=“Start-ADTProcess” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: Executed [“C:\WINDOWS\system32\msiexec.exe” /i C:\Temp\PSADT\Files\OpenJDK21U-jdk_x64_windows_hotspot_21.0.8_9.msi /quiet /norestart INSTALLLEVEL=3 ADDLOCAL=ALL /LV C:\WINDOWS\Logs\Software\EclipseTemurinJDKwithHotspot21.0.8+9(x64)_21.0.8.9_Install.log], awaiting completion…]LOG]!><time=“19:22:17.467-180” date=“8-11-2025” component=“Start-ADTProcess” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: Execution completed successfully with exit code [0].]LOG]!><time=“19:23:27.548-180” date=“8-11-2025” component=“Start-ADTProcess” context=“WEL-D5CTP94\WLapsAdmin” type=“0” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: StdOut Output from Execution: N/A]LOG]!><time=“19:23:27.570-180” date=“8-11-2025” component=“Start-ADTProcess” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: StdErr Output from Execution: N/A]LOG]!><time=“19:23:27.585-180” date=“8-11-2025” component=“Start-ADTProcess” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: Interleaved Output from Execution: N/A]LOG]!><time=“19:23:27.599-180” date=“8-11-2025” component=“Start-ADTProcess” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: The calling account [WEL-D5CTP94\WLapsAdmin] is running interactively, but not as the logged on user and is missing the permission(s) [‘SeAssignPrimaryTokenPrivilege’] necessary to create a process as another user. The client/server process will be created as the calling account, however PSAppDeployToolkit’s client/server process is designed to operate directly as a logged on user. As such, it is recommended to either log on directly to Windows using this account you’re testing with, assign this account the missing permissions, or test via the SYSTEM account just as ConfigMgr or Intune uses for its operations.]LOG]!><time=“19:23:27.625-180” date=“8-11-2025” component=“Get-ADTClientServerUser” context=“WEL-D5CTP94\WLapsAdmin” type=“2” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Install] :: Refreshing the Desktop and the Windows Explorer environment process block.]LOG]!><time=“19:23:27.645-180” date=“8-11-2025” component=“Update-ADTDesktop” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Created registry path: HKLM:\SOFTWARE\COMPANY\Package\COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64]LOG]!><time=“19:23:30.680-180” date=“8-11-2025” component=“Invoke-AppDeployToolkit.ps1” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\Invoke-AppDeployToolkit.ps1”><![LOG[[Post-Install] :: Bypassing Show-ADTInstallationProgress [Mode: Silent]. Status message: Creating registry keys. Please Wait…]LOG]!><time=“19:23:30.717-180” date=“8-11-2025” component=“Show-ADTInstallationProgress” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Setting install registry keys for COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64]LOG]!><time=“19:23:30.762-180” date=“8-11-2025” component=“Invoke-AppDeployToolkit.ps1” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\Invoke-AppDeployToolkit.ps1”><![LOG[[Post-Install] :: Setting registry key value: [Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\Package\COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64] [Application_Code = COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64].]LOG]!><time=“19:23:30.850-180” date=“8-11-2025” component=“Set-ADTRegistryKey” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Setting registry key value: [Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\Package\COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64] [Application_Name = OpenJDK Temurin].]LOG]!><time=“19:23:30.914-180” date=“8-11-2025” component=“Set-ADTRegistryKey” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Setting registry key value: [Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\Package\COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64] [Publisher = Adoptium].]LOG]!><time=“19:23:30.977-180” date=“8-11-2025” component=“Set-ADTRegistryKey” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Setting registry key value: [Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\Package\COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64] [Author = ].]LOG]!><time=“19:23:31.041-180” date=“8-11-2025” component=“Set-ADTRegistryKey” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Setting registry key value: [Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\Package\COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64] [Release = 01].]LOG]!><time=“19:23:31.105-180” date=“8-11-2025” component=“Set-ADTRegistryKey” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Setting registry key value: [Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\Package\COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64] [Editor_Version = 21.0.8.9].]LOG]!><time=“19:23:31.169-180” date=“8-11-2025” component=“Set-ADTRegistryKey” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Setting registry key value: [Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\Package\COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64] [Uninstall_Date = ].]LOG]!><time=“19:23:31.249-180” date=“8-11-2025” component=“Set-ADTRegistryKey” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Setting registry key value: [Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\Package\COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64] [Uninstall_Detail_Date = ].]LOG]!><time=“19:23:31.297-180” date=“8-11-2025” component=“Set-ADTRegistryKey” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Setting registry key value: [Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\Package\COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64] [Install_Date = 20250811].]LOG]!><time=“19:23:31.376-180” date=“8-11-2025” component=“Set-ADTRegistryKey” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Setting registry key value: [Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\Package\COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64] [Install_Detail_Date = 202508111923].]LOG]!><time=“19:23:31.440-180” date=“8-11-2025” component=“Set-ADTRegistryKey” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Setting registry key value: [Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\Package\COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64] [Language = EN].]LOG]!><time=“19:23:31.503-180” date=“8-11-2025” component=“Set-ADTRegistryKey” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Setting registry key value: [Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\Package\COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64] [Architecture = x64].]LOG]!><time=“19:23:31.582-180” date=“8-11-2025” component=“Set-ADTRegistryKey” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Post-Install] :: Successfully created registry keys for COMPANY_APP_OpenJDK Temurin_21.0.8.9_x64]LOG]!><time=“19:23:31.614-180” date=“8-11-2025” component=“Invoke-AppDeployToolkit.ps1” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\Invoke-AppDeployToolkit.ps1”><![LOG[[Finalization] :: Removing deferral history…]LOG]!><time=“19:23:31.630-180” date=“8-11-2025” component=“Close-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[[Finalization] :: [Adoptium_OpenJDKTemurin_21.0.8.9_x64_EN_01] install completed in [76,6069875] seconds with exit code [0].]LOG]!><time=“19:23:31.663-180” date=“8-11-2025” component=“Close-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“0” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”><![LOG[-------------------------------------------------------------------------------]LOG]!><time=“19:23:31.693-180” date=“8-11-2025” component=“Close-ADTSession” context=“WEL-D5CTP94\WLapsAdmin” type=“1” thread=“22920” file=“C:\Temp\PSADT\PSAppDeployToolkit\PSAppDeployToolkit.psm1”>

/tmp/files - logs.zip

All your logs above are a single line without line feeds, not sure how that happened… Your link doesn’t work either.

Aside from that, I’m not seeing anything particularly wrong here. Are you using our executable to start the install, or a direct PowerShell call? I’d check HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node to make sure your stuff’s not ended up in there if you’re running a 32-bit PowerShell process.

Im using the powershell directly to create the registrys.

I guess, I found the issue, you helped me without knowing

Debuging the application over the PowerShell, Im specifying the key "HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY".
Through Intune, he are not respecting the parameter and is creating the key in "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\COMPANY".
According of the documentation the parameter " Set-ADTRegistryKey - Wow6432Node", required is false.
But he are not respecting .