does anyone know if there exists information on the possible Status
en Substatus
connection states in Microsoft Direct Access? The information on MSFT_DAConnectionStatus class (Windows) | msdn.microsoft.com states that both properties are uint32's but that's not really helpful.
I know by experience that status code 2
means ConnectedRemotely
…
Thanks, David
Best Answer
I am late to the party, but I ran into the same issue today. I quickly determined that Get-DAConnectionInfo automatically generates some runtime types based on the output of the WMI class, they are:
"Microsoft.PowerShell.Cmdletization.GeneratedTypes.DAConnectionStatus.Status" and "Microsoft.PowerShell.Cmdletization.GeneratedTypes.DAConnectionStatus.Substatus"
Meaning, you can query them directly in Powershell, I use the script provided here. For sake of convenience I've included the list below:
Status Enum:
SubStatus Enum: