Solved

VBS Scripts fail to run

Posted on 2010-09-01
6
458 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

756 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