Scroll down to bottom of the link!:

"You could try a script like the following:

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" _
    & strComputer & "\root\cimv2")
JobID = "Test"
Set objNewJob = objWMIService.Get("Win32_ScheduledJob")
errJobCreate = objNewJob.Create _
    ("shutdown.exe /r", "********143000.000000-420", _
        True , 1 OR 4 OR 16, ,True, JobId)
If errJobCreate = 0 Then
    WScript.Echo "Job created successfully: " & VBNewLine _
        & "Shutdown.exe scheduled to run repeately at 14.30 (2:30
P.M.) PST" & VBNewLine _
        & "on Mon, Wed, and Fri."
Else
    WScript.Echo "Job not created. Error code = " & errJobCreate
End If


Then create a batch file (that calls the vbs) that you can apply to
OUs via login script. The 1, 4, 16 applies to M, W, F (Tu = 2; Th = 8,
Sa=32). And the scheduled time is explained fairly well in this
article (which is where the script came from):
http://msdn2.microsoft.com/en-us/library/aa394601.aspx";



On Dec 30 2008, 1:15 pm, "Muhammd Ghrewaty" <[email protected]>
wrote:
> Ok Where Is the problem if i need the answer ?
> So, this link does not contaian an  answer
>
>  If you're smart and a duty, not a need for such a comment
>
> On 30/12/2008, [email protected] <[email protected]> wrote:
>
>
>
>
>
> > This should answer your question:
>
> >http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server...
>
> > Just noticed that your questions word for word the same as the one on
> > the site posted about 5 months ago!....Bit of traffic manipulation
> > maybe?......
>
> > On Dec 29, 8:15 am, "Muhammd Ghrewaty" <[email protected]> wrote:
> > > Hello,
>
> > > Q : In a Windows 2003 domain, is there a way to use GPOs to schedule a
> > task
> > > to run at a given time on a given day?  I am looking for a way to
> > schedule a
> > > reboot of all PCs, but I have to stagger the reboots throughout the month
> > > because my boss has concerns about everyone logging into the domain at
> > the
> > > same time ?
>
> > > --
> > > Regards,
> > > Muhammad Ghrewaty
>
> > > Hardware & Networks Engineer
>
> --
> Regards,
> Muhammad Ghrewaty
>
> Hardware & Networks Engineer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Computer Tech Support" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/computer-tech-support?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to