Re: Task scheduler not sending command line arguments



Adam,
<ajrosen@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1143779247.489727.219010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello all,

I'm pretty new to VBS scripting. I have a script I wrote that is being
scheduled as an automated task. The command line for the task is
"c:\program files\...\smartmon.vbs" --server=bds01

When the script runs, it is logging to the event log telling me that it
received no arguments on the command line (the --server=bds01 part
isn't getting to the program). It runs fine from the command line. I
have tried multiple accounts, with no luck on any (admin accounts, my
account, system account).

Why wouldn't the arguments get passed along? I don't see that I am
doing anything wrong here. Any help is greatly appreciated.


I'm surprised that the script executes at all. Add a host to the cmdline.
Set your working directory to the script's home folder.

cscript smartmon.vbs --server=bds01

working directory="c:\program files\..."

good luck,
tlviewer




.



Relevant Pages

  • Re: Rails on a Mac, so strange (to me) behavior
    ... Grant Hollingworth wrote: ... ('script' in this case) ... You only need ./ if you are already in the same directory as a command. ... normally no for user accounts, but for dev accounts (where I'll be ...
    (comp.lang.ruby)
  • Task scheduler not sending command line arguments
    ... scheduled as an automated task. ... The command line for the task is ... When the script runs, it is logging to the event log telling me that it ... have tried multiple accounts, with no luck on any (admin accounts, my ...
    (microsoft.public.scripting.vbscript)
  • Re: password never expires script
    ... >> domain controller you can do all the user accounts at one time by ... >> an example of what command to use and what it shows. ... >>> password age policy on all users. ... >>> script ...
    (microsoft.public.windows.group_policy)
  • Re: passwords Service accounts and services
    ... command from command line... ... Microsoft MVP - Windows Security ... I need to change a bunch 'o service accounts' passwords, ... I need to change I can tell the script to change that service's password, ...
    (microsoft.public.windows.server.security)
  • Re: Problems trying to configure Linux laptop to print to Windows XP shared printer
    ... map to guest = Never ... check password script = ... enumports command = ... ldap delete dn = No ...
    (comp.os.linux.setup)

Quantcast