Link to home
Create AccountLog in
Avatar of A A
A A

asked on

schedule task that shutdown machine every Friday at 12:00 am

Hi experts
I have server that have lot of sceheduled tasks more than 300 tasks and I need to either disable schedule task that run every  Friday at 12:00 am or  get name of task that runs  every friday at 12:00 am by using batch or powershell or find source of this issue and name of scheduled task
Avatar of Bembi
Bembi
Flag of Germany image

I can not just follow your problem, you need a script to shutdown the machine or you have to find out why a shutdown happens...
The first maybe shutdown /i , you can also set all parameters and run it silently.
The second maybe connected to the command sc which can be used to deal with task.
But I would rather have a look into the task scheduler itself inluding the history, as well there is a task scheduler related Application event log to see what happens around 12:00 
Sort the scheduled tasks by last successful run and check for the one that occurs on Fridays at midnight?
ASKER CERTIFIED SOLUTION
Avatar of Dustin Saunders
Dustin Saunders
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of A A
A A

ASKER

Thanks Dustin

could I have powershell script that define exactly what are scheduled tasks configured on FRiday at 12 :00 am
--------------------------------------------------------------------------------------------
Thanks Bembi
I am searching for root cause of scheduled task for shutdown every Friday at 12:00 Am
I would rather have a look into the task scheduler itself inluding the history, as well there is a task scheduler related Application event log to see what happens around 12:00  

It is around 500 or more  scheduled tasks events as it is messy and need smart way to find that in organized manner

---------------------------------------------------------------------------------------------------------------------
Thanks Andrew
concerning Sort the scheduled tasks by last successful run and check for the one that occurs on Fridays at midnight?
How can I do that ??
---------------------------------------------------------------------------------------------------------------------------

SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.