Solved

VBS Scripts fail to run

Posted on 2010-09-01
6
455 Views
Last Modified: 2012-05-10
I have standard logon vbs scripts that have run for several years and still works correctly on all but two laptops.  The scripts had worked on these laptops until recently.  Now at login the scripts are left shown in a notepad window and do not execute.  The only thing I know that has changed are some MS updates.  The same user can logon onto other systems and the same script runs correctly there.  Any ideas what's happened?
0
Comment
Question by:tss-nm
6 Comments
 

Author Comment

by:tss-nm
ID: 33579975
Update... The OS is XP Pro/SP3 fully updated.
0
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 33580275
How are these logon script pushed to the machine? Are you using GPO or startup folder or Run Once? If you run the .VBS file does the script work?
0
 

Author Comment

by:tss-nm
ID: 33581074
They are referenced in the user's profile within AD.  As stated they run on most all systems, same user name.  The scripts in SYSVOL on the AD.

In file associations vbs open with Notepad-  the problem.  As local admin I've changed the association to WScript.exe.  That fixes the issue for admin but not for other users.  Other users without admin privlages can not change the file association data.  How to make this change for all users?
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 1

Expert Comment

by:ldap389
ID: 33582203
What are the registry values of
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.vbs
HKEY_CURRENT_USER\Software\Classes\.vbs

On a computer the vbs opens with notepad, and and another where .vbs run with wscript.exe correctly?

If you have group policy preferences (Windows 2008 DC, and Group Policy Preference client side extension on you clients) you can push the right registry values through GPO preferences.

If no group policy preferences just use reg2adm to deploy the registry right settings
Download reg2adm at
http://yizhar.mvps.org/                 
tutorial:
http://www.virtualizationadmin.com/articles-tutorials/terminal-services/general/group-policy-support-custom-applications-environment.html
0
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 500 total points
ID: 33584688
Try to login as domain admin and change the file association there. Should work for users without admin rights
0
 
LVL 1

Expert Comment

by:crezaee
ID: 33619601
Logon as a domain admin and do the following (IT'S VERY EASY!!)  It worked for me.

browse to C:\Windows\Inf

right-click on wsh.inf and choose "install"

After it's done...logoff and logon and see if the .vbs scripts run fine.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now