Only returns "OK"

Post Reply
AlexU
Posts: 2
Joined: Thu Jul 04, 2019 7:04 am
4

Only returns "OK"

Post 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

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Only returns "OK"

Post 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.

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Only returns "OK"

Post 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 15547 times
Can you reproduce this on the agent in question?

AlexU
Posts: 2
Joined: Thu Jul 04, 2019 7:04 am
4

Re: Only returns "OK"

Post 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

Post Reply

Return to “PowerShell plugin for Labtech”