[windows2000] Re: batch file question

  • From: Mark Cook <mc@xxxxxxxxxx>
  • To: "'windows2000@xxxxxxxxxxxxx'" <windows2000@xxxxxxxxxxxxx>
  • Date: Tue, 9 Nov 2004 11:30:58 -0000

Ah well, the system process cannot access remote systems unless you
specifically enable this via GPO of Local Security Poilicies (not a good
idea to do this, hence it's off by default) !  Therefore, you need to do
something else such as this (use the RUNAS command)
1.      create the script to copy the files across and verify it works from
an admin account
2.      create a second script to start the first and schedule that.  In the
second script use the runas command to start the actual copy script in the
context of another user
This way you can use the scheduler you need/want but the script will run
with the account you need also !

From: Anthony Paillard [mailto:anthony.paillard@xxxxxxxxxx] 
Sent: 08 November 2004 11:25
To: windows2000@xxxxxxxxxxxxx
Subject: [windows2000] Re: batch file question
Whitch OS are you using. From windows 2000 OS, you schedule a job every x
minutes, or hour, or what you want.
Try advanced button ond day and hour schedule, and use repeat task every ...
Anthony Paillard 
----- Original Message ----- 
From: Dennis <mailto:dennis.appelboom@xxxxxxxxxx>  Appelboom 
To: windows2000@xxxxxxxxxxxxx <mailto:windows2000@xxxxxxxxxxxxx>  
Sent: Tuesday, November 09, 2004 11:50 AM
Subject: [windows2000] Re: batch file question
Hi Angus,
Problem is that I can't really use the task scheduler, since it can only
schedule jobs for hours or days, and I want it to run every 5 minutes.....
But I will try to find another scheduler tool that will allow me to add
credentials and has an option to schedule tasks every 5 minutes.


From: Angus Macdonald [mailto:Angus.Macdonald@xxxxxxxxxxxxxxxxxxx] 
Sent: dinsdag 9 november 2004 11:35
To: windows2000@xxxxxxxxxxxxx
Subject: [windows2000] Re: batch file question
Start the scheduled job with a domain account that has access to the remote
The old scheduler (using the AT command) ran all scheduled jobs under a
single login but the newer Task Scheduler uses per-job credentials.
-----Original Message-----
From: Dennis Appelboom [mailto:dennis.appelboom@xxxxxxxxxx]
Sent: 09 November 2004 10:29
To: windows2000@xxxxxxxxxxxxx
Subject: [windows2000] batch file question
I am trying to copy over a file from one workgroup server to another with a
batch script. 
There is a share on the target server, and I use the following to copy over
the file:
Copy c:\sourcedire\sourcefile  <file:///\\targetserver\share>
This works fine when I start the batch script manually, but when I try to
schedule it, it doesn't work.
I even added the full path name for the copy command, but that doesn't help
I guess that is has to do with the fact that the system account runs the
script when scheduled, and that it might cause problems.....
Is there something obvious that I am overlooking, or do I need to do this
Gallai'r e-bost yma gynnwys gwybodaeth gyfrinachol a/neu ddeunydd
hawlfraint. Os ydych chi'n meddwl eich bod wedi derbyn yr e-bost yma drwy
gamgymeriad rydym yn ymddiheuro am hyn; peidiwch os gwelwch yn dda â
datgelu, anfon ymlaen, printio, copïo na dosbarthu gwybodaeth yn yr e-bost
yma na gweithredu mewn unrhyw fodd drwy ddibynnu ar ei gynnwys: gwaherddir
gwneud hynny'n gyfan gwbl a gallai fod yn anghyfreithlon. Rhowch wybod i'r
anfonwr fod y neges yma wedi mynd ar goll cyn ei dileu.
Mae unrhyw safbwynt neu farn a gyflwynir yn eiddo i'r awdur ac nid ydynt o
anghenraid yn cynrychioli safbwynt neu farn Ymddiriedolaeth GIG Gogledd
Orllewin Cymru.
Gallai cynnwys yr e-bost yma gael ei ddatgelu i'r cyhoedd o dan Gôd Bod yn
Agored y GIG neu Ddeddf Rhyddid Gwybodaeth 2000. Nid oes modd gwarantu
cyfrinachedd y neges ac unrhyw ateb. 
Bydd y neges yma ac unrhyw ffeiliau cysylltiedig wedi cael eu gwirio gan
feddalwedd canfod firws cyn eu trosglwyddo. Ond rhaid i'r sawl sy'n derbyn
wirio rhag firws ei hun cyn agor unrhyw ymgysylltiad. Nid yw'r
Ymddiriedolaeth yn derbyn unrhyw gyfrifoldeb am unrhyw golled neu niwed a
allai gael ei achosi gan firws meddalwedd.
This e-mail may contain confidential information and/or copyright material.
If you believe that you have received this e-mail in error please accept our
apologies; please do not disclose, forward, print, copy or distribute
information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful. Please inform the
sender that this message has gone astray before deleting it.
Any views or opinions presented are to be understood as those of the author
and do not necessarily represent those of the North West Wales NHS Trust.
The contents of this e-mail may be subject to public disclosure under the
NHS Code of Openness or the Freedom of Information Act 2000. The
confidentiality of the message and any reply cannot be guaranteed.
This message and any attached files will have been checked with virus
detection software before transmission. However, recipients must carry out
their own virus checks before opening any attachment. The Trust accepts no
liability for any loss or damage, which may be caused by software viruses.

Other related posts: