Hello Experts,
I am using the query "SELECT TotalConnections FROM Win32_PerfFormattedData_RemoteAccess_RASTotal"
in order to get the total number of connections connected to my RRAS(VPN)
Server successfully. Suddenly this query starts returning wrong count of the totalconnections.
In the "Routing and Remote Access MMC" it shows 20 connections but the query
returns 37/ 45 connections. Any idea what could be the issue.
Code :
$Total_User_Query = "SELECT TotalConnections FROM Win32_PerfFormattedData_RemoteAccess_RASTotal";
$Total_User = (Get-WmiObject -Query $Total_User_Query| select TotalConnections).TotalConnections ;
Thank You
Frank