M
Mike Stone (mikes)
Guest
From what I understand, you need to only add "AllUserConnection" VPN Profiles while operating as "nt authority\system".
No doing so seems to put the profile in la-la-land.
As an elevated user you can get the cim-instance with:
$session = New-CimSession
$className = "MDM_VPNv2_01"
$namespaceName = "root\cimv2\mdm\dmmap"
$obj = Get-CimInstance -CimSession $session -ClassName $className -Namespace $namespaceName
This $obj is of type "Microsoft.Management.Infrastructure.CimInstance" so one might think you could remove it with:
Remove-CimInstance -CimInstance $obj
However, all you get is:
Remove-CimInstance : The requested object could not be found.
Trying to use "Get-VPNConnection -AllUserConnection" as either an elevated user or "NT Authority\SYSTEM" comes back with nothing.
Continue reading...
No doing so seems to put the profile in la-la-land.
As an elevated user you can get the cim-instance with:
$session = New-CimSession
$className = "MDM_VPNv2_01"
$namespaceName = "root\cimv2\mdm\dmmap"
$obj = Get-CimInstance -CimSession $session -ClassName $className -Namespace $namespaceName
This $obj is of type "Microsoft.Management.Infrastructure.CimInstance" so one might think you could remove it with:
Remove-CimInstance -CimInstance $obj
However, all you get is:
Remove-CimInstance : The requested object could not be found.
Trying to use "Get-VPNConnection -AllUserConnection" as either an elevated user or "NT Authority\SYSTEM" comes back with nothing.
Continue reading...