Sunday, December 7, 2014

Dynamics GP Web Client: Kill all web client sessions

A customer has reported an issue with web client that many sessions are open while no body is working, they wanted to kill all these sessions without restarting the server, few researches over the internet returned the following CMD commands that did the trick, just Right Click the cmd.exe and run as administrator, then paste the following commands:

Taskkill /F /IM Microsoft.Dynamics.GP.Web.Services.Runtime.Process.exe
Taskkill /F /IM conhost.exe

Viola! You saved an hour of manually killing these in your task manager or session manager.

Note: To make sure that the windows cleans all sessions at night, I saved these commands into Batch.bat file and scheduled this with windows scheduler to run every night 4 AM, so users can find a clear log next morning.


Regards,

--
Mohammad R. Daoud MVP - MCT
MCP, MCBMSP, MCTS, MCBMSS
+962 - 79 - 999 65 85
me@mohdaoud.com
http://www.di.jo

3 comments:

  1. Are there any negative impacts to the SQL tables or will it leave any open sessions on the DYNAMICS activity tables?

    ReplyDelete
  2. Hi Mohammad - do you have an updated bat file for GP2016?
    When I run this I receive the following message

    ERROR: The process "Microsoft.Dynamics.GP.Web.Services.Runtime.Process.exe" not
    found.

    ReplyDelete
  3. Any updates on this. Does not work for me with GP 2016 either

    ReplyDelete