Hi
Just wondering if the above is possible?
Been looking at tslogoff from www.ctrl-alt-del.com.au and obviously it can log everyone off but does anyone know if you can do it per published app with a switch? Want to log off all users at some point during the night but we have Opera stuff running overnight calcs where we cannot have the users being logged off.
Any help greatly appreciated!
Thanks
I have used a script to clear disconnected sessions from servers before, you might be able to call the application rather than the sessionstate.
I have not had a chance to play to much with it, but will try later in the week or over the weekend.
You may need to build an array list with your servers in it and get the command to cycle through all the servers.
' Logoff Disconnected Sessions' If you want to logoff active sessions as well, change the query to include' cActiveOn Error Resume NextConst cActive = 0Const cDisconnected = 4Const strComputer = "."Set objWMICitrix = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\citrix")Set colItems = objWMICitrix.ExecQuery ("Select * from Metaframe_Session Where sessionstate = " & cDisconnected)For Each objItem in colItemsif (objItem.SessionID > 0) and (objItem.SessionID < 65530) thenobjItem.Logoffend ifNextSet objWMICitrix = Nothing
Cheers Haydn.
I'll look forward to seeing if you can tweak it for a particular app
Hey Haydn,
Did you manage to get anywhere with it?Thanks