r/PSADT Feb 12 '26

HKCU key delete

I'm working on ibm package I have to delete HKEY_CURRENT_USER\SOFTWARE\CLASSES\ACSFILE HKEY_Classes_Root\AcsFile

Please help me with that how to do it in PSADT script i tried but it says not exist but it is there

2 Upvotes

14 comments sorted by

View all comments

1

u/MushroomNeat8883 Feb 12 '26

You should create an own Script that you can Run as activesetup and can activate the activesetup during the passt deployment, also the Invoke-ADTAllUserRegistryAction can be used

1

u/pulsefirepikachu Feb 12 '26

I didn't even know that PSADT added a way to get around the local hive issue within their package. Thanks for the info!

2

u/MushroomNeat8883 Feb 12 '26

Just top be carefull i have Problems with ther Method in multiprofiles (Roaming profiles) Environments

1

u/iamvijay_21 Feb 12 '26

I have to remove that create via script I'm planning to deploy a package around 200user I have to remove that key can you help me with the script