Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

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 Patron

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 Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti