• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log off windows user using ant script

 
Leo Aug
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to log off windows user using ant script.

If the user is connected through rdp how to force logoff him



 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Find a windows utility app that performs a logoff and call it using the <exec> task. (Logging off Windows requires making a Win32 API call, which is more easily done by a native utility than via Java.)
See if this helps: http://ss64.com/nt/shutdown.html
 
Leo Aug
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you ....

Will try and update it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic