How to Insert PIng in BGinfo ?

Yeaktom
Yeaktom used Ask the Experts™
on
We have Users who connect to our site via VPN.Some users have poor internet connection and usually end up mailing us that the VPN is offline even if its not.
So i would like to know is there a way to insert ping in BGinfo? That way the user can see the average ping so they know its not the VPN but the internet connection.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

Commented:
What you're asking is incredibly difficult.

You'd have to write some App code to run at the User's end to handle every past/current/future OS + OS version.

Then you'd have to come up with the installation mechanism.

Anything's possible + what you're describing will likely require an army of coders + support staff to maintain, so very expensive.

If this is acceptable, then hire someone how understands how to do all this (these people are also rare + expensive).
IT / Software Engineering Consultant
Top Expert 2016
Commented:
You can't do what you want with bginfo without a little extra work.  bginfo doesn't constantly update the display on the desktop, it gathers the information one time and places it there until it is run again.

That being said, you could add a task in Task Scheduler to run every so often and execute bginfo to refresh the screen content, so that would work around the first problem.

As far as getting the results of a PING on the screen you should be able to add a "custom field" to bginfo and then use either WMI or VBS to do the actual ping and report back the status.  If you are interested in that approach let me know I'll dig up or create an example.


»bp
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
I would use DesktopInfo instead of BGInfo (you can make it look much better customizing the theme)
https://www.glenn.delahoy.com/desktopinfo/
2018-10-29-1-1-.png
Bill PrewIT / Software Engineering Consultant
Top Expert 2016

Commented:
Okay, a WMI query is probably the simplest approach.  Here is the step by step walkthrough of how to add that in BGINFO.  Do this on a local machine and then it will generate a BGI file that you can deploy.  Run BGINFO and click the timer when it first starts so you have time to add the PING info.  Follow along with the screens below to add the new field.  I used a host of "google.com" make sure you change that you your VPN name or IP.

Once you have this set up you will need to deploy BGINFO and the config file as needed, and also deploy a Task Manager task to run BGINFO on each machine with the /TIMER:0 option.  I'm not a GPO jock so you will have to figure out the deployment specifics.  There are plenty of GPO experts here though, so you can always post another question for those details.  I would try and get this all set up and working on a single local machine, including creating the Task Scheduler task as a first step, and then work deployment once you are satisfied with those results.

Click on "custom field"sshot-634.pngClick on "New"sshot-635.pngEnter the text to appear on the desktop next to this variable and select WMI Query.  Click Browse and select Win32_PingStatus from the list.sshot-637.pngAdd the WHERE clause with your Address and click Evaluate to make sure it works, it should return the results below.sshot-638.pngYou should now have a new custom variable field defined.sshot-639.pngSelect the new custom field from the list and add it to the display.sshot-640.pngYou should now see it listed on the desktop displayed items on the left.sshot-641.png

»bp

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial