It's never cool to see a deployment fail, when a user is locking a file or process on your server.
This extension will log off all normal users, to prevent the above situation and others that you can think of.
Version 1* contains the following functionality
Connect to a remote host using WinRM
Server(s): Connect to one or several servers. Servernames needs to be comma separated.
Username: The user needs to be a local administrator on the server. Only local admins are allowed to logoff users.
Password: Matching password for the local admin.
Logoff users from a Windows server.
Service accounts will be untouched.
A list of users can be provided to be excluded from the logoff process.
Big thanks to Michel van der Ende (http://trendict.nl) for the initial script.