Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to clear an AD attribute value using orchestration

saranyavs
Tera Expert

Hi Team,

 

We have to clear few AD attribute values from extensionAttribute5. I am able to update new value, but how to clear the field using orchestration script.

I tried with 'null', but not working.

 

Regards,

Saranya

1 REPLY 1

Tanushree Maiti
Tera Sage

Hi @saranyavs 

 

You have to 

  1. Create a new custom Active Directory activity or modify an existing one in your ServiceNow instance.
  2. Add a Run Powershell Script  to this activity

For Powershell command/script , 

 

Refer this blogs. hope it will help.

 

https://community.spiceworks.com/t/clear-attribute-14-in-ad-with-powershell-updated/829250

 

https://stackoverflow.com/questions/71123539/delete-clear-ad-attribute-value-if-attribute-contains-v...

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: