Solved

Group Policy schedule task not appearing on Windows 8.1 machines - error code 0x80070057 "The parameter is incorrect"

Posted on 2014-10-06
10
3,595 Views
Last Modified: 2014-10-08
I need to set up a GPO that wakes up our desktops from sleep for off-hours virus scans.  I am using a scheduled task to run the virusscan with "wake up the computer to run the task"  selected.  This is currently being done with WOL but some combinations of NICs and Windows 8.1 don't respond.  The new GPO works by installing a scheduled task on our Windows 7-64 boxes, but fails on Win 8.1.  (I am just using ping for now for testing).  

I enabled logging and see these errors:

2014-10-03 16:33:15.141 [pid=0x398,tid=0xac4] Properties handled. [ hr = 0x80070057 "The parameter is incorrect." ]
2014-10-03 16:33:15.141 [pid=0x398,tid=0xac4] Error suppressed. [ hr = 0x80070057 "The parameter is incorrect." ]

The task is being set up on one of the DCs running Server 2012.  It occurred to me that the Task Version may be incorrect but I don't understand the logic behind setting it ("Configure for").

First, I don't see any place in the GP/Scheduled task interface to even control this option.  How do I select it?

Second, the task arrives at the W7 desktops configured for for "Server 2003, WinXP, Win2000".  The W7 boxes work, but is this correct for Win8.1? Possibly the reason for the failure?

If I make a local scheduled task on the Server 2012 box it defaults to "Server 2008, Win Vista".  Why is this different?

Please explain to me how this "configured for" is used, and how to modify it in a sched task GPO.  

The goal here is to get the Win8.1 boxes to accept the policy and install the task. I am just surmising that the task version is related so please redirect me if I'm on the wrong road.

Thanks.
0
Comment
Question by:dvanaken
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 54

Accepted Solution

by:
McKnife earned 500 total points
ID: 40364691
Hi.

You setup the task using group policy preferences like shown here:
Screenshot?

Then it should work. Please try to schedule the start of notepad. Does that work?
0
 

Author Comment

by:dvanaken
ID: 40364761
Thank you for the response.

Well don't I feel stupid :-).  I must have just missed those other options to create a task.  However, I only had a few minutes to try it and used the default "Configure for" that says Server 2008/Vista.  The W7 box worked but the task is still not showing in the W8.1 box.  I will test further tomorrow - should I select "configure for Windows 7"?
0
 
LVL 54

Expert Comment

by:McKnife
ID: 40364786
Yes, you should.
0
Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

 

Author Comment

by:dvanaken
ID: 40364822
Will try again tomorrow. That's confusing because it already works on W7 so on the surface there seems to be no benefit to selecting that option for W8.1 .  But, Microsoft  options have not always made sense through history. ... I will post back.  One thing. On the W7 box the task clearly ran since the box woke up out of sleep but notepad was not running. Is this to be expected?
0
 
LVL 54

Expert Comment

by:McKnife
ID: 40364841
Might run invisible. Depends on what account you configure for the task. If not the same as the logged on user, that's expected behavior.
0
 

Author Comment

by:dvanaken
ID: 40364850
That's  probably it. W7 logged in as me, task set to run as domain admin...
0
 

Author Comment

by:dvanaken
ID: 40366656
Just changing the "configure for:" to Windows 7 did not do it.  But I finally got it working - here are the things I did differently:  

Run as User : SYSTEM, rather than domain\administrator
Configure for: Windows 7
don't check "run with highest privileges"

Then rather than logging in to the W8.1 box as domain\admin, I logged in with my own credentials.   Somewhere along the way these changes did the trick.

Now I just have to figure out how to run the SEP scan from the command line and with appropriate permissions.

Thanks for the help!
0
 

Author Comment

by:dvanaken
ID: 40367183
Ok, one more twitch here.  While I was experimenting with Win8.1, all the W7 boxes were getting the test scheduled tasks installed.  I did not see that and so I deleted the scheduled tasks from the GPO.  Now those boxes are stuck with the test tasks.  if I re-create a task for "delete" and name it the same name, will GP eventually delete them?
0
 
LVL 54

Expert Comment

by:McKnife
ID: 40367219
Yes it will.
0
 

Author Closing Comment

by:dvanaken
ID: 40368257
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question