I am running PSVersion 5.1.14393.206. Is there something that I must configure or call before Get-VpnConnection
?
PS C:\Users\pwatson> Get-VpnConnection -AllUserConnection
Get-VpnConnection : Invalid class
At line:1 char:1
+ Get-VpnConnection -AllUserConnection
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (PS_VpnConnection:root/Microsoft/...S_VpnConnection) [Get-VpnConnection], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041010,Get-VpnConnection
Same result in 64-bit and 32-bit shell.
if you doesn't have VPN connection use you will get error but if u have use this :
Get-VpnConnection
your output will your VPN information . you don't need any thing for this service .
User contributions licensed under CC BY-SA 3.0