Get-VpnConnection reports `Invalid class`

1

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.

powershell
asked on Stack Overflow Nov 1, 2016 by lit • edited Nov 1, 2016 by lit

1 Answer

-1

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 .

answered on Stack Overflow Nov 1, 2016 by saftargholi

User contributions licensed under CC BY-SA 3.0