Empirum: Install (User) Failure

Hallo zusammen,

wir setzen für die Softwareverteilung Empirum ein. Seit einiger Zeit beobachten wir vermehrt Probleme mit bestimmten PSADT-Paketen, vermutlich insbesondere mit solchen, die die Funktion Invoke-HKCURegistrySettingsForAllUsers verwenden.

Ursprünglich ist uns das Verhalten bei verschiedenen Versionen des Adobe Acrobat Reader-Pakets aufgefallen, mittlerweile tritt das Problem aber auch bei mehreren anderen Paketen auf.

Im Empirum-Log erscheint dabei folgende Fehlermeldung:
image

Hier ein Auszug aus der PSADT-Logdatei eines betroffenen Clients:

<![LOG[[Package-Completion] :: Getting the User Profile Path, User Account SID, and the User Account Name for all users that log onto the machine.]LOG]!><time="01:31:57.775120" date="06-14-2025" component="Get-UserProfiles" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Converting the SID [S-1-5-18] to an NT Account name.]LOG]!><time="01:31:57.839120" date="06-14-2025" component="ConvertTo-NTAccountOrSID" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Converting the SID [S-1-5-19] to an NT Account name.]LOG]!><time="01:31:57.858120" date="06-14-2025" component="ConvertTo-NTAccountOrSID" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Converting the SID [S-1-5-20] to an NT Account name.]LOG]!><time="01:31:57.873120" date="06-14-2025" component="ConvertTo-NTAccountOrSID" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Converting the SID [S-1-5-21-2100000085-2000000015-1800000044-7701] to an NT Account name.]LOG]!><time="01:31:57.887120" date="06-14-2025" component="ConvertTo-NTAccountOrSID" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Converting the SID [S-1-5-21-2100000085-2000000015-1800000044-7802] to an NT Account name.]LOG]!><time="01:31:57.906120" date="06-14-2025" component="ConvertTo-NTAccountOrSID" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Converting the SID [S-1-5-21-2200000065-3000000053-240000072-500] to an NT Account name.]LOG]!><time="01:31:57.934120" date="06-14-2025" component="ConvertTo-NTAccountOrSID" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Loading the User [DOMAIN\user2] registry hive in path [HKEY_USERS\S-1-5-21-2100000085-2000000015-1800000044-7701].]LOG]!><time="01:31:57.973120" date="06-14-2025" component="Invoke-HKCURegistrySettingsForAllUsers" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Executing ScriptBlock to modify HKCU registry settings for all users.]LOG]!><time="01:31:58.107120" date="06-14-2025" component="Invoke-HKCURegistrySettingsForAllUsers" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Failed to modify the registry hive for User [DOMAIN\user2] with SID [S-1-5-21-2100000085-2000000015-1800000044-7701] 
Error Record:
-------------

Message        : Das Argument für den Parameter "SID" kann nicht überprüft werden. Das Argument ist NULL oder leer. 
                 Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
InnerException : System.Management.Automation.ValidationMetadataException: Das Argument ist NULL oder leer. Geben Sie 
                 ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
                    bei System.Management.Automation.ValidateNotNullOrEmptyAttribute.Validate(Object arguments, 
                 EngineIntrinsics engineIntrinsics)
                    bei System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal 
                 parameter, CompiledCommandParameter parameterMetadata, ParameterBindingFlags flags)

FullyQualifiedErrorId : ParameterArgumentValidationError,Get-RegistryKey
ScriptStackTrace      : bei <ScriptBlock>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitMain.ps1: Zeile 14960
                        bei Invoke-HKCURegistrySettingsForAllUsers<Process>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitMain.ps1: Zeile 6823
                        bei Set-ActiveSetup<Process>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitMain.ps1: Zeile 14964
                        bei Complete-NxtPackageInstallation<Process>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitExtensions.ps1: Zeile 1305
                        bei Main, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\Deploy-Application.ps1: Zeile 548
                        bei <ScriptBlock>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\Deploy-Application.ps1: Zeile 1214
                        bei <ScriptBlock>, <Keine Datei>: Zeile 1

PositionMessage : In C:\EmpirumAgent\Packages\Adobe\Acrobat 
                  Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitMain.ps1:14960 Zeichen:71
                  + ... Get-RegistryKey -Key $HKCUActiveSetupKey -SID $RunAsActiveUser.SID) {
                  +                                                   ~~~~~~~~~~~~~~~~~~~~



Error Inner Exception(s):
-------------------------

Message        : Das Argument ist NULL oder leer. Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen 
                 Sie den Befehl erneut aus.
InnerException : 



]LOG]!><time="01:31:58.207120" date="06-14-2025" component="Invoke-HKCURegistrySettingsForAllUsers" context="NT-AUTORITÄT\SYSTEM" type="3" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Unload the User [DOMAIN\user2] registry hive in path [HKEY_USERS\S-1-5-21-2100000085-2000000015-1800000044-7701].]LOG]!><time="01:31:58.213120" date="06-14-2025" component="Invoke-HKCURegistrySettingsForAllUsers" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: The user [DOMAIN\user1] registry hive is already loaded in path [HKEY_USERS\S-1-5-21-2100000085-2000000015-1800000044-7802].]LOG]!><time="01:31:58.307120" date="06-14-2025" component="Invoke-HKCURegistrySettingsForAllUsers" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Executing ScriptBlock to modify HKCU registry settings for all users.]LOG]!><time="01:31:58.314120" date="06-14-2025" component="Invoke-HKCURegistrySettingsForAllUsers" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Failed to modify the registry hive for User [DOMAIN\user1] with SID [S-1-5-21-2100000085-2000000015-1800000044-7802] 
Error Record:
-------------

Message        : Das Argument für den Parameter "SID" kann nicht überprüft werden. Das Argument ist NULL oder leer. 
                 Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
InnerException : System.Management.Automation.ValidationMetadataException: Das Argument ist NULL oder leer. Geben Sie 
                 ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
                    bei System.Management.Automation.ValidateNotNullOrEmptyAttribute.Validate(Object arguments, 
                 EngineIntrinsics engineIntrinsics)
                    bei System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal 
                 parameter, CompiledCommandParameter parameterMetadata, ParameterBindingFlags flags)

FullyQualifiedErrorId : ParameterArgumentValidationError,Get-RegistryKey
ScriptStackTrace      : bei <ScriptBlock>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitMain.ps1: Zeile 14960
                        bei Invoke-HKCURegistrySettingsForAllUsers<Process>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitMain.ps1: Zeile 6823
                        bei Set-ActiveSetup<Process>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitMain.ps1: Zeile 14964
                        bei Complete-NxtPackageInstallation<Process>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitExtensions.ps1: Zeile 1305
                        bei Main, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\Deploy-Application.ps1: Zeile 548
                        bei <ScriptBlock>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\Deploy-Application.ps1: Zeile 1214
                        bei <ScriptBlock>, <Keine Datei>: Zeile 1

PositionMessage : In C:\EmpirumAgent\Packages\Adobe\Acrobat 
                  Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitMain.ps1:14960 Zeichen:71
                  + ... Get-RegistryKey -Key $HKCUActiveSetupKey -SID $RunAsActiveUser.SID) {
                  +                                                   ~~~~~~~~~~~~~~~~~~~~



Error Inner Exception(s):
-------------------------

Message        : Das Argument ist NULL oder leer. Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen 
                 Sie den Befehl erneut aus.
InnerException : 



]LOG]!><time="01:31:58.338120" date="06-14-2025" component="Invoke-HKCURegistrySettingsForAllUsers" context="NT-AUTORITÄT\SYSTEM" type="3" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Loading the User [CLIENT\Administrator] registry hive in path [HKEY_USERS\S-1-5-21-2200000065-3000000053-240000072-500].]LOG]!><time="01:31:58.348120" date="06-14-2025" component="Invoke-HKCURegistrySettingsForAllUsers" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Executing ScriptBlock to modify HKCU registry settings for all users.]LOG]!><time="01:31:58.447120" date="06-14-2025" component="Invoke-HKCURegistrySettingsForAllUsers" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Failed to modify the registry hive for User [CLIENT\Administrator] with SID [S-1-5-21-2200000065-3000000053-240000072-500] 
Error Record:
-------------

Message        : Das Argument für den Parameter "SID" kann nicht überprüft werden. Das Argument ist NULL oder leer. 
                 Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
InnerException : System.Management.Automation.ValidationMetadataException: Das Argument ist NULL oder leer. Geben Sie 
                 ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
                    bei System.Management.Automation.ValidateNotNullOrEmptyAttribute.Validate(Object arguments, 
                 EngineIntrinsics engineIntrinsics)
                    bei System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal 
                 parameter, CompiledCommandParameter parameterMetadata, ParameterBindingFlags flags)

FullyQualifiedErrorId : ParameterArgumentValidationError,Get-RegistryKey
ScriptStackTrace      : bei <ScriptBlock>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitMain.ps1: Zeile 14960
                        bei Invoke-HKCURegistrySettingsForAllUsers<Process>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitMain.ps1: Zeile 6823
                        bei Set-ActiveSetup<Process>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitMain.ps1: Zeile 14964
                        bei Complete-NxtPackageInstallation<Process>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitExtensions.ps1: Zeile 1305
                        bei Main, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\Deploy-Application.ps1: Zeile 548
                        bei <ScriptBlock>, C:\EmpirumAgent\Packages\Adobe\Acrobat 
                        Reader\20.005.30774\PSADT\Deploy-Application.ps1: Zeile 1214
                        bei <ScriptBlock>, <Keine Datei>: Zeile 1

PositionMessage : In C:\EmpirumAgent\Packages\Adobe\Acrobat 
                  Reader\20.005.30774\PSADT\AppDeployToolkit\AppDeployToolkitMain.ps1:14960 Zeichen:71
                  + ... Get-RegistryKey -Key $HKCUActiveSetupKey -SID $RunAsActiveUser.SID) {
                  +                                                   ~~~~~~~~~~~~~~~~~~~~



Error Inner Exception(s):
-------------------------

Message        : Das Argument ist NULL oder leer. Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen 
                 Sie den Befehl erneut aus.
InnerException : 



]LOG]!><time="01:31:58.480120" date="06-14-2025" component="Invoke-HKCURegistrySettingsForAllUsers" context="NT-AUTORITÄT\SYSTEM" type="3" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Unload the User [CLIENT\Administrator] registry hive in path [HKEY_USERS\S-1-5-21-2200000065-3000000053-240000072-500].]LOG]!><time="01:31:58.488120" date="06-14-2025" component="Invoke-HKCURegistrySettingsForAllUsers" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Destination assumed to be a folder which does not exist, creating destination folder [C:\ProgramData\neo42Pkgs\Adobe\Acrobat Reader\20.005.30774\User\SupportFiles].]LOG]!><time="01:31:58.591120" date="06-14-2025" component="Copy-File" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Copying file(s) recursively in path [C:\EmpirumAgent\Packages\Adobe\Acrobat Reader\20.005.30774\PSADT\SupportFiles\User\*] to destination [C:\ProgramData\neo42Pkgs\Adobe\Acrobat Reader\20.005.30774\User\SupportFiles].]LOG]!><time="01:31:58.600120" date="06-14-2025" component="Copy-File" context="NT-AUTORITÄT\SYSTEM" type="1" thread="15580" file="Deploy-Application.ps1">
<![LOG[[Package-Completion] :: Fi

Es werden nur die folgenden zwei Log-Dateien erstellt:

Interessanterweise lässt sich das Problem manchmal durch einen Neustart beheben, in anderen Fällen bleibt der Fehler konstant bestehen.

Hat jemand ähnliche Erfahrungen gemacht oder eine Idee, woran es liegen könnte?

Viele Grüße