![]() |
|
|
|||||||
| Petri.co.il is happy to award auglan the title of Most Valuable Member !!! |
| Register | Calendar |
Search |
Today's Posts |
Mark Forums Read |
| Notices |
|
|
Batchfile schtasks problemthis thread has 4 replies and has been viewed 1614 times
|
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||||||
|
||||||||
|
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 |
|
#2
|
||||||||
|
||||||||
|
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.
|
|
#3
|
||||||||||
|
||||||||||
|
Quote:
/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 |
|
#4
|
||||||||||
|
||||||||||
|
Why not schedule the task by group policy?
http://technet.microsoft.com/en-us/l.../cc725745.aspx
__________________
gerth MCITP sa, ea & va, sysadmin@cydonia. |
|
#5
|
||||||||
|
||||||||
|
Quote:
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 |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |