Get The Scoop On What's New
Want to know what Plugins4Automate is doing for ConnectWise Automate? Come check out our blog and find out about new products and updates that we are working on! https://www.plugins4labtech.com/blogs/blog

Only returns "OK"

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

Only returns "OK"

Post by AlexU » Tue Jul 09, 2019 2:03 am

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: 1286
Joined: Tue Dec 29, 2015 7:57 pm
Contact:

Re: Only returns "OK"

Post by Cubert » Tue Jul 09, 2019 1:06 pm

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: 1286
Joined: Tue Dec 29, 2015 7:57 pm
Contact:

Re: Only returns "OK"

Post by Cubert » Tue Jul 09, 2019 1:09 pm

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

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

Re: Only returns "OK"

Post by AlexU » Wed Jul 10, 2019 2:44 am

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

Who is online

Users browsing this forum: No registered users and 3 guests