Unable to Import reg file

Hello Team,

I am currently using psadt 4.1.8 and have a task to import registry for all users.The registry that i am looking to export is very large binary value roughly 622 lines.I have reg file exported and was using the below command line.

Invoke-ADTAllUsersRegistryAction -UserProfiles (Get-ADTUserProfiles -ExcludeDefaultUser) -ScriptBlock {
# Path to your registry file in the Files directory
$regFile = "$($adtSession.DirFiles)\123.reg"

# Import the registry file silently for each user profile
Start-ADTProcess -FilePath 'reg.exe' -ArgumentList "import `"$regFile`"" 

}

Below is just partial registry i am looking to be imported for all users, actual has more lines "CellStyles"=hex:ff,ff,17,00,0a,00,5f,41,70,70,53,74,79,6c,65,73,03,00,ff,ff,
02,00,09,00,43,48,79,70,53,74,79,6c,65,01,00,e9,e0,00,00,fc,f1,ae,00,00,00,
00,00,05,00,00,00,01,00,00,00,00,00,00,00,f4,ff,ff,ff,00,00,00,00,00,00,00,
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,41,00,72,00,69,00,61,00,
6c,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
00,00,00,00,00,00,ff,fe,ff,00,69,00,6f,00,00,03,80,00,00,69,ef,00,00,a8,a8,
a8,00,00,00,00,00,1a,00,00,00,01,00,00,00,02,00,00,00,f4,ff,ff,ff,00,00,00,\

Importing reg file does not error out but i dont see this key in the path HKEY_CURRENT_USER\Software\Hyperion Solutions\HyperionSmartView\Options.Am i doing something wrong or is there a better way to achieve this.

The Invoke-ADTAllUsersRegistryAction only works with PSADT functions that have a -SID parameter like Set-ADTRegistryKey and Start-ADTProcess is NOT one of them.

Some people use Start-ADTProcessAsUser but that only works when the current user is the one who launches the installation and only works for HIM/HER.

If you want to hit ALL USERS you'll have to look at something I wrote on this topic a few months ago.

So i believe using active setup with stub can help up in importing registry correct in my this case?

I use ActiveSetup for everything user related.

Works on all users. Existing and yet-to-exist

Thank you mate your solution worked like charm.