Re: Shutdown & 'Program Restarts Computer'
- From: "TerryM" <terry@xxxxxxxxxx>
- Date: Mon, 6 Jun 2005 12:20:12 -0700
I haven't really looked at your script you pasted but one thing I noticed
that may work for you is running shutdown through the cmd.exe.
So,
execute program: cmd.exe
command line: /c shutdown.exe -r -t 00
Let me know if it still doesn't work.
Terry
"Stephen" <buddycwll@xxxxxxxxxxx> wrote in message
news:1118068152.271764.177700@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> Maybe it's just me but I'm having one of those crazy moments when
> something so simple just won't work although admittedly it's the
> first time I've tried such a thing.
>
> I'm trying to get a shutdown command in an SMS Installer Script to
> restart the computer. Simple eh? Well, it should be! I've made a small
> test version of my main script which just has the shutdown bit in and I
> still cannot get it to work.
>
> If I run the script manually it restarts the computer. Run it via an
> SMS Advert (Pull or Push) and nothing happens.
>
> I've fiddled with everything! In the script; I've exited the
> installation with 1641 (for restarts) and 0 (for success) and I've had
> the 'Execute Program' be hidden and normal. In SMS, I've tried having
> the program run 'normal' and 'hidden' and have it set to 'Program
> restarts computer'. I've even turned on the 'Allow Users to Interact
> with program' setting. Nothing makes a difference!
>
> Where am I going wrong here, all I want is for my shutdown command to
> restart the program :(
>
> The script is simple:
>
> item: Check Disk Space
> end
> item: Execute Program
> Pathname=%SYS32%\shutdown.exe
> Command Line=-r -t 00
> Flags=00000010
> end
> item: Exit Installation
> Variable=0
> Flags=0
> end
>
> Help me SMS Installer people, you're my only hope!
>
> Thanks,
> Stephen.
>
.
- Follow-Ups:
- Re: Shutdown & 'Program Restarts Computer'
- From: Stephen
- Re: Shutdown & 'Program Restarts Computer'
- References:
- Shutdown & 'Program Restarts Computer'
- From: Stephen
- Shutdown & 'Program Restarts Computer'
- Prev by Date: Shutdown & 'Program Restarts Computer'
- Next by Date: SMS installation/deployment.
- Previous by thread: Shutdown & 'Program Restarts Computer'
- Next by thread: Re: Shutdown & 'Program Restarts Computer'
- Index(es):
Relevant Pages
|