Jump to content

Recommended Posts

Posted

I want to run a script using invoke command against a list of servers. However, every now and then we get reports that running PS causes high CPU usage and causes the server to be unresponsive. Someone then needs to kill the task in order to get the server back which obviously can causes outages. So my thinking is that I would put a timeout on my script and so if there is any problems from the script, it would kill the PS session and prevent problems.

 

Whole idea is to run a script against a group of Servers in a loop so I don't want to stopping on 1 server that has a problem or causing an outage. So if I can put a timeout in the Invoke command, would this kill the PS on the client server and continue on?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...