Forum Search:
Forum.Brain-Cluster.com: Brain Cluster Technical Forum
Ultimate forum for Technical Discussions

Home » Microsoft » Windows Server » Windows Server General Help » pb with a Scheduled Task
pb with a Scheduled Task [message #164106] Mon, 15 June 2009 09:30 Go to next message
NT  is currently offline NT  France
Messages: 12
Registered: June 2009
Junior Member
hello

i installed a new server in my domain with 2008 STD edition in replacement
of a 2003R2 to host a database

on the old server i was running a Scheduled Task every night who lauch a bat
file
this bat copy some files from a directory to another

i try to do the same on the new server, i was able to create the task

in the history of the task it appears as working every night without pb but
in fact it doesn't, the file are not copied

i use the same batch as on the old server
if i lauch the batch manually it works whitout any problems


thanks for your ideas, nicolas
Re: pb with a Scheduled Task [message #164107 is a reply to message #164106] Mon, 15 June 2009 10:01 Go to previous messageGo to next message
news  is currently offline news  Switzerland
Messages: 2294
Registered: July 2009
Senior Member
"NT" <nt29@community.nospam> wrote in message
news:9D8AE8E1-2B77-4272-BDD7-0C29840444BC@microsoft.com...
> hello
>
> i installed a new server in my domain with 2008 STD edition in replacement
> of a 2003R2 to host a database
>
> on the old server i was running a Scheduled Task every night who lauch a
> bat file
> this bat copy some files from a directory to another
>
> i try to do the same on the new server, i was able to create the task
>
> in the history of the task it appears as working every night without pb
> but in fact it doesn't, the file are not copied
>
> i use the same batch as on the old server
> if i lauch the batch manually it works whitout any problems
>
>
> thanks for your ideas, nicolas
>

What's a "pb"?
What does your batch file look like?
What does the Task Scheduler log file report?
Re: pb with a Scheduled Task [message #164110 is a reply to message #164107] Mon, 15 June 2009 10:30 Go to previous messageGo to next message
NT  is currently offline NT
Messages: 12
Registered: June 2009
Junior Member
hello, here my answers:

What's a "pb"?
nt: sorry it means a problem

What does your batch file look like?
nt:here the code

set base=DATA1
set commande=1
set root=f:\sav\
set jour=%date:~0,2%
set mois=%date:~3,2%
set annee=%date:~6,4%

"C:\Program Files\Novaxel\NovaxelSQL\admin.exe" "/OPEN:%base%" /D:2
"/C:%root%%base%\"
echo DUPLICATION BASE %base% >> %logfile%


What does the Task Scheduler log file report?
NT:
Task Scheduler has completed the \xxx\SAV A job instance
"{b8c182ab-08d1-4060-a675-42a4c4e434fb}", "C:\Windows\SYSTEM32\cmd.exe"
action with return code 0.


thanks nicolas

"Pegasus [MVP]" <news@microsoft.com> a écrit dans le message de
news:OoWQ7Gc7JHA.2388@TK2MSFTNGP06.phx.gbl...
>
> "NT" <nt29@community.nospam> wrote in message
> news:9D8AE8E1-2B77-4272-BDD7-0C29840444BC@microsoft.com...
>> hello
>>
>> i installed a new server in my domain with 2008 STD edition in
>> replacement of a 2003R2 to host a database
>>
>> on the old server i was running a Scheduled Task every night who lauch a
>> bat file
>> this bat copy some files from a directory to another
>>
>> i try to do the same on the new server, i was able to create the task
>>
>> in the history of the task it appears as working every night without pb
>> but in fact it doesn't, the file are not copied
>>
>> i use the same batch as on the old server
>> if i lauch the batch manually it works whitout any problems
>>
>>
>> thanks for your ideas, nicolas
>>
>
> What's a "pb"?
> What does your batch file look like?
> What does the Task Scheduler log file report?
>
Re: pb with a Scheduled Task [message #164114 is a reply to message #164110] Mon, 15 June 2009 11:52 Go to previous messageGo to next message
news  is currently offline news  Switzerland
Messages: 2294
Registered: July 2009
Senior Member
set base=DATA1
set commande=1
set root=f:\sav\
set jour=%date:~0,2%
set mois=%date:~3,2%
set annee=%date:~6,4%

"C:\Program Files\Novaxel\NovaxelSQL\admin.exe" "/OPEN:%base%" /D:2
"/C:%root%%base%\"
echo DUPLICATION BASE %base% >> %logfile%

Here are a few comments:
- You never use the variables jour, mois and anne.
- You use the variable %logfile% but it is undefined.
- We don't know if drive F: is a local or a networked drive.

I recommend you modify your batch file like so:
@echo off
set base=DATA1
set commande=1
set root=f:\sav\
set logfile=c:\test.log
echo %date% %time% %username% >> %logfile%
dir %root% >> %logfile%
copy %comspec% %root% 1>>%logfile% 2>>&1
echo DUPLICATION BASE %base% >> %logfile%
"C:\Program Files\Novaxel\NovaxelSQL\admin.exe" "/OPEN:%base%" /D:2
"/C:%root%%base%\" >> %logfile%

echo %date% %time% End of job >> %logfile%

The logfile will tell you a lot about what's going on.


"NT" <nt29@community.nospam> wrote in message
news:2ECCE011-9EB1-44AE-AA2E-5CA4A0ED1368@microsoft.com...
> hello, here my answers:
>
> What's a "pb"?
> nt: sorry it means a problem
>
> What does your batch file look like?
> nt:here the code
>
> set base=DATA1
> set commande=1
> set root=f:\sav\
> set jour=%date:~0,2%
> set mois=%date:~3,2%
> set annee=%date:~6,4%
>
> "C:\Program Files\Novaxel\NovaxelSQL\admin.exe" "/OPEN:%base%" /D:2
> "/C:%root%%base%\"
> echo DUPLICATION BASE %base% >> %logfile%
>
>
> What does the Task Scheduler log file report?
> NT:
> Task Scheduler has completed the \xxx\SAV A job instance
> "{b8c182ab-08d1-4060-a675-42a4c4e434fb}", "C:\Windows\SYSTEM32\cmd.exe"
> action with return code 0.
>
>
> thanks nicolas
>
> "Pegasus [MVP]" <news@microsoft.com> a écrit dans le message de
> news:OoWQ7Gc7JHA.2388@TK2MSFTNGP06.phx.gbl...
>>
>> "NT" <nt29@community.nospam> wrote in message
>> news:9D8AE8E1-2B77-4272-BDD7-0C29840444BC@microsoft.com...
>>> hello
>>>
>>> i installed a new server in my domain with 2008 STD edition in
>>> replacement of a 2003R2 to host a database
>>>
>>> on the old server i was running a Scheduled Task every night who lauch a
>>> bat file
>>> this bat copy some files from a directory to another
>>>
>>> i try to do the same on the new server, i was able to create the task
>>>
>>> in the history of the task it appears as working every night without pb
>>> but in fact it doesn't, the file are not copied
>>>
>>> i use the same batch as on the old server
>>> if i lauch the batch manually it works whitout any problems
>>>
>>>
>>> thanks for your ideas, nicolas
>>>
>>
>> What's a "pb"?
>> What does your batch file look like?
>> What does the Task Scheduler log file report?
>>
>
Re: pb with a Scheduled Task [message #164211 is a reply to message #164114] Wed, 17 June 2009 20:05 Go to previous messageGo to next message
DaveMills  is currently offline DaveMills  United Kingdom
Messages: 335
Registered: July 2009
Senior Member
On Mon, 15 Jun 2009 17:52:56 +0200, "Pegasus [MVP]" <news@microsoft.com> wrote:

>set base=DATA1
>set commande=1
>set root=f:\sav\
>set jour=%date:~0,2%
>set mois=%date:~3,2%
>set annee=%date:~6,4%
>
>"C:\Program Files\Novaxel\NovaxelSQL\admin.exe" "/OPEN:%base%" /D:2
>"/C:%root%%base%\"
>echo DUPLICATION BASE %base% >> %logfile%
>
>Here are a few comments:
>- You never use the variables jour, mois and anne.
>- You use the variable %logfile% but it is undefined.
>- We don't know if drive F: is a local or a networked drive.

If it is a network drive it will not exist for the scheduled job.

>
>I recommend you modify your batch file like so:
>@echo off
>set base=DATA1
>set commande=1
>set root=f:\sav\
>set logfile=c:\test.log
>echo %date% %time% %username% >> %logfile%
>dir %root% >> %logfile%
>copy %comspec% %root% 1>>%logfile% 2>>&1
>echo DUPLICATION BASE %base% >> %logfile%
>"C:\Program Files\Novaxel\NovaxelSQL\admin.exe" "/OPEN:%base%" /D:2
>"/C:%root%%base%\" >> %logfile%
>
>echo %date% %time% End of job >> %logfile%
>
>The logfile will tell you a lot about what's going on.
>
>
>"NT" <nt29@community.nospam> wrote in message
>news:2ECCE011-9EB1-44AE-AA2E-5CA4A0ED1368@microsoft.com...
>> hello, here my answers:
>>
>> What's a "pb"?
>> nt: sorry it means a problem
>>
>> What does your batch file look like?
>> nt:here the code
>>
>> set base=DATA1
>> set commande=1
>> set root=f:\sav\
>> set jour=%date:~0,2%
>> set mois=%date:~3,2%
>> set annee=%date:~6,4%
>>
>> "C:\Program Files\Novaxel\NovaxelSQL\admin.exe" "/OPEN:%base%" /D:2
>> "/C:%root%%base%\"
>> echo DUPLICATION BASE %base% >> %logfile%
>>
>>
>> What does the Task Scheduler log file report?
>> NT:
>> Task Scheduler has completed the \xxx\SAV A job instance
>> "{b8c182ab-08d1-4060-a675-42a4c4e434fb}", "C:\Windows\SYSTEM32\cmd.exe"
>> action with return code 0.
>>
>>
>> thanks nicolas
>>
>> "Pegasus [MVP]" <news@microsoft.com> a écrit dans le message de
>> news:OoWQ7Gc7JHA.2388@TK2MSFTNGP06.phx.gbl...
>>>
>>> "NT" <nt29@community.nospam> wrote in message
>>> news:9D8AE8E1-2B77-4272-BDD7-0C29840444BC@microsoft.com...
>>>> hello
>>>>
>>>> i installed a new server in my domain with 2008 STD edition in
>>>> replacement of a 2003R2 to host a database
>>>>
>>>> on the old server i was running a Scheduled Task every night who lauch a
>>>> bat file
>>>> this bat copy some files from a directory to another
>>>>
>>>> i try to do the same on the new server, i was able to create the task
>>>>
>>>> in the history of the task it appears as working every night without pb
>>>> but in fact it doesn't, the file are not copied
>>>>
>>>> i use the same batch as on the old server
>>>> if i lauch the batch manually it works whitout any problems
>>>>
>>>>
>>>> thanks for your ideas, nicolas
>>>>
>>>
>>> What's a "pb"?
>>> What does your batch file look like?
>>> What does the Task Scheduler log file report?
>>>
>>
>
--
Dave Mills
There are 10 types of people, those that understand binary and those that don't.
Re: pb with a Scheduled Task [message #164232 is a reply to message #164211] Thu, 18 June 2009 03:32 Go to previous messageGo to next message
NT  is currently offline NT
Messages: 12
Registered: June 2009
Junior Member
hey

i think there is nothing wrong in my script because it is the same that i
use on other server

i have a f drive it is local
the other variable ar not used for the moment

I think there is something wrong with sthe task scheduler when he start a
bat file

i have friend who have the same problem with bat file an 2008 server on
other server in other company

thanks nicolas


"DaveMills" <DaveMills@newsgroup.nospam> a écrit dans le message de
news:641j35pc1u43apnnm70bv15trm242bjvec@4ax.com...
> On Mon, 15 Jun 2009 17:52:56 +0200, "Pegasus [MVP]" <news@microsoft.com>
> wrote:
>
>>set base=DATA1
>>set commande=1
>>set root=f:\sav\
>>set jour=%date:~0,2%
>>set mois=%date:~3,2%
>>set annee=%date:~6,4%
>>
>>"C:\Program Files\Novaxel\NovaxelSQL\admin.exe" "/OPEN:%base%" /D:2
>>"/C:%root%%base%\"
>>echo DUPLICATION BASE %base% >> %logfile%
>>
>>Here are a few comments:
>>- You never use the variables jour, mois and anne.
>>- You use the variable %logfile% but it is undefined.
>>- We don't know if drive F: is a local or a networked drive.
>
> If it is a network drive it will not exist for the scheduled job.
>
>>
>>I recommend you modify your batch file like so:
>>@echo off
>>set base=DATA1
>>set commande=1
>>set root=f:\sav\
>>set logfile=c:\test.log
>>echo %date% %time% %username% >> %logfile%
>>dir %root% >> %logfile%
>>copy %comspec% %root% 1>>%logfile% 2>>&1
>>echo DUPLICATION BASE %base% >> %logfile%
>>"C:\Program Files\Novaxel\NovaxelSQL\admin.exe" "/OPEN:%base%" /D:2
>>"/C:%root%%base%\" >> %logfile%
>>
>>echo %date% %time% End of job >> %logfile%
>>
>>The logfile will tell you a lot about what's going on.
>>
>>
>>"NT" <nt29@community.nospam> wrote in message
>>news:2ECCE011-9EB1-44AE-AA2E-5CA4A0ED1368@microsoft.com...
>>> hello, here my answers:
>>>
>>> What's a "pb"?
>>> nt: sorry it means a problem
>>>
>>> What does your batch file look like?
>>> nt:here the code
>>>
>>> set base=DATA1
>>> set commande=1
>>> set root=f:\sav\
>>> set jour=%date:~0,2%
>>> set mois=%date:~3,2%
>>> set annee=%date:~6,4%
>>>
>>> "C:\Program Files\Novaxel\NovaxelSQL\admin.exe" "/OPEN:%base%" /D:2
>>> "/C:%root%%base%\"
>>> echo DUPLICATION BASE %base% >> %logfile%
>>>
>>>
>>> What does the Task Scheduler log file report?
>>> NT:
>>> Task Scheduler has completed the \xxx\SAV A job instance
>>> "{b8c182ab-08d1-4060-a675-42a4c4e434fb}", "C:\Windows\SYSTEM32\cmd.exe"
>>> action with return code 0.
>>>
>>>
>>> thanks nicolas
>>>
>>> "Pegasus [MVP]" <news@microsoft.com> a écrit dans le message de
>>> news:OoWQ7Gc7JHA.2388@TK2MSFTNGP06.phx.gbl...
>>>>
>>>> "NT" <nt29@community.nospam> wrote in message
>>>> news:9D8AE8E1-2B77-4272-BDD7-0C29840444BC@microsoft.com...
>>>>> hello
>>>>>
>>>>> i installed a new server in my domain with 2008 STD edition in
>>>>> replacement of a 2003R2 to host a database
>>>>>
>>>>> on the old server i was running a Scheduled Task every night who lauch
>>>>> a
>>>>> bat file
>>>>> this bat copy some files from a directory to another
>>>>>
>>>>> i try to do the same on the new server, i was able to create the task
>>>>>
>>>>> in the history of the task it appears as working every night without
>>>>> pb
>>>>> but in fact it doesn't, the file are not copied
>>>>>
>>>>> i use the same batch as on the old server
>>>>> if i lauch the batch manually it works whitout any problems
>>>>>
>>>>>
>>>>> thanks for your ideas, nicolas
>>>>>
>>>>
>>>> What's a "pb"?
>>>> What does your batch file look like?
>>>> What does the Task Scheduler log file report?
>>>>
>>>
>>
> --
> Dave Mills
> There are 10 types of people, those that understand binary and those that
> don't.
Re: pb with a Scheduled Task [message #164237 is a reply to message #164232] Thu, 18 June 2009 04:51 Go to previous messageGo to next message
news  is currently offline news  Switzerland
Messages: 2294
Registered: July 2009
Senior Member
I assure you that there is nothing wrong with the Task Scheduler. If you
post the log file that you generated in the script I recommended then we
will probably come a lot closer to resolving this problem.


"NT" <nt29@community.nospam> wrote in message
news:B3AC554C-19BA-4520-A038-DD971A18847C@microsoft.com...
> hey
>
> i think there is nothing wrong in my script because it is the same that i
> use on other server
>
> i have a f drive it is local
> the other variable ar not used for the moment
>
> I think there is something wrong with sthe task scheduler when he start a
> bat file
>
> i have friend who have the same problem with bat file an 2008 server on
> other server in other company
>
> thanks nicolas
>
>
> "DaveMills" <DaveMills@newsgroup.nospam> a écrit dans le message de
> news:641j35pc1u43apnnm70bv15trm242bjvec@4ax.com...
>> On Mon, 15 Jun 2009 17:52:56 +0200, "Pegasus [MVP]" <news@microsoft.com>
>> wrote:
>>
>>>set base=DATA1
>>>set commande=1
>>>set root=f:\sav\
>>>set jour=%date:~0,2%
>>>set mois=%date:~3,2%
>>>set annee=%date:~6,4%
>>>
>>>"C:\Program Files\Novaxel\NovaxelSQL\admin.exe" "/OPEN:%base%" /D:2
>>>"/C:%root%%base%\"
>>>echo DUPLICATION BASE %base% >> %logfile%
>>>
>>>Here are a few comments:
>>>- You never use the variables jour, mois and anne.
>>>- You use the variable %logfile% but it is undefined.
>>>- We don't know if drive F: is a local or a networked drive.
>>
>> If it is a network drive it will not exist for the scheduled job.
>>
>>>
>>>I recommend you modify your batch file like so:
>>>@echo off
>>>set base=DATA1
>>>set commande=1
>>>set root=f:\sav\
>>>set logfile=c:\test.log
>>>echo %date% %time% %username% >> %logfile%
>>>dir %root% >> %logfile%
>>>copy %comspec% %root% 1>>%logfile% 2>>&1
>>>echo DUPLICATION BASE %base% >> %logfile%
>>>"C:\Program Files\Novaxel\NovaxelSQL\admin.exe" "/OPEN:%base%" /D:2
>>>"/C:%root%%base%\" >> %logfile%
>>>
>>>echo %date% %time% End of job >> %logfile%
>>>
>>>The logfile will tell you a lot about what's going on.
>>>
>>>
>>>"NT" <nt29@community.nospam> wrote in message
>>>news:2ECCE011-9EB1-44AE-AA2E-5CA4A0ED1368@microsoft.com...
>>>> hello, here my answers:
>>>>
>>>> What's a "pb"?
>>>> nt: sorry it means a problem
>>>>
>>>> What does your batch file look like?
>>>> nt:here the code
>>>>
>>>> set base=DATA1
>>>> set commande=1
>>>> set root=f:\sav\
>>>> set jour=%date:~0,2%
>>>> set mois=%date:~3,2%
>>>> set annee=%date:~6,4%
>>>>
>>>> "C:\Program Files\Novaxel\NovaxelSQL\admin.exe" "/OPEN:%base%" /D:2
>>>> "/C:%root%%base%\"
>>>> echo DUPLICATION BASE %base% >> %logfile%
>>>>
>>>>
>>>> What does the Task Scheduler log file report?
>>>> NT:
>>>> Task Scheduler has completed the \xxx\SAV A job instance
>>>> "{b8c182ab-08d1-4060-a675-42a4c4e434fb}", "C:\Windows\SYSTEM32\cmd.exe"
>>>> action with return code 0.
>>>>
>>>>
>>>> thanks nicolas
>>>>
>>>> "Pegasus [MVP]" <news@microsoft.com> a écrit dans le message de
>>>> news:OoWQ7Gc7JHA.2388@TK2MSFTNGP06.phx.gbl...
>>>>>
>>>>> "NT" <nt29@community.nospam> wrote in message
>>>>> news:9D8AE8E1-2B77-4272-BDD7-0C29840444BC@microsoft.com...
>>>>>> hello
>>>>>>
>>>>>> i installed a new server in my domain with 2008 STD edition in
>>>>>> replacement of a 2003R2 to host a database
>>>>>>
>>>>>> on the old server i was running a Scheduled Task every night who
>>>>>> lauch a
>>>>>> bat file
>>>>>> this bat copy some files from a directory to another
>>>>>>
>>>>>> i try to do the same on the new server, i was able to create the task
>>>>>>
>>>>>> in the history of the task it appears as working every night without
>>>>>> pb
>>>>>> but in fact it doesn't, the file are not copied
>>>>>>
>>>>>> i use the same batch as on the old server
>>>>>> if i lauch the batch manually it works whitout any problems
>>>>>>
>>>>>>
>>>>>> thanks for your ideas, nicolas
>>>>>>
>>>>>
>>>>> What's a "pb"?
>>>>> What does your batch file look like?
>>>>> What does the Task Scheduler log file report?
>>>>>
>>>>
>>>
>> --
>> Dave Mills
>> There are 10 types of people, those that understand binary and those that
>> don't.
>
RE: pb with a Scheduled Task [message #164239 is a reply to message #164106] Thu, 18 June 2009 05:59 Go to previous messageGo to next message
v-dashen  is currently offline v-dashen
Messages: 32
Registered: July 2009
Member
Hi nicolas,

To prevent the influence of the known issue in Task Scheduler in Windows
Server 2008, pleasec refer to the KB 953153 to request the hotfix (fix name
is Fix228945) and apply it on the problematic computer.

Error message when you change the running user context of a scheduled task
to another domain account on a computer that is running Windows Vista or
Windows Server 2008: "The specified account name is not valid"
http://support.microsoft.com/kb/953153

After a reboot of the server, please re-create a scheduled task to launch
the batch file, you may try select "Run whether user is logged on or not"
and check the box "Run with highest privileges" in the task properties.

Please test to see if it can be helpful.

Thanks for the co-operation.

David Shen
Microsoft Online Technical Support
Re: pb with a Scheduled Task [message #164257 is a reply to message #164239] Thu, 18 June 2009 16:17 Go to previous messageGo to next message
NT  is currently offline NT
Messages: 12
Registered: June 2009
Junior Member
thanks for your informations
i look deeper , and i give you feedback

nicolas
"David Shen [MSFT]" <v-dashen@online.microsoft.com> a écrit dans le message
de news:t68iFu$7JHA.2064@TK2MSFTNGHUB02.phx.gbl...
> Hi nicolas,
>
> To prevent the influence of the known issue in Task Scheduler in Windows
> Server 2008, pleasec refer to the KB 953153 to request the hotfix (fix
> name
> is Fix228945) and apply it on the problematic computer.
>
> Error message when you change the running user context of a scheduled task
> to another domain account on a computer that is running Windows Vista or
> Windows Server 2008: "The specified account name is not valid"
> http://support.microsoft.com/kb/953153
>
> After a reboot of the server, please re-create a scheduled task to launch
> the batch file, you may try select "Run whether user is logged on or not"
> and check the box "Run with highest privileges" in the task properties.
>
> Please test to see if it can be helpful.
>
> Thanks for the co-operation.
>
> David Shen
> Microsoft Online Technical Support
>
RE: pb with a Scheduled Task [message #164531 is a reply to message #164106] Thu, 25 June 2009 21:58 Go to previous message
v-dashen  is currently offline v-dashen
Messages: 32
Registered: July 2009
Member
Hi nicolas,

I haven't heard back from you yet. I am writing to see how everything is
going. I would appreciate if you could get back to me at your earliest
convenience.

David Shen
Microsoft Online Technical Support
Previous Topic:Folder Redirection in OSX
Next Topic:Network Monitor 3.3 will not install on Windows Server 2003 R2
Goto Forum:
  


Current Time: Tue Aug 22 14:49:56 EDT 2017

Total time taken to generate the page: 1.26149 seconds
.:: Contact :: Home ::Sitemap::.

Powered by: FUDforum 3.0.0RC2.
Copyright ©2001-2009 FUDforum Bulletin Board Software