SyntaxFix
Write A Post
Hire A Developer
Questions
Try the Terminal Services PowerShell Module:
Get-TSSession -ComputerName comp1 -UserName user1 | Stop-TSSession -Force