Re: SMS 2003 - afterbackup.bat
- From: "Paul Thomsen [MSFT]" <pthomsen@xxxxxxxxxxxxx>
- Date: Mon, 1 Aug 2005 08:05:42 -0700
You could add some error handling to your vbscript and catch the error.
One random theory I can think of is that maybe the afterbackup.bat runs
in the system context of the server, whereas when you run the script it's
with your privs. So when run automatically it's getting 'access denied'
(error code 5) from the other server. If so, you probably need to add the
computer account of the server running the script to the share privileges on
the server receiving the backup.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
<buketwhite@xxxxxxxxx> wrote in message
news:1122895507.111532.288410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi
> I wrote a vb script to do a copy of the backup snapshot for 7
> consecutive days to another server.
> So the afterbackup.bat file calls the vbscript that I wrote.
> I copied the afterbackup.bat file and the vbscript to the
> SMS\inboxes\smsbkup.box folder. Then I scheduled the SMS backup to run.
> I looked in the smsbkup.log file, and I can see that the backup ran
> successfully and then it started the afterbackup.bat file. But it
> didn't do the copy!
> If I run the afterbackup.bat file from the command line it works fine.
> So why doesn't it run when the backup runs?
>
> Any help much appreciated.
>
> Thanks
>
.
- Follow-Ups:
- Re: SMS 2003 - afterbackup.bat
- From: buketwhite
- Re: SMS 2003 - afterbackup.bat
- References:
- SMS 2003 - afterbackup.bat
- From: buketwhite
- SMS 2003 - afterbackup.bat
- Prev by Date: Re: SMS 2003 Management Point error
- Next by Date: Re: SMS 2003 Management Point error
- Previous by thread: SMS 2003 - afterbackup.bat
- Next by thread: Re: SMS 2003 - afterbackup.bat
- Index(es):
Relevant Pages
|