no result ROOT\Microsoft\Windows\RemoteAccess WMI tree

M

--Marc--

Hi guys,

we try to gather some data for monitoring and analysis from WMI ROOT\Microsoft\Windows\RemoteAccess, but literally every Class return nothing while powershell (like Get-RemoteAccess) returns the properties and

ROOT\Microsoft\Windows\RemoteAccess:RemoteAccess or ROOT\Microsoft\Windows\RemoteAccess:pS_RemoteAccess return nothing, also no error messages or NULLs - just nothing. This is on a Server 2012 R2 or 2019 with DirectAccess or VPN configured.

Any ideas on that?

Sample Script:

$computer = $env:COMPUTERNAME
$namespace = "ROOT\Microsoft\Windows\RemoteAccess"
$classname = "PS_RemoteAccess"

Write-Output "====================================="
Write-Output "COMPUTER : $computer "
Write-Output "CLASS : $classname "
Write-Output "====================================="

Get-WmiObject -Class $classname -ComputerName $computer -Namespace $namespace |
Select-Object * -ExcludeProperty PSComputerName, Scope, Path, Options, ClassPath, Properties, SystemProperties, Qualifiers, Site, Container |
Format-List -Property [a-z]*

Continue reading...
 
Back
Top Bottom