Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > batch File

Reply
 
 
Raghuveer Alapati
Guest
Posts: n/a

 
      05-25-2010
There is a Way to run a Batch file without any 3rd party tools in Windows Server 2003/2008/2010 on System Start Up

Initially Place the required Batch file in a folder

1 . Open IIS (from run (type) inetmgr)

2 . Here under Default website create a Virtual Directory

3 . And point the Virtual directory location to the Folder where the batch file is available

4 . And finish the creation of the virtual directory

5 . Restart the System



As we know that IIS is a part of Windows Management Services , and we created Batch file in a folder which is a part of IIS , and on every system start we will have the IIS running which in turn runs the Batch file at the back end .

I hope this solution might solve many of the people requirements .




Matta wrote:

Re: batch file schedule fails on windows server 2003
02-Apr-07

On Apr 2, 12:18 pm, "Pegasus \(MVP\)" <I...@fly.com> wrote

Sorry, that was my mistake.. with reference to your message I did se
the user to Logon as batch job and after some time when I check onc
again it shows nothing.. it that.. hence once again I posted th
latest information....

Previous Posts In This Thread:

On Friday, March 30, 2007 12:38 AM
Matta wrote:

batch file schedule fails on windows server 2003
Hi

I am scheduling a batch file to start in the midnight (11pm) fo
backup operation. When I come and see in the next morning the schedul
is a fail

The log file says following
-------------------------------------------------
"bkup.job" (bkup.bat) 3/29/2007 11:00:00 PM ** ERROR *
The attempt to log on to the account associated with the task failed
therefore, the task did not run
The specific error is
0x80070569: Logon failure: the user has not been granted th
requested logon type at this computer
Verify that the task's Run-as name and password are valid and tr
again
---------------------------------------------------

I am running the schedule as Administrator and correct password i
set

Another observation, here if I schedule the task in next couple o
hours it works fine
i.e. In the morning at 10 AM if I schedule the task to start at 11A
it works fine

Can anyone tell me why this is happening..

Thanks
Matta

On Friday, March 30, 2007 2:54 AM
Pegasus \(MVP\) wrote:

Re: batch file schedule fails on windows server 2003
"Matta" <> wrote in messag
news: ups.com..

Create a dedicated account and give it sufficient privileges to acces
the folders to be backed up. Now set the policy so that this accoun
can log on as a batch job, then schedule the backup job to run unde
this dedicated account

For testing purposes I would also create a job that is scheduled t
run every five minutes, under the same account, executing the batc
file below. When your backup job fails, does the test job fail too
@echo of
echo %date% %time% >> c:\test.log

On Friday, March 30, 2007 3:48 AM
Matta wrote:

Re: batch file schedule fails on windows server 2003
On Mar 30, 12:54 pm, "Pegasus \(MVP\)" <I...@fly.com> wrote

hi
Thanks for the info..
Created a dedicated account and added it as member of administrato
and backup operators groups
How can I set the account to log on as a batch job, what is th
process

Thank
Matta

On Friday, March 30, 2007 9:00 AM
Pegasus \(MVP\) wrote:

Re: batch file schedule fails on windows server 2003
Local Computer Policy / Computer Configuration / Windows Settings
Security Settings / Local Policy / User Rights / Logon as a batch job.

On Monday, April 02, 2007 12:28 AM
Matta wrote:

Re: batch file schedule fails on windows server 2003
On Mar 30, 7:00 pm, "Pegasus \(MVP\)" <I...@fly.com> wrote

Hi

After adding the user to Logon as a batch job, I am still seeing th
same error

"backup.job" (vssbkup.bat) 4/2/2007 1:00:00 AM ** ERROR *
The attempt to log on to the account associated with the task failed
therefore, the task did not run
The specific error is
0x80070569: Logon failure: the user has not been granted the requeste
logon type at this computer.
Verify that the task's Run-as name and password are valid and try
again.

Regards,
Matta

On Monday, April 02, 2007 2:31 AM
Matta wrote:

Re: batch file schedule fails on windows server 2003
Matta wrote:

Sorry, When I try to add the user to Logon as batch job and clikc
apply, I am seeing following message:

---------------------------
Security Templates
---------------------------
Access is denied.

Failed to save \\adm.key.com\sysvol\adm.key.com\Policies
\{31B2F340-016D-11D2-945F-00C04FB984F9}\Machine\Microsoft\Windows NT
\SecEdit\GptTmpl.inf. Make sure that you have the right permissions to
this object.

---------------------------
OK
---------------------------

Any clues why I am getting this message?

Thanks
Matta

On Monday, April 02, 2007 3:18 AM
Pegasus \(MVP\) wrote:

Re: batch file schedule fails on windows server 2003
"Matta" <> wrote in message
news: oups.com...
schedule
failed,
try
is
of
11AM
access
nt
under
to
batch
too?
job.- Hide quoted text -

Either you are not a domain administrator when you do this,
or else you have a problem with domain policies (about which
I am not well qualified to talk).

I am somewhat concerned about the accuracy of your reporting.
Two hours ago you wrote "After adding the user to Logon as
a batch job . . " whereas now you report that you were unable
to set the batch logon right for this user. The two statements
are clearly contradictory.

On Monday, April 02, 2007 7:50 AM
Matta wrote:

Re: batch file schedule fails on windows server 2003
On Apr 2, 12:18 pm, "Pegasus \(MVP\)" <I...@fly.com> wrote:

Sorry, that was my mistake.. with reference to your message I did set
the user to Logon as batch job and after some time when I check once
again it shows nothing.. it that.. hence once again I posted the
latest information....


Submitted via EggHeadCafe - Software Developer Portal of Choice
MSChart For VB.Net
http://www.eggheadcafe.com/tutorials...for-vbnet.aspx
 
Reply With Quote
 
 
 
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error number 80073712 naraku4656 Windows Update 51 02-18-2010 11:36 PM
Add-Ons "run without permission." OREALLY Internet Explorer 2 01-19-2010 06:09 AM
Leftover folders after Microsoft Update mme000 \(add @yahoo.it to my nick\) Windows Update 21 12-26-2009 10:11 PM
Server 2003 update problem kc66 Windows Update 7 12-22-2009 04:09 PM
error code 0x8024D007 jenny Windows Update 10 11-23-2009 05:48 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59