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: Scheduled Task via Group Policy Preferences.

29 Nov 2010   #1

Windows 7 Enterprise 64bit
Scheduled Task via Group Policy Preferences.

Hi Guys,

I am having some issues with creating a scheduled task via group policy preferences.

The task is to run on an event to run a batch file. and will use the local SYSTEM account.

I receive the following erroro message in the event viewer when it tries to create the task:

0x80041318 "The task XML contains a value which is incorrectly formatted or out of range

This is the task XML file:

<?xml version="1.0" encoding="utf-8" ?> 
- <ScheduledTasks clsid="{CC63F200-7309-4ba0-B154-A71CD118DBCC}">
- <TaskV2 clsid="{D8896631-B747-47a7-84A6-C155337F3BC8}" name="Offline Hompages" image="0" changed="2010-11-30 02:46:25" uid="{BC89C609-1325-4D3E-8B90-7B76D7220897}" userContext="0" removePolicy="0">
- <Properties action="C" name="Offline Hompages" runAs="" logonType="user">
- <Task version="1.3">
- <RegistrationInfo>
<Description>To change the home page when you cannot see the COLESMYER domain</Description> 
- <Principals>
- <Principal id="Author">
<GroupId /> 
- <Settings>
- <IdleSettings>
- <RestartOnFailure>
- <Triggers>
- <EventTrigger>
<Subscription><QueryList><Query Id="0" Path="Microsoft-Windows-NetworkProfile/Operational"><Select Path="Microsoft-Windows-NetworkProfile/Operational">*[System[Provider[@Name='Microsoft-Windows-NetworkProfile'] and EventID=10001]]</Select></Query></QueryList></Subscription> 
- <EventTrigger>
<Subscription><QueryList><Query Id="0" Path="System"><Select Path="System">*[System[Provider[@Name='Microsoft-Windows-GroupPolicy'] and EventID=1129]]</Select></Query></QueryList></Subscription> 
- <Actions>
- <Exec>
I have applied this preference to the computer configuration.

I have created this task manually and it works as expected but not viw group policy.

Any help would be appreciated.

My System SpecsSystem Spec


 Scheduled Task via Group Policy Preferences.

Thread Tools

Similar help and support threads for2: Scheduled Task via Group Policy Preferences.
Thread Forum
Group Policy "Preferences" folder missing Performance & Maintenance
Group Policy - Apply to a Specific User or Group Tutorials
Scheduled Task history indicates task completed successfully but.... Performance & Maintenance
Group Policy Applies Policy EXCEPT for 1 Setting! General Discussion
Group Policy Network & Sharing
Group Policy Editor or Local Security Policy System Security
Task bar - Top, Bottom, Auto hide -- preferences Chillout Room

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:12 AM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

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