{"id":14980294,"url":"https://github.com/lazywinadmin/lazyts","last_synced_at":"2025-10-28T23:31:29.155Z","repository":{"id":21483837,"uuid":"24802611","full_name":"lazywinadmin/LazyTS","owner":"lazywinadmin","description":"PowerShell Script (GUI) to manage Terminal Sessions","archived":false,"fork":false,"pushed_at":"2020-01-07T03:09:54.000Z","size":1762,"stargazers_count":109,"open_issues_count":11,"forks_count":27,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-02-01T19:39:24.504Z","etag":null,"topics":["cassia","powershell","powershell-script","ps1","remote-machine","terminal-session","winforms"],"latest_commit_sha":null,"homepage":"http://lazywinadmin.com","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lazywinadmin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-04T21:53:01.000Z","updated_at":"2025-01-24T18:06:02.000Z","dependencies_parsed_at":"2022-08-05T12:15:33.765Z","dependency_job_id":null,"html_url":"https://github.com/lazywinadmin/LazyTS","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazywinadmin%2FLazyTS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazywinadmin%2FLazyTS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazywinadmin%2FLazyTS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazywinadmin%2FLazyTS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lazywinadmin","download_url":"https://codeload.github.com/lazywinadmin/LazyTS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238738038,"owners_count":19522299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cassia","powershell","powershell-script","ps1","remote-machine","terminal-session","winforms"],"created_at":"2024-09-24T14:01:34.406Z","updated_at":"2025-10-28T23:31:28.742Z","avatar_url":"https://github.com/lazywinadmin.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"LazyTS\n======\nLazyTS is a PowerShell script to manage Sessions and Processes on local or remote machines. It allows you to Query/Disconnect/Stop session(s), Query/Stop process(es) and Send Interactive message to one or more sessions.\n\nThis tool is using the module PSTerminalService which relies on the Cassia .NET Library.I used Sapien PowerShell Studio 2014 to which make life easier if you want to start building WinForms tools and add PowerShell code.\n\n![alt text](http://2.bp.blogspot.com/-nx_UZoTQ3a8/VC4cumIZM3I/AAAAAAABoeM/xF4Z9M-dNgc/s1600/LazyTS.png \"LazyTS\")\n\n## Requirements\n\n* PowerShell 3.0\n* Cassia Library (included in the download)\n\nLazyTS is relying on the Cassia .NET Library (A DLL file). This file need to be present in the same directory as the script (Either when you use the PS1 or EXE file)\n\nOf course you also need the appropriate permission on the remote machine to be able to manage it.\nIf the Cassia.dll is not present, the script won't start:\n\n![Alt text](media/Cassia.dll_required.png?raw=true \"Cassia\")\n\n## Installation\n\n* Download the last version: https://github.com/lazywinadmin/LazyTS/releases\n* Unblock the zip file\n* Extract all the files\n* Launch LazyTS.ps1\n\n\n## Usage\n\n* Launch a PowerShell console with the account that will perform the action\n* Execute the powershell script LazyTS.ps1\n\n![Alt text](media/LazyTS.png \"LazyTS\")\n\n\n## Main features\n\n### Querying session on local or remote machines\n\nAfter entering the ComputerName, click on the button Sessions\n\n![Alt text](media/LazyTS_Query_sessions.png?raw=true \"Querying session on local or remote machines\")\n\n\n### Disconnecting Session(s)\n\nSelect one session or multiple sessions and right click, click on Disconnect Session\nThis will only disconnect the user, its session State will become \"disconnected\", but will remain opened on the host.\n\n![Alt text](media/LazyTS_Disconnecting_sessions.png?raw=true \"Disconnecting Session(s)\")\n\nWhen getting disconnected, the user will get the following window\n\n![Alt text](media/LazyTS_DisconnectedUser_message.png?raw=true \"Your Remote Desktop Services session had ended\")\n\u003ci\u003eYour Remote Desktop Services session had ended.\nYour network administrator might have ended the connection. Try connection again, or contact technical support for assistance\u003c/i\u003e\n\n### Stopping a Session(s)\n\nSelect one session or multiple sessions and right click, click on Stop Session\nThis will close the session of the user without warning. Any current work in progress will be lost.\n\n![Alt text](media/LazyTS_Closing_sessions.png?raw=true \"Stopping a Session(s)\")\n\nHere is the confirmation window after you select \"Stop Session\"\n![Alt text](media/LazyTS_Closing_sessions_Confirmation.png?raw=true \"confirmation window for Stopping a Session\")\n\n### Querying Processes\n\nAfter entering the ComputerName, click on the button Process.\nThis will list all the running processes (for all sessions)\n![Alt text](media/LazyTS_Query_processes.png?raw=true \"Querying Processes\")\n\n### Stopping Process(es)\n\nSelect one process or multiple processes and right click, click on Stop Process\nThis will Stop the process(es) selected.\n\n![Alt text](media/LazyTS-Stopping_Processes.png?raw=true \"Stopping Process(es)\")\n\n![Alt text](media/LazyTS-Stopping_Processes_Confirmation.png?raw=true \"Stopping Process(es)/Confirmation\")\n\n### Sending Message(s)\n\nAfter entering the ComputerName, click on the button Message.\nNote that you must select one session or one process in order to use this option (the script need to know which session(s) it should send the message to.\n\nThis will Send a message to the selected session. If multiple sessions are selected only one message will be sent to each session.\n\n![Alt text](media/LazyTS-Sending_Message.png?raw=true \"Sending Message(s)\")\n\n\nConfirmation windows:\n\n![Alt text](media/LazyTS-Sending_Message-Confirmation.png?raw=true \"Sending Message(s)/confirmation\")\n\nDefault message: \"IMPORTANT: The Server is going down for maintenance in 10 minutes. Please save your work and logoff.\"\n\nMessage to send\n\n![Alt text](media/LazyTS-Sending_Message-Custom.png?raw=true \"Sending Message(s)/Message to send\")\n\n\n#### Example of message received by each session selected\n\n![Alt text](media/User_message.png?raw=true \"Example\")\n\n### Remote Desktop: Shadow (since v1.1)\n\nWhen right clicking on a row you'll have the possibility to open a Shadow RDP on a selected Session ID. After you request to View or Control the session, the user will get this message\n\n![Alt text](media/LazyTS-Shadow_Control.png?raw=true \"Remote Desktop: Shadow\")\n\u003ci\u003e\"\u003cDomain\u003e\\\u003csamaccountname\u003e is requesting to control your session remotely. Do you accept the request\"\nMessage showed to the user when trying to control his session id.\u003c/i\u003e\n\nIf the user deny the request, you'll get the following message\n\n![Alt text](media/LazyTS-Shadow_Deny.png?raw=true \"Deny\")\n\"The operator or administrator has refused the request\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazywinadmin%2Flazyts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flazywinadmin%2Flazyts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazywinadmin%2Flazyts/lists"}