Executing a Powershell Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2022 08:06 AM
I am trying to follow this youtube video here:
https://www.youtube.com/watch?v=is8vSW4aFQk&t=97s&ab_channel=AkhilVangala
Not quite getting how to get a powershell script to run? I created this per the video instruction (below):
But... I do not receive any input and nothing was processed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2022 08:21 AM
@ceiverso In video he is passing the PowerShell script in setCommand function(see image below)
The third parameter is command which is nothing but a PowerShell script. The command is passed to output ecc queue in payload (see below image)
You just need to copy the code as is and pass your PowerShell script in 3rd parameter of setCommand function.
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023