Re: Reboot after running batch file doesn't work
From: Shehzad Khoja [MSFT] (srkhoja_at_online.microsoft.com)
Date: 01/25/05
- Next message: yun: "Re: How to use BAT file in SMS 2003 to update Register in client P"
- Previous message: Richard: "Re: Reboot after running batch file doesn't work"
- In reply to: Richard: "Re: Reboot after running batch file doesn't work"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 24 Jan 2005 17:57:54 -0800
You need to specify the time you think it will take to run this program in
program properties. Currenlty you have specifed 15 minutes. By default, it
is set to 'Unknown' which mapps to 12 hours.
Since program is taking longer than specified by the admin, SMS considers
this as failure and therefore, is not rebooting the machine.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Richard" <Richard@discussions.microsoft.com> wrote in message
news:58B48E27-E47F-4853-A622-0F0C0E5029A3@microsoft.com...
>I specified SMS to Restart the computer when complete. However, it's timing
> out with the following error message:
>
> The program for advertisement "DOF2000E" ("DOF00008" - "NTFS Convert")
> exceeded the maximum allowed run time of 15 minute(s). Systems Management
> Server (SMS) has stopped monitoring the program, and is unable to
> determine
> the status of the program. SMS will not automatically attempt to run this
> program again.
>
> Possible causes: The program might have taken longer to run than expected,
> or the program might have experienced problems while running.
> Possible solution: Make sure the maximum allowed run time specified for
> the
> program allows enough time for the program to finish running. If the
> program
> requires user input, ensure the program properties allow the user to
> interact
> with the program.
>
> I specified the run time to be 15 minutes simply because all this is
> supposed to do is invoke the convert command and reboot the system. 15
> minutes is more than enough time for this job (I once set it to unknown
> and
> it just took forever doing nothing, waiting for the timeout period).
>
> So it's not getting any exit code at all. Why would this be? It's just a
> simple .wsf file that calls a batch file which calls a text file.
>
> "Shehzad Khoja [MSFT]" wrote:
>
>> 1 - Have you specified in program settings to 'SMS restarts' as after
>> running action?
>> 2 - Did the program complete with a success exit code?
>>
>>
>> --
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>>
>> "Richard" <Richard@discussions.microsoft.com> wrote in message
>> news:76EC783B-CAB4-47BC-B4A4-7DD52073DA0D@microsoft.com...
>> > I've got roughly 300 or so PCs that are running Windows 2K. We're at
>> > the
>> > point that we want to upgrade them to Windows XP. I've successfully set
>> > up
>> > the OSD FP and that works well on NTFS boxes. The problem is that most
>> > of
>> > my
>> > current PCs are FAT32 (I would say 95% are FAT32).
>> >
>> > My question is: What's the best way to go about doing the conversion?
>> > I've
>> > got a .wsf file that does a check on C: that looks to see if the
>> > filesystem
>> > is NTFS. If it's not, it runs a batch file that contains "Convert C:
>> > /FS:NTFS" and points to a txt file that simply has the letter y with a
>> > carriage return.
>> >
>> > I've tested the above method and it works if I manually go to the
>> > directory
>> > it's stored in and run the .wsf. However, when I use SMS, I cannot get
>> > SMS
>> > to
>> > restart the PC. Is this because I don't have any MIF files to say
>> > whether
>> > or
>> > not this process is completed? I'm pretty lost now and am wasting a ton
>> > of
>> > time playing with this. Any advice would be appreciated.
>>
>>
>>
- Next message: yun: "Re: How to use BAT file in SMS 2003 to update Register in client P"
- Previous message: Richard: "Re: Reboot after running batch file doesn't work"
- In reply to: Richard: "Re: Reboot after running batch file doesn't work"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|