Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Problem running simple VBScript in Vista

Updated: 22 May 2010 | 1 comment
Palmerj's picture
0 0 Votes
Login to vote

Hello everyone,



The client computer is running Windows Vista Ultimate. The domain is AD Server 2003/SP2 Standard Edition.



I have a simple VBScript that displays a message window. I'd like to schedule a Deployment Console job on selected clients. The script is a single line as follows.



MsgBox "System is shutting down in 5 minutes. Please save your work now!",0,"WARNING"



This single line script resides in the server's eXpress share and being run using an administrator account.



When I launch the script manually at the user's computer, it works fine. When I use Deployment Console, it just displays an hour glass and goes into "Executing Script" status, but the user never sees the pop-up message.



I can manually send a message to specific clients by right-clicking on the computer name and selecting "Execute" from the drop-down menu and entering the command MSG * "System is shutting down in 5 minutes. Please save your work now!"



However, I would like to set it on a schedule when necessary.



Any help greatly appreciated.

Comments

MurrayW's picture
21
Jan
2009
0 Votes 0
Login to vote

Vista has a couple of tricks to deal with, but I think your issue is that the user session is isolated under Vista and nothing can attach to session 0. That is the reason why "remote control" took so long to get working on Vista, and still only works when a user is actually logged on.



What you are experiencing is the script launching, but under the specified user's (admin user's) account and not the logged-on user's account. Task manager will likely show that cscript or wscript is running (if displaying using the "all users" option), but you will not actually see it unless the user your running the script as is the user that is logged on.



There are a few unattractive ways to make this work... like a dual script setup, scheduled tasks, etc etc. Unfortunately it's just how it works now Good luck.

Quote: "I know not what other much is else. But what other else is there?" - ***** (OP hidden as that was too awful! Lol)