Stop a remote console service

  • Hello Everyone,

    Hope all is well.

    I have a question on shutting down the applications running on a remote servers.

    By applications I meant they are services running from a console on remote servers and all I want to is to stop the service. Currently I am logging in to the server and hitting an enter key to stop this service running from console but the problem is I have almost like 30 servers and I had to logon to each inividual server and hit enter, so I want to do this through psexec. On the remaining servers I have VB 6 and VB 8 applications running which I want to stop as well(I dont want to kill anything but stop). I was thinking if there are any commands in powershell that I can use and have psexec invoke them on remote servers.

    Did anyone come up with such a scenario. I need your valuable inputs.

    Thanks a bunch in advance.

    “If your actions inspire others to dream more, learn more, do more and become more, you are a leader.” -- John Quincy Adams

  • It sounds as though they are console applications as opposed to Windows Services. If so, I assume that they are waiting for a keypress from the console that launched them. If that is the case then there is no way I know of remotely doing the equivalent of a "SendKey".

    If they were Windows Services then you can easily manage these remotely.

    Gaz

    -- Stop your grinnin' and drop your linen...they're everywhere!!!

  • Yes... You are right... its waiting on a key to stop the console...is there anything that can be done to stop the console at the registry level while the console is running.

    “If your actions inspire others to dream more, learn more, do more and become more, you are a leader.” -- John Quincy Adams

  • The only way I know is to kill the process and I would NEVER recommend doing that as a standard procedure.

    Sorry that I can't be more helpful.

    Gaz

    -- Stop your grinnin' and drop your linen...they're everywhere!!!

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply