Re: Shutdown & 'Program Restarts Computer'

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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


.



Relevant Pages

  • Re: Shutdown & Program Restarts Computer
    ... >>restart the computer. ... >>test version of my main script which just has the shutdown bit in and I ... >>the 'Execute Program' be hidden and normal. ... >>Help me SMS Installer people, ...
    (microsoft.public.sms.installer)
  • Re: Shutdown & Program Restarts Computer
    ... >restart the computer. ... >test version of my main script which just has the shutdown bit in and I ... >the 'Execute Program' be hidden and normal. ... >Help me SMS Installer people, ...
    (microsoft.public.sms.installer)
  • Re: Detect logoff or shutdown
    ... computer is shutting down or restarting from a VBScript running as a ... can FBSL tell whether or not the shutdown is a power off ... shutdown using the shutdown GPO script method. ... they select 'Restart', I could write a startup script to restart the ...
    (microsoft.public.scripting.vbscript)
  • Shutdown & Program Restarts Computer
    ... I'm trying to get a shutdown command in an SMS Installer Script to ... restart the computer. ... the 'Execute Program' be hidden and normal. ... Help me SMS Installer people, ...
    (microsoft.public.sms.installer)
  • RE: Finetuning: Remote Shutdown with WMI, some errors occur.
    ... Also we would like that a workstation that's locked is also shutdown by this ... script to shutdown all approx. ... Dim strBase, strFilter, strAttributes, strQuery, objRecordSet ... Const OpenAsDefault = -2 ...
    (microsoft.public.windows.server.scripting)