Page 1 of 1

Only returns "OK"

Posted: Tue Jul 09, 2019 2:03 am
by AlexU
Hello,

I'm trying to check if a user has a VPN setup as "AllUserConnection" or just for the logged in user.
If I run

Code: Select all

Get-VpnConnection 
or

Code: Select all

Get-VpnConnection -AllUserConnection
all I get returned is just

Code: Select all

...OK
I have noticed that on other scripts as well, they don't return the result, but just "OK".
Is there a way to get the real output?

Kind regards,
Alex

Re: Only returns "OK"

Posted: Tue Jul 09, 2019 1:06 pm
by Cubert
If your getting an OK, then most likely the agent failed the command.

Monitor the commands tab for the agent while the powershell is running, see what the agent is actually returning.

Might be a module that the agents service is not seeing... so the command fails.

Re: Only returns "OK"

Posted: Tue Jul 09, 2019 1:09 pm
by Cubert
Just FYI, When I run it on my server it returns nothing. Of course I have no VPN connections so I would expect nothing..
Capture.PNG
Capture.PNG (7.68 KiB) Viewed 15604 times
Can you reproduce this on the agent in question?

Re: Only returns "OK"

Posted: Wed Jul 10, 2019 2:44 am
by AlexU
Hello Cubert,
thank you for the reply.

I know that the user has a VPN connection setup, I'm just not sure where (system wide or just his account).
I'll get a test machine and will let you know what I find out.

Kind regards,
Alex