How to Insert PIng in BGinfo ?

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.
YeaktomIS/IT ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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).
Bill PrewIT / Software Engineering ConsultantCommented:
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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shaun VermaakTechnical SpecialistCommented:
I would use DesktopInfo instead of BGInfo (you can make it look much better customizing the theme)
Bill PrewIT / Software Engineering ConsultantCommented:
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 "" 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

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Utilities

From novice to tech pro — start learning today.