Client uses VPN on a Windows 2012 server and would like to know if users are connected before restarting the server.
The easiest way I found is to create a batch file and then run it as Administrator.
Here is the lines used in the batch file:
@echo off
netsh ras show client
pause
Once you create the batch file containing these lines then just right-click on the file and select run as administrator
It will then show the names of the users logged in.
Recent Comments