Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Trying to set up a shcedualed task from the cmd line- failed.

24 Jun 2017   #1
Microstuff

Windows 7 x64 Ultimate 7600-16385
 
 
Trying to set up a shcedualed task from the cmd line- failed.

This is starting to bug the heck out of me. Here is the line I have so far:
SCHTASKS /Create /RU SYSTEM /NP /SC ONLOGON /TN SETUP /TR C:\windows\system32\calc.exe /Z

This fails with:
ERROR: The task XML is missing a required element or attribute.
(40,4):EndBoundary:

What task XML? I didn't mention any XML in the line, because I don't know anything about the XML format. What's going on, here? This is the last of a series of errors I had to resolve, and did, but this is as far as I could get, and I'm stuck. I don't have any XML's, so what am I supposed to do? I took the calc example straight from the SCHTASKS /Create /? info output, so what gives?


My System SpecsSystem Spec
.
Reply

 Trying to set up a shcedualed task from the cmd line- failed.




Thread Tools




Similar help and support threads
Thread Forum
Edit Task command-line of a Pinned Taskbar shortcut
Good morning. Is it possible to edit the command-line used in a certain Task when I right-click an icon in Taskbar? I want to customize the command-line from Firefox "Open new private window": http://img.ctrlv.in/img/16/08/09/57a9c951bdc63.png I tried right-clicking it but it only shows...
General Discussion
cmd line way to mute line in realtek hd audio card
I have a line of music audio entering my realtek card to accompany a powerpoint slideshow, together they go out on our community cable channel. I need to kill the input, the music audio that is directly plugged into the card in the back of the pc, so that when I schedule a video (bod meeting...
Sound & Audio
Reading Task Scheduler Status Failed?
My system kept losing time (15sec a week), so I created a Task to Force Time Sync hourly- ImageShack® - Online Photo and Video Hosting Time.windows.com was 5sec Slow, so I change service to time.nist.gov (taskbar)- Time Service was Stopped, so I Started it in Services (delayed start). Then...
General Discussion
setting password - line 1, black dots : line 2, letters & numbers
When setting a password for user, when I type it, it shows up as black dots but when I retype the next line, it shows up as the letters, numbers and symbols that I'm typing. It won't let me set it. What the heck is going on? Thanks
General Discussion
Command Line Task Scheduler Power Options
Hi everyone, I was trying to create a scheduled task via command line (schtask.exe) and I want it to run regardless of whether the user is on battery power or on AC power. I created an event and it runs fine on AC power but when I try it on the battery power, it doesn't work. I checked the task...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 03:08.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App