IC_Clearly wrote:
> Ingeborg wrote in message
>> IC_Clearly wrote:
>>
>> > I am attempting to set up an automatic shut down of windows. I am
>> > using the following with the scheduler:
>> > rundll32.exe shell32.dll,SHExitWindowsEx 2
>> >
>> > Here's the problem. The utility runs at the designated time, BUT
>> > it will not close down the shared network connections. The
>> > computer waits on a manual entry to okay the network disconnects.
>> > So, the auto shut down will not complete the process.
>> >
>> > Does anyone have a suggestion?
>> >
>>
>> Have a look here:
>> <http://www.shareup.com/dadioh/reboot-shut-down-shortcuts.html>
>>
>> SHExitWindowsEx 2 should reboot your computer. To shutdown it,
>> forcing all apps to close, use SHExitWindowsEx 5
>
> Thanks for the tip, BUT that will not work. I can do a forced shut
> down (#5) but when I do a forced shut down Windows will not close
> completely down. The desktop will go away and the W98 screen will
> appear with a message at the bottom that Windows Is Shutting Down.
> Problem is Windows *never* shuts down. I must hit the power button to
> complete the shut down. Then when I restart the system does a scan and
> there are always temp files after a forced shut down that must be
> manually attended to. I am trying to do a restart in a *complete*
> unattended mode.
I see. You can try to execute a 'net stop' or 'net stop workstation',
maybe with the '/YES' switch, before you call SHExitWindowsEx. This
should shutdown all network connections.
|