Power shell integration with Service now to automate VMwares

sandrine gebs
Kilo Contributor

I'm helping to modernize our infrastructure, and one of the big time-savers is server build automation. Our goal is to set up a workflow in ServiceNow in which a business unit requests a server, one of our engineers receives, vets and fills in the details of the request, and then when they hit "Submit", 

 Am pretty new to service now and will really appreciate ideas and suggestion ands the right route to take.

5 REPLIES 5

MrMuhammad
Giga Sage

Hi Sandrine,

If you have integrationhub license then you can use Powershell action to automate the process.

Powershell action docs - https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/referenc...

If you want to use workflow then Powershell activity is available but I think it also requires a license i assume its orchestration license (but I can be wrong on this so please confirm from your sales representative on servicenow side).

PowerShell activity Docs - https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/administer/orchestration-activity-...

Hope that helps!

Please mark this helpful/correct, if applicable.

Regards,

Muhammad

Regards,
Muhammad

MrMuhammad
Giga Sage

Hi,

As you have already written the script and were successful in building the actual server so I'm trying to understand if you are stuck at any point or are you interested in hearing about how others have done a similar implementation?

We have done something similar recently using flow designer as it gives us more flexibility to manage the automation. The overall process was similar to what you have described above. The only thing different in our case was after building the VM we had to deploy servers on that so we needed a looping logic where we should be continuously checking if the VM is spun up and running.

Regards,

Muhammad 

Regards,
Muhammad

Am still in the early stages of the integration , the scripts haven't been written yet .Do i need to install on modules in Powershell but writing the actual script ?

Hi Sandrine,

You can simply run your powershell scripts directly from Servicenow in following ways:

If you have integrationhub license then you can use Powershell action to automate the process.

Powershell action docs - https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/referenc...

If you want to use workflow then Powershell activity is available but I think it also requires a license i assume its orchestration license (but I can be wrong on this so please confirm from your sales representative on servicenow side).

PowerShell activity Docs - https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/administer/orchestration-activity-...

Hope that helps!

Please mark this helpful/correct, if applicable.

Regards,

Muhammad

Regards,
Muhammad