Windows Server 2008 Thread, Group Policy Preferences - Scheduled Tasks in Technical; Has anyone used GPP to manage scheduled tasks?
I'm trying to schedule disk defragmenter on our XP clients and the ...
-
17th August 2009, 04:31 PM #1 Group Policy Preferences - Scheduled Tasks
Has anyone used GPP to manage scheduled tasks?
I'm trying to schedule disk defragmenter on our XP clients and the task keeps appearing with quotes around it which causes the job to fail, if I remove the quotes the job runs. Also if I move the closing quotes to before C: it will run the problem is that GPP won't create it like that even though that's the command that I entered in the GPP console.
Code:
"C:\Windows\System32\defrag.exe" C:
Below is the error due to the quotes
"Defrag.job" () 17/08/2009 16:21:27 ** ERROR **
Unable to start task.
The specific error is:
0x8007007b: The filename, directory name, or volume label syntax is incorrect.
Try using the Task page Browse button to locate the application.
Any ideas?
Thanks.
-
-
IDG Tech News
-
17th August 2009, 04:43 PM #2 It is perfectly normal for the job to have quotes, even if the path name has no spaces. Usually Scheduled Tasks fail due to permissions, but clearly that isn't the problem in this case. If you create the job manually on a machine instead of using the GPP, does this work as it should?
-
-
17th August 2009, 04:49 PM #3 It is normal for the command to have quotes but it doesn't seem to like the space then the C: command (in this case). If I create the job manually without the quotes it runs if I create it as GPP does it fails. I can also alter the job that is created by GPP and move the quote to before the C: and it runs.
This is how GPP creates the job
Code:
"C:\Windows\System32\defrag.exe C:"
-
-
17th August 2009, 04:55 PM #4 Have you tried adding a forward slash before C: ?
Code:
C:\Windows\System32\defrag.exe /C:"
-
-
17th August 2009, 05:33 PM #5 I am trying to get Group Policy Preferences to add a scheduled task also [Run a PSShutdown script held on the server] I have waited for the task to arrive [be created] at the client end without success. Not sure what I am doing wrong.
Has anyone successfully used GPP to do this?
Thanks.
-
-
17th August 2009, 06:06 PM #6 I'll try a slash before the C tomorrow and let you know cheers.
@ DaveP, it should work fine GPP creates the job for me it's just not running correctly, have you forced an update on the client? gpupdate /force
-
-
17th August 2009, 07:37 PM #7 Uh.. are you putting the entire line in the GPP run field? You are supposed to split it like this:
Run: C:\Windows\System32\defrag.exe
Arguments: C:
-
Thanks to PiqueABoo from:
cookie_monster (18th August 2009)
-
17th August 2009, 07:39 PM #8 
Originally Posted by
cookie_monster
....have you forced an update on the client? gpupdate /force
Hi,
Yes I had thought of that. Tried a gpupdate /force and also tried waiting all weekend [set the GPP on Friday afternoon and checked the stations this morning. Nothing doing.
-
-
17th August 2009, 08:09 PM #9 @ PiqueABoo, i've not used GPP before (just moved to server 2008) for this as previously I used .bat files so I hadn't seen the arguments field, i'll take a look tomorrow.
Thanks.
-
-
15th November 2011, 04:04 PM #10
- Rep Power
- 16
What was the fix? I've just had the same error message pop up trying to deploy a scheduled task.
0x8007007b: The filename, directory name, or volume label syntax is incorrect.
-
-
15th November 2011, 07:46 PM #11 You may want to post a new thread Finch, this one's been dead for over 2 years 
Just a quick suggestion but have you checked what PiqueABoo suggested (i.e. keeping the arguments separate)

Originally Posted by
PiqueABoo
Uh.. are you putting the entire line in the
GPP run field? You are supposed to split it like this:
Run: C:\Windows\System32\defrag.exe
Arguments: C:
-
-
16th November 2011, 03:45 AM #12
- Rep Power
- 9
which OS are you trying to deploy this to?
We deploy scheduled tasks just fine using XP.
I'll post my code tomorrow morning with our settings. it works awesome.
-
-
16th November 2011, 09:16 AM #13
- Rep Power
- 16
Windows 7 and yep tried the suggestions here. I've encountered the exact same error message before using the printer section of gpp. Didn't solve it that time either. So not entirely sure it's syntax related.
New thread started here..
http://www.edugeek.net/forums/window...tml#post754450
Last edited by Finch7; 16th November 2011 at 10:26 AM.
-
SHARE: 
Similar Threads
-
By Stuart_C in forum Windows
Replies: 15
Last Post: 11th June 2009, 03:59 PM
-
By Stuart_C in forum Windows Server 2000/2003
Replies: 2
Last Post: 23rd March 2009, 03:42 PM
-
By techie08 in forum Windows
Replies: 0
Last Post: 15th December 2008, 02:05 PM
-
By cookie_monster in forum Windows Server 2008
Replies: 9
Last Post: 4th April 2008, 02:50 PM
-
By cromertech in forum Windows Vista
Replies: 1
Last Post: 8th February 2008, 04:28 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules