I have a domain group policy configured to run a script for an application. The script runs in the user configuration > Windows settings > scripts > logon parameter. The GPO is linked to the OU where the users accounts are located, and the security settings for the GPO is assigned to user AD group (not machine).
I have a training environment setup and I need to prevent the script above from executing on the training computers as I need another script to run only on the training machines. However, if a user logs on to one of the training machines and the user is part of the AD group tied to the GPO, as mentioned above, the logon script that I am preventing to run is going to execute, which can caused issues on the training machines. I need to prevent this from happening and at the same time I need the training script to execute instead.