Public/Invoke-QWinSta.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<#
.DESCRIPTION Wrapper function for qwinsta to get rdp sessions .Parameter Server specify the target server to run qwinsta against .EXAMPLE Invoke-QWinSta -Server name.domain.tld Find remote sessions .Link https://github.com/TheTaylorLee/AdminToolbox #> function Invoke-QWinSta { [CmdletBinding()] [Alias('qwin')] Param ( [Parameter(Mandatory = $true)]$Server ) qwinsta.exe /server:$Server } |