Cannot Remove "AllUserConnection" Profile

  • Thread starter Thread starter Mike Stone (mikes)
  • Start date Start date
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...
 

Similar threads

P
Replies
0
Views
7
Pedro Cruz1
P
P
Replies
0
Views
6
Pedro Cruz1
P
V
Replies
0
Views
3
Vikas Kumar4
V
G
Replies
0
Views
3
Guillaume Auger1
G
V
Replies
0
Views
5
Vikas Kumar4
V
Back
Top