Solved

Create a scheduled task and set it to run wether user is logged on or not, and run with highest privileges

Posted on 2014-02-20
4
1,726 Views
Last Modified: 2014-02-21
I was looking through this:
http://technet.microsoft.com/en-us/library/jj649816.aspx

But I didn't find a way to set the task I was creating to run wether user is logged on or not, and run with highest privileges.
0
Comment
Question by:itnifl
4 Comments
 
LVL 47

Expert Comment

by:dlethe
ID: 39875805
You have to make the task run as a system task, using Administrator privileges.  You generally configure them to run when system boots up, and then at whatever interval you prefer, but again as administrator.
0
 
LVL 39

Accepted Solution

by:
footech earned 500 total points
ID: 39875821
You must not have seen New-ScheduledTaskPrincipal
http://technet.microsoft.com/en-us/library/jj649825.aspx
It says, "When you use a scheduled task principal, Task Scheduler can run the task regardless of whether that account is logged on."
And with the -RunLevel parameter you can specify to run with highest privileges.
0
 
LVL 35

Expert Comment

by:Mahesh
ID: 39876023
You can use GP Preferences to get this done

GP preferences are very well constructed and can be used to set task with your desired features for users OR computers during logon \ startup \ particular schedule

Mahesh
0
 
LVL 2

Author Closing Comment

by:itnifl
ID: 39876121
Thanks for all replies. I will comment each individually:
dlethe: Thank you, but I was not sure how to do this with powershell.
Mahesh: yes, you are right, generally this solution could work. However, I am looking to use powershell so that I can generate schedule tasks as a result of other program execution. It is better for me to keep it all in one place, and just feed the script with parameters that come from other execution.
footech: I guess you are right. Seems like it works.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

What to do when Windows Update is not working correctly? What tools can I use to detect the cause of the malfunction problem? What does this numeric error code mean? These and other questions that you have been asking in the past are answered here (…
Synchronize a new Active Directory domain with an existing Office 365 tenant
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

757 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now