Custom Script to clear/delete data Organization attribute for disabled account

Custom Script to clear/delete data Organization attribute for disabled account

Hey Team,

I'm using custom script automation to clear data from these fields: Title, Department, Company and Manager but somehow this is not working. I've attached the script I'm using.

  1. I've already imported the ActiveDirectory Module  on the server. 
  2. Enabled execution policy on my system to unrestricted (Set-ExecutionPolicy Unrestricted

The script is sitting in this location: C:\ManageEngine\ADManager Plus\bin\usermodification.ps1

The custom script option on the ADManager Plus is defined as: 

powershell.exe ./usermodification.ps1 %username%


Can you please help me to resolve the problem here? I'll really appreciate your help. Thank you!

                New to ADSelfService Plus?