Zedan IT Blog

IT definitions, discussions and more

Run scheduled tasks with highest privileges

In my previous posts of scheduling backup scripts for Windows 2008 ( you can find theme here & here ) the scheduled task was created and executed by the Administrator account, which is by default has the most privileges.   But if you you try to execute it with another account the task will be ignored due to a sceurity restriction in Windows 2008.

Let’s say you have created an account for backup called “backupadmin” and you have created a scheduled task to execute the script and you specified “backupadmin” as the account used to login automatically and execute the task,  and you did not forget to add this account to the “Backup Operators” group.   you will find that the task will not run and the log file similar to the following:

ERROR – Access denied. You must be a member of the Administrators group or Backup Operators group to use Windows Server Backup.  In addition, you must run WBADMIN from an elevated command prompt. (To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator.)

And if you try to execute the “wbadmin” command from the command prompt you will get the same result.

Solution:

You can simply solve this issue by making it executing the task with highst privilege while you create the task.   Go to the General Tab and select the checkbox of ” Run with highest privileges “.   This will help in solving this issue.

But if you need to run it from the command prompt, you will still need to run it in an elevated mode, ( start button-> type cmd.exe -> right click -> run as administrator).

One response to “Run scheduled tasks with highest privileges

  1. Pingback: Administrator is denied from access backup folders (Win 2008) « Zedan IT Blog

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s