Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Run VBS scripts remotely using Schtasks command.

Posted on 2007-04-02
5
Medium Priority
?
702 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
[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
  • 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 1000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction During my participation as a VBScript contributor at Experts Exchange, one of the most common questions I come across is this: "I have a script that runs against only one computer. How can I make it run against a list of computers in …
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

730 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