Solved

VBS Scripts fail to run

Posted on 2010-09-01
6
450 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
Why do Marketing keep bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

 
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

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Join & Write a Comment

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

758 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

23 Experts available now in Live!

Get 1:1 Help Now