Re: Reboot after running batch file doesn't work

From: Shehzad Khoja [MSFT] (srkhoja_at_online.microsoft.com)
Date: 01/25/05


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.
>>
>>
>> 


Relevant Pages

  • Re: Distribution folder on wrong drive
    ... The option you specify in the console is only were the compressed packages ... SMS itself installed in the drive I wanted, ... This has happened on 2 of 22 secondary sites. ...
    (microsoft.public.sms.setup)
  • Email to SMS in UK?
    ... Do Orange or O2 offer a service where I could specify an email address to ... send to and this email would be sent to the SMS gateway for want of a better ... As a secondary consideration it would be good if there were an Outlook ... plug-in from the same supplier so it gives me the option of sending an SMS ...
    (uk.telecom.mobile)
  • Re: need help on some issues with SMS and security
    ... Can you specify which version of SMS you are using and what type of client? ... I would like to know how I can add Authenticated User to have rights to ...
    (microsoft.public.sms.swdist)
  • Re: SMS from Ron Paul
    ... could specify whom he/she receives SMS and MMS messages from. ... 100% of mine come from family members, which is all I want to see. ...
    (alt.cellular.verizon)
  • Re: Delete dataset nonvsam
    ... Specify data set name, mask, or '**' ... type del next to the dataset and hit enter ... Subject: Delete dataset nonvsam ... I have several datasets nonvsam controlled by SMS that are uncataloged, they are lost on the disks, tried to delete catalogued and SMS does not allow. ...
    (bit.listserv.ibm-main)