Solved

Run VBS scripts remotely using Schtasks command.

Posted on 2007-04-02
5
676 Views
Last Modified: 2010-05-18
I would like to run a vbs script remotely on my many work stations in my domain using the schtasks command.  I can get it to run but it will not run interactively like the AT used to.  I need to notify my users that they need a critical update.  Send a console message has been turned off so I would like to run a "Notify" script.  Windows XP. I also tried a bat file to start the script on the remote machine, but again it will not work  interactivley it just runs in the background.  Using  cscript.exe //I switch  in the bat file does not work.  Both the script and the bat files work correctly if I am sitting at the machine.  I  just can't get it to work remotely.
0
Comment
Question by:mossyback
  • 2
5 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 18837565
Let's see...what have you tried?
What's in your script currently?  Is it just a msgbox of sorts?
What if you pass it through cmd?
Schedule it as

cmd /c start c:\yourfile.vbs
0
 

Author Comment

by:mossyback
ID: 18837831
Thanks, Sirbounty.  I found out what my problem is.  I was running the task as the SYSTEM account which does not have interactive permissions.  So I will us the AT command instead.
0
 
LVL 67

Accepted Solution

by:
sirbounty earned 250 total points
ID: 18837845
Sure - but AT will default to this.  AT can only use SYSTEM account.
If you want to specify one - use schtasks and refer to a specific account in the RunAs box
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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