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
Solved

VBS Scripts fail to run

Posted on 2010-09-01
6
456 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
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
An article on effective troubleshooting
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

839 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