Need help to run Powershell script at Midserver

Admin7267
Kilo Sage

I was trying to add attribute: ExpiryDate, which is date field to the Create AD Object in the Flow Designer and getting error as 'Invalid Type or unsupported attribute found in Object Data'. 

Admin7267_2-1757825972049.png

When I checked with internal AD team, they confirmed it has Date and Time format.

Admin7267_1-1757825646780.png

So, I created one more variable single line text: ExpiryDate Test and added 11:59:59 PM to the date value, in the catalog item and tried to pass same variable to the Create AD Object in the Flow Designer

Admin7267_3-1757826150334.png

Still getting same error as 'Invalid Type or unsupported attribute found in Object Data'. 

 

Submitted HI case for the same and they asked to run Powershell script at Midsever and check it the issue is still happening or not.

 

Found Execute Powershell Script from ServiceNow - ServiceNow Community, but not sure exactly how to run Powershell script at Midserver

2 REPLIES 2

Bhuvan
Kilo Patron

@Admin7267 


Refer below knowledge article to resolve the issue,

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0784931

 

If this helped to answer your query, please mark it helpful & accept the solution. 

 

Thanks,

Bhuvan

J Siva
Tera Sage

Hi @Admin7267 

You should run the PowerShell script on your MID Server host.
With assistance from your Active Directory (AD) admin team, log in to the MID Server host, open PowerShell, and execute the script manually.
Please validate the MID Server script file and try running it by manually passing the required values.

Regards,
Siva