modules
How to install PowerShell modules?
Simply download, unzip and put the module folder in C:\Windows\System32\WindowsPowerShell\v1.0\Modules
How to import PowerShell modules?
Import a specific module:
Import-Module modulename
Import all available modules:
Get-Module -ListAvailable | Import-Module
PSTerminalServices
The PSTerminalServices module contains functions to manage Terminal Services (including RemoteDesktop) sessions and processes. It is based on an open source project named Cassia (version 2.0.0.60), a .NET library for accessing the native Windows Terminal Services API.
Functions:
- Disconnect-TSSession – Disconnects any attached user from the session.
- Get-TSCurrentSession – Provides information about the session in which the current process is running.
- Get-TSServers – Enumerates all terminal servers in a given domain.
- Get-TSProcess – Gets a list of processes running in a specific session or in all sessions.
- Get-TSSession – Lists the sessions on a given terminal server.
- Send-TSMessage – Displays a message box in the specified session ID.
- Stop-TSProcess – Terminates the process running in a specific session or in all sessions.
- Stop-TSSession – Logs the session off, disconnecting any user that might be connected.
Click here to download from blog.feldmann.io!