Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Task Scheduler - command <schtasks /query /fo csv /nh> does not wo

Reply
Thread Tools Display Modes

Task Scheduler - command <schtasks /query /fo csv /nh> does not wo

 
 
Herman VL
Guest
Posts: n/a

 
      11-10-2007
Does anyone experience the following problem that I have with the
schtasks.exe command:

(1) Start Command Prompt
(2) Type a schtasks command line to do a query of scheduled tasks; format =
comma-separated-values (csv), option = no headers (nh).
Syntax of the command line : schtasks /query /fo csv /nh

(3) Result : I receive following error-message:
ERROR: /NH switch cannot be used with the LIST format

(4) Comment 1: I asked for a CSV output, not a LIST output!

(5) Comment 2: According to schtasks.exe documentation (see link
hhtp://msdn2.microsoft.com/en-us/library/bb736357.aspx) the /NH parameter of
the schtasks.exe command should work with the /FO CSV output format
("Parameter /NH ... This is valid only for TABLE and CSV formats.").

(6) Additional information about VISTA I am using:
(6.1) Vista Home Premium
(6.2) the schtasks.exe module (in C:\windows\system32) has revision
6.0.6000.16386

Thanks for suggestions.
 
Reply With Quote
 
 
 
 
Dwarf
Guest
Posts: n/a

 
      11-10-2007
Hi Herman,

I have tried to do what you have tried, both at a standard CMD prompt and at
an elevated CMD prompt. I got the same result as you both times. However, the
command worked when you used the /FO TABLE format instead of the /FO CSV
format. This is either a bug in Vista, or they have got the command help file
wrong.
Dwarf

"Herman VL" wrote:

> Does anyone experience the following problem that I have with the
> schtasks.exe command:
>
> (1) Start Command Prompt
> (2) Type a schtasks command line to do a query of scheduled tasks; format =
> comma-separated-values (csv), option = no headers (nh).
> Syntax of the command line : schtasks /query /fo csv /nh
>
> (3) Result : I receive following error-message:
> ERROR: /NH switch cannot be used with the LIST format
>
> (4) Comment 1: I asked for a CSV output, not a LIST output!
>
> (5) Comment 2: According to schtasks.exe documentation (see link
> hhtp://msdn2.microsoft.com/en-us/library/bb736357.aspx) the /NH parameter of
> the schtasks.exe command should work with the /FO CSV output format
> ("Parameter /NH ... This is valid only for TABLE and CSV formats.").
>
> (6) Additional information about VISTA I am using:
> (6.1) Vista Home Premium
> (6.2) the schtasks.exe module (in C:\windows\system32) has revision
> 6.0.6000.16386
>
> Thanks for suggestions.

 
Reply With Quote
 
Herman VL
Guest
Posts: n/a

 
      11-13-2007
I have the strong feeling it is a bug:
(1) according to Microsoft documentation the command <schtasks /query /fo
csv /nh> should work.
(2) I have used this command before on a Windows XP PC
Then : HOW SUBMIT A BUG REPORT TO MICROSOFT ?


"Dwarf" wrote:

> Hi Herman,
>
> I have tried to do what you have tried, both at a standard CMD prompt and at
> an elevated CMD prompt. I got the same result as you both times. However, the
> command worked when you used the /FO TABLE format instead of the /FO CSV
> format. This is either a bug in Vista, or they have got the command help file
> wrong.
> Dwarf
>
> "Herman VL" wrote:
>
> > Does anyone experience the following problem that I have with the
> > schtasks.exe command:
> >
> > (1) Start Command Prompt
> > (2) Type a schtasks command line to do a query of scheduled tasks; format =
> > comma-separated-values (csv), option = no headers (nh).
> > Syntax of the command line : schtasks /query /fo csv /nh
> >
> > (3) Result : I receive following error-message:
> > ERROR: /NH switch cannot be used with the LIST format
> >
> > (4) Comment 1: I asked for a CSV output, not a LIST output!
> >
> > (5) Comment 2: According to schtasks.exe documentation (see link
> > hhtp://msdn2.microsoft.com/en-us/library/bb736357.aspx) the /NH parameter of
> > the schtasks.exe command should work with the /FO CSV output format
> > ("Parameter /NH ... This is valid only for TABLE and CSV formats.").
> >
> > (6) Additional information about VISTA I am using:
> > (6.1) Vista Home Premium
> > (6.2) the schtasks.exe module (in C:\windows\system32) has revision
> > 6.0.6000.16386
> >
> > Thanks for suggestions.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Launch command window from task scheduler Markus Windows Vista General Discussion 1 05-10-2008 05:07 PM
Unable to use Schtasks command to schedule task for users group Umer Y Windows Vista General Discussion 0 09-27-2007 03:31 PM
Task Scheduler query Delboy Windows Vista General Discussion 4 06-05-2007 10:06 PM
Task Scheduler Command Line XML senrabdet Windows Vista General Discussion 2 09-05-2006 02:19 PM
Task Scheduler Command Line & Files senrabdet Windows Vista Performance 0 08-14-2006 02:15 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59