Raised This Month: $51 Target: $400
 12% 

Win10 Task Scheduler cmd.exe /DISABLE


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 12-18-2015 , 18:00   Win10 Task Scheduler cmd.exe /DISABLE
Reply With Quote #1

Long time since I've been here. Anyways, will get strait to the point. Reinstalled windows to win10, it constantly auto-awakes from hibernation mod. Fixed most of reasons of why it does that, except one. Now need to create a task in task scheduler which disables an other task. Am running into problems...

Meanwhile am trying to figure out a cmd.exe command line which works, to create a bath file which does what I need. So far:
Code:
SchTasks /Change /S "SYSTEM" /U "my_user_name" /P "my_password" /TN "\Microsoft\Windows\UpdateOrchestrator\Reboot" /DISABLE
But the result I get is:
Code:
ERROR: The request is not supported.
If I don't add /P or /U or /S, it tells me that they must be added. So any ideas?
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 12-18-2015 , 18:31   Re: Win10 Task Scheduler cmd.exe /DISABLE
Reply With Quote #2

https://www.google.com.br/search?q=schtasks+%2Fchange+%2Fdisable

Quote:
Originally Posted by MPNumB View Post
So any ideas?
I think that at Microsoft Community you would get an better answer.

Quote:
Originally Posted by MPNumB View Post
Meanwhile am trying to figure out a cmd.exe command line which works, to create a bath file which does what I need.
From here, remove /S /U /P:
Code:
SchTasks /Change /TN "\Microsoft\Windows\UpdateOrchestrator\Reboot" /DISABLE
That works here:
Code:
D:\>SchTasks /Change /TN "\MATLAB R2014a Startup Accelerator" /DISABLE
INFO: Scheduled task "\MATLAB R2014a Startup Accelerator" has already been disabled.
SUCCESS: The parameters of scheduled task "\MATLAB R2014a Startup Accelerator" have been changed.
Update:

If throw ERROR: Access is denied. Run as Administrator your batch.

Last edited by addons_zz; 12-18-2015 at 20:47. Reason: spelling fixes and new better info
addons_zz is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode