View Single Post
Old 11-10-2007   #1 (permalink)
Herman VL


 
 

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

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.
My System SpecsSystem Spec