Petri IT Knowledgebase Forums
 

Petri.co.il forums Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   Petri IT Knowledgebase Forums > Windows Scripting > DOS Command Shell
Petri.co.il is happy to award auglan the title of Most Valuable Member !!!
Register Calendar Calendar Search Petri IT Knowledgebase Forums Search Todays Posts Today's Posts Mark Forums Read

Notices

Batchfile schtasks problem

Batchfile schtasks problem

this thread has 4 replies and has been viewed 1614 times

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th July 2012, 20:29
ChristTheGreat ChristTheGreat is offline
Casual
Casual
 
 Join Date: Jul 2010
  6 month star 12 month star
 Posts: 56
 Reputation: ChristTheGreat is on a distinguished road (10)
Default Batchfile schtasks problem

Hi all!

Here's my problem: I want all domain computer to run at logon a script, that will create a schedule task, like this:


schtasks /create /TN redemarrage /RU domain\administrator /RP password /SC "toutes les semaines" /D JEU /TR c:\Scripts\reboot_pc.bat /ST 04:00:00

sorry, parameter are in french as the hole company has french OS

The issue? if the user is not an admin, I get this message:

WARNING: The Scheduled task "redemarrage" has been created, but may not run because the account information could not be set.

It will create the task but with the user as creator and as run as.. Can't get rid of it. I tried using SYSTEM, same error.

ANyone already seen this?

Thanks for any help
Reply With Quote
  #2  
Old 19th July 2012, 20:59
ChristTheGreat ChristTheGreat is offline
Casual
Casual
 
 Join Date: Jul 2010
  6 month star 12 month star
 Posts: 56
 Reputation: ChristTheGreat is on a distinguished road (10)
Default Re: Batchfile schtasks problem

Well, if I stop the tasks scheduler, and restart it, wait for 15 mins, it works, but if I attempt again removing them and recreate, it doesn't work, but shouldn't need to be removed after it works.
Reply With Quote
  #3  
Old 20th July 2012, 15:58
Rems's Avatar
Rems Rems is offline
Moderator
 
 Join Date: Mar 2005
  6 month star 12 month star
 Location: NL
 Posts: 2,281
 Reputation: Rems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to behold (903)
Default Re: Batchfile schtasks problem

Quote:
Originally Posted by ChristTheGreat View Post
Hi all!
WARNING: The Scheduled task "redemarrage" has been created, but may not run because the account information could not be set.
What error number and its description comes with the warning message? What's the OS on the clients?


/Rems
__________________

This posting is provided "AS IS" with no warranties, and confers no rights.

__________________

** Remember to give credit where credit's due **
and leave Reputation Points for meaningful posts
Reply With Quote
  #4  
Old 21st July 2012, 23:52
gerth's Avatar
gerth gerth is offline
Junior Member
Staying around
 
 Join Date: Jul 2010
  6 month star 12 month star
 Location: The Netherlands
 Posts: 222
 Reputation: gerth will become famous soon enough (73)
Default Re: Batchfile schtasks problem

Why not schedule the task by group policy?
http://technet.microsoft.com/en-us/l.../cc725745.aspx
__________________
gerth

MCITP sa, ea & va, sysadmin@cydonia.
Reply With Quote
  #5  
Old 20th December 2012, 23:37
ChristTheGreat ChristTheGreat is offline
Casual
Casual
 
 Join Date: Jul 2010
  6 month star 12 month star
 Posts: 56
 Reputation: ChristTheGreat is on a distinguished road (10)
Default Re: Batchfile schtasks problem

Quote:
Originally Posted by gerth View Post
Why not schedule the task by group policy?
http://technet.microsoft.com/en-us/l.../cc725745.aspx

Sorry long delay, I was not in good shape, but better than ever now

Well, this appleis for 2008 +, our Domain controller are Windows 2003 R2. I doN't think we are going to move to 2008/2012 sicne a couple of time.. Budget

but I'll keep this in note for other customer

+ Rep


@Rems

I changed mind and went with only reboot from WSUS with the updates, for now, I'll work on this after holidays, and post the error.

Thanks
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Batchfile that reads registry key Value ChristTheGreat DOS Command Shell 4 9th July 2010 14:33
schtasks from Windows 2003 to Windows7 returns "Network path was not found" tpthomas76 Windows 7 4 29th May 2010 11:50
How do i run PHP fIles in schtasks in windows? satyapalla General Scripting 2 31st July 2009 14:47
schtasks.exe need to pass parameters to script XtaZee General Scripting 5 20th January 2009 23:02
schtasks returns network path was not found PeterCox Windows Server 2000 / 2003 3 7th January 2009 03:05


All times are GMT +3. The time now is 18:11.

Steel Blue 3.5.4 vBulletin Style ©2006 vBEnhanced
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
 

Valid XHTML 1.0!   Valid CSS!

Copyright 2005 Daniel Petri