![]() Within the batch file, this output is redirected to a text file. In this case, Query Session creates a list of all sessions running on the Terminal Server, complete with Session ID numbers. ![]() Query is a multi-purpose command found within the Terminal Server environment. This batch file may be run at any time the Administrator desires to force the logoff of all users that are not logged on to the Terminal Server console. To create a batch file that calls these two Terminal Server specific commands, place the following information into a batch (.bat) file: query session >session.txtįor /f "skip=1 tokens=3," %%i in (session.txt) DO logoff %%i Because of this, extreme caution is advised. This may result in a loss of unsaved data. Performing the following procedure logs off all users currently logged onto the Terminal Server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |