Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine Day of Week to Run Script

Status
Not open for further replies.

scriptomatic

Technical User
Sep 21, 2006
3
US
Hi,

I want to run chkdsk as a logoff script in AD. But I want the script to run only on Monday, Wednesday and Friday so I don't pester users every single day with a chkdsk.

How can I check for the day of the week? If it is the correct day of the week, I'll be running a batch file on the local computer with the chkdsk command.

Thanks for your help.
 
Have a look at the Weekday function.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top