• RSS
  • Twitter
  • FaceBook

A Quick Tip To Prevent Users From Seeing Schedule Tasks

  • Section(s): Administrator, Admin , Admin
  • Published on Jun 15, 2010.
  • Last Modified on Jul 30, 2009.
  • Last Modified by Nirmal Sharma.
  • Rating: Not Rated
This article explains how you can prevent users from accessing the Schedule Tasks created by Administrators or users.

Schedule Tasks are viewable to all the users by default. Users with Local Admin rights can always access schedule tasks and delete them. Sometimes, you would want to prevent users with local admin rights from accessing the schedule tasks and deleting them. To accomplish this, you need to create a small script and then deploy it using a GPO.

As an example: You have a schedule task created on all the client computers. The schedule task name is BackupJob. You need to prevent users and local administrators from accessing this.

Create a script and add the following lines in the script. Script name would HideJob.CMD

  • @Echo Off
  • setlocal enabledelayedexpansion
  • Echo Y| C:\Windows\System32\Cacls.EXE C:\Windows\Tasks\BackupJob.JOB /G SYSTEM:F
  • IF !ErrorLevel! == 0 (
  •     Echo Done > C:\Windows\System32\Result.TXT
  • ) ELSE (
  •     Echo BackupJob not found on local computer > C:\Windows\System32\Result.TXT
  • )

Next, create a GPO or edit the existing GPO > Computer Configuration > Startup Script > and configure the HideJob.CMD.

Note: All the computers must be restarted for this to work.

The script runs at the next reboot and script is executed to set the permission on BackupJob.JOB. The permissions are assigned to SYSTEM account only. thus, preventing users and users with administrators from accessing this. The results are stored in the Result.TXT at client computer.

 

About Nirmal Sharma

Nirmal is a Microsoft MVP in Directory Services and working as a Technical Architect/Consultant. He has been involved in Microsoft Technologies since 1994 and followed the progression of Microsoft Operating Systems and software. He is specialized in Directory Services, Microsoft Clustering, SQL, MOM, Exchange and Citrix. In his spare time, he likes to help others and write "internal" technical articles, white papers and tips on various Microsoft technologies. You can contact him at nirmal_sharma@mvps.org.


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred data recovery solution?