This article guides you through the process of removing the ADSelfService_Enroll.hta logon script from all users in your AD environment. This is necessary when the script was inadvertently applied to all users instead of a specific OU or group via ADSelfService Plus policy configuration.
Administrator access to the primary domain controller and the ADSelfService Plus console.
PowerShell should be installed on the domain controller.
Active Directory module for PowerShell should be installed.
Step 1: Modify the ADSelfService Plus policy configuration
Log in to the ADSelfService Plus administrative console.
Navigate to Configuration > Self-Service > Policy Configuration.
Locate and edit the policy that applied the logon script.
Modify the policy to select only the intended OUs or groups.
Save the changes.
Step 2: Remove the logon script via PowerShell
Open PowerShell as an administrator on your domain controller.
Import the Active Directory module using the command import-module activedirectory
Execute the following command to remove the ADSelfService_Enroll.hta script from all user accounts
This command finds all users with the specified script path and clears the script path attribute.