
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2015 06:01 AM - edited 03-01-2019 09:16 AM
My first post. I am new to Tidal but I have had experience with other schedulers.
I have a PowerShell script that needs to be executed on a remote computer. All of the software that the script needs is installed on that computer.
Additionally, I need the script to run under a service account. Is this possible and if so, how do I go about it?
This job will be manually kicked off each time it is needed.
Solved! Go to Solution.
- Labels:
-
Cisco Workload Automation
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 12:58 PM
Sure. There are a few screen shots. One of a variable I used for the folder location on the Tidal server (not necessary but I use a lot of scripts). One for the Tidal command itself. The last is the script to remotely run the windows job. Let me know if these don't make sense.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2015 01:26 PM
Hi Brian, Please see if this post helps you
https://supportforums.cisco.com/document/12406511/calling-powershell-scripts-tidal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2015 04:12 AM
Thank you, Dinesh, but that does not run the script on the remote computer.
Does it allow me to do something like \\applicationServer.InternalNetwork.net\powershell.exe on the command text box?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 10:50 AM
Hi Bryanshaw46,
On the remote server you would have to login into PowerShell as Administrator, and Enable-PSRemoting -Force. The below article below explains more
http://www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/
BR,
Derrick Au

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 12:47 PM
How may I supposed to do that using Tidal Scheduler?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2015 01:49 AM
You are kinda trying to bypass the licensing design by not having an agent on the remote server.
Having said that have you looked at something like rexec for windows?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015 05:16 AM
Hi Bryan
You could look at using PSSession and Invoke-Command within your powershell script as per this article: https://technet.microsoft.com/en-us/library/dd819505.aspx
- Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015 05:22 AM
Maybe I am not stating my question clearly enough. I need a Tidal Scheduler job that will execute a PowerShell script on a remote computer. How do I do that?
My Tidal Scheduler runs on one server. The script and all of the software needed to run it are on another server.
Paul, thank you for taking the time to answer, but I honestly do not see how your answer is going to help me. I am new to Tidal.
Maybe I am overlooking something...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015 04:08 PM
I am assuming you have a windows agent running on the other server where PS script is. Once the agent is installed on the other server then make the job to run on that agent.
Then you could run it as c:\powershell.path\powershell.exe instead of \\applicationServer.InternalNetwork.net\powershell.exe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 04:16 AM
No, we do not have a windows agent installed on the remote server. Is that necessary?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 07:16 AM
Yes. PowerShell security controls probably wont let you to invoke script from external server.
Can you try with the agent installed on the second server ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 12:47 PM
This would be a last resort because of licensing. I would try to install all of the required software on the existing agent machine that my powershell script requires first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 10:58 AM
Use UNC path \\server\path\file.bat only issue it will exit after exe bat file and you will not get a bad return code if fails and no output. Not the best way but will work as log as account running agent has exec rights to bat file. I would bite the bullet and put agent on box. Unless this is the only job you will run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 12:46 PM
Hmmm, I was hoping that Tidal was a modern scheduler and would run a remote script. This would be a last resort because of licensing. I would try to install all of the required software on the existing agent machine that my powershell script requires first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 12:39 PM
I would set up a windows scheduled job on your remote server that runs the powershell script. Then create bat script on your Tidal server that kicks off that remote windows scheduled job, which you can then add as a job in Tidal. I have this set up for a job of mine just running a remote bat script and not a powershell script.
