Forum Discussion
WillCun
Mar 11, 2021Copper Contributor
disconnect-vpnuser error. (Powershell, RRAS)
Hello, I'm trying to disconnect a user from a RRAS VPN Server with the below PowerShell command: disconnect-vpnuser -username domain\username However, I get the below error when the comma...
farismalaeb
Mar 12, 2021Steel Contributor
Which Windows version are you using.
Type the following commands after you get the failure.
$error.CategoryInfo
$error.Exception
If you used the GUI, are able to disconnect the user
Also when you can the error from Windows PowerShell, did you check Windows Event Log \ PowerShell
Type the following commands after you get the failure.
$error.CategoryInfo
$error.Exception
If you used the GUI, are able to disconnect the user
Also when you can the error from Windows PowerShell, did you check Windows Event Log \ PowerShell
WillCun
Mar 12, 2021Copper Contributor
Thanks for the reply. When I run the commands you suggested here is what I get:
$error.categoryinfo
Category : NotSpecified
Activity : Disconnect-VpnUser
Reason : CimException
TargetName : thrws
TargetType : root/Microsoft/Windows/RemoteAccess/PS_VpnUser
$error.exception
User thrws cannot be disconnected.
I'm using Windows Server 2012R2 and yes I can disconnect them from the RRAS Console. There are no errors in the Event Viewer for Powershell. Any help would be greatly appreciated.