Automatically uninstall software when changing OUs with WAPT
Published: July 24, 2023 - 2:35 PM
Hello everyone,
I need some information regarding a configuration I want to set up with WAPT.
Here's an example to better explain:
I have two PCs:
"PC_RH" in the OU "OU_RH"
and "PC_ACCUEIL" in the OU "OU_ACCUEIL".
For "OU_RH", I created a unit package that installs 7-Zip and VLC.
For "OU_ACCUEIL", I created a unit package that installs Firefox and VS Code.
Thanks to these unit packages, the software installs automatically on both PCs.
Now, let's imagine I swap the two PCs in the OU: the "Accueil" PC ends up in "OU_RH" and the "RH" PC in "OU_ACCUEIL".
This will then install the remaining software on the PCs, so they will end up with a total of four programs: 7-Zip, VLC, Firefox, and VS Code.
My question is: is there a way to automatically uninstall the software that was required in the old OU?
The "OU=...." package is indeed deleted and replaced by the new one, but the software it contained remains installed.
Thank you in advance for your advice and help.
WAPT version: 2.3
Server OS: Windows Server 2019
Administration machine OS: Windows 10
I need some information regarding a configuration I want to set up with WAPT.
Here's an example to better explain:
I have two PCs:
"PC_RH" in the OU "OU_RH"
and "PC_ACCUEIL" in the OU "OU_ACCUEIL".
For "OU_RH", I created a unit package that installs 7-Zip and VLC.
For "OU_ACCUEIL", I created a unit package that installs Firefox and VS Code.
Thanks to these unit packages, the software installs automatically on both PCs.
Now, let's imagine I swap the two PCs in the OU: the "Accueil" PC ends up in "OU_RH" and the "RH" PC in "OU_ACCUEIL".
This will then install the remaining software on the PCs, so they will end up with a total of four programs: 7-Zip, VLC, Firefox, and VS Code.
My question is: is there a way to automatically uninstall the software that was required in the old OU?
The "OU=...." package is indeed deleted and replaced by the new one, but the software it contained remains installed.
Thank you in advance for your advice and help.
WAPT version: 2.3
Server OS: Windows Server 2019
Administration machine OS: Windows 10