It would be good to combine somehow in the case of checking if the computer is available.
Main Topics
Browse All TopicsI've quite a basic understanding of VBS and I have 2 scripts that 'should' perform the same basic function. I note that there are differences in the scripting and some of these simply involve the name of the dialogue boxes.
I'd like to know which of these is the better script to use, or what the difference in functionality is between the two, like a comparison.
I'd also like to add the functionality for the admin running it, to see an input box of some sort that lists the various functions that the script COULD do in its message body. Such as ...
"Press 1 to log off the user, press 2 to Force user logoff, press 3 to reboot ..." etc.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: ou_doberPosted on 2009-07-16 at 08:01:59ID: 24869818
The key differences between these two scripts are as follows:
- Script 1 is asking for the computer name and than asking again for the user/admin to confirm logging the user off of the computer.
- Script 1 also has it to where if the user/admin leaves to computer field blank, the script ends automatically.
- Script 2 is also asking for the computer name and specifically checks if the computer is available via ping before proceeding with the log off off the user from the remote computer.
I will try to boiler plate with a if/else nest and input box when I get back from this meeting. That should not be difficult to do.ou_dober