Windows NT tsshutdn command

  • Thread starter Thread starter Brad Pears
  • Start date Start date
B

Brad Pears

In a power fail situation (we seem to have them often where we are located)
I want to run a script on our terminal server to notify the users of an
imminent shutdown and then actually shut the terminal server down. To do
this I thought I would use the "tsshutdn 120" command to shut the terminal
server down in 2 minutes. The actual script this command is embedded in will
not have run until after having already been on UPS battery power for 5
minutes so that should give users plenty of time to get off the system.

However, I want to ensure that the server can be powered back up unattended
by the attached Smart UPS once power is restored. I ahve my UPS configured
to do this once 15% battery power has been attained.

My question is this... Will using the "tsshutdn" command without the
"/powerdown" command simply shut the OS down leaving the machine running or
does it actully shut the server right down? If it shuts right down, then the
UPS will be unable to restart the server - which would be a problem if the
power failure is in the evening and there is no one here to power it back
up...

Thanks, Brad
 
I think it does not matter whether you add "/powerdown" or not. In
either case the machine shuts down just as if you would use the
command start -> shutdown.

I hope this helps.

Helge

On 22 Aug., 21:30, "Brad Pears" <br...@truenorthloghomes.com> wrote:
> In a power fail situation (we seem to have them often where we are located)
> I want to run a script on our terminal server to notify the users of an
> imminent shutdown and then actually shut the terminal server down. To do
> this I thought I would use the "tsshutdn 120" command to shut the terminal
> server down in 2 minutes. The actual script this command is embedded in will
> not have run until after having already been on UPS battery power for 5
> minutes so that should give users plenty of time to get off the system.
>
> However, I want to ensure that the server can be powered back up unattended
> by the attached Smart UPS once power is restored. I ahve my UPS configured
> to do this once 15% battery power has been attained.
>
> My question is this... Will using the "tsshutdn" command without the
> "/powerdown" command simply shut the OS down leaving the machine running or
> does it actully shut the server right down? If it shuts right down, then the
> UPS will be unable to restart the server - which would be a problem if the
> power failure is in the evening and there is no one here to power it back
> up...
>
> Thanks, Brad
 
Do you mean APC SmartUPS? That comes with manegement software,
PowerChute, which you can configure to do all this.
_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

Helge Klein <Helge.Klein@googlemail.com> wrote on 22 aug 2007 in
microsoft.public.windows.terminal_services:

> I think it does not matter whether you add "/powerdown" or not.
> In either case the machine shuts down just as if you would use
> the command start -> shutdown.
>
> I hope this helps.
>
> Helge
>
> On 22 Aug., 21:30, "Brad Pears" <br...@truenorthloghomes.com>
> wrote:
>> In a power fail situation (we seem to have them often where we
>> are located) I want to run a script on our terminal server to
>> notify the users of an imminent shutdown and then actually shut
>> the terminal server down. To do this I thought I would use the
>> "tsshutdn 120" command to shut the terminal server down in 2
>> minutes. The actual script this command is embedded in will
>> not have run until after having already been on UPS battery
>> power for 5 minutes so that should give users plenty of time to
>> get off the system.
>>
>> However, I want to ensure that the server can be powered back
>> up unattended by the attached Smart UPS once power is restored.
>> I ahve my UPS configured to do this once 15% battery power has
>> been attained.
>>
>> My question is this... Will using the "tsshutdn" command
>> without the "/powerdown" command simply shut the OS down
>> leaving the machine running or does it actully shut the server
>> right down? If it shuts right down, then the UPS will be unable
>> to restart the server - which would be a problem if the power
>> failure is in the evening and there is no one here to power it
>> back up...
>>
>> Thanks, Brad
 
Yes, that is exactly what I as talking about... In the powerchute business
edition software you can have a script run as part of the shutdown process.
I was just thinking that running a script which issues the "tsshutdn"
command might more gracefully shut the terminal server down than what the
Powerchute software would do. (but maybe I am wrong?) Anyway, I think I
will just have to stick with APC shutting the server down itself as it
appears that "tsshutdn" will shut the computer right off - thus meaning that
APC can not restart the server once power is restored. At least that is what
they told me at APC!

Thanks, Brad

"Vera Noest [MVP]" <vera.noest@remove-this.hem.utfors.se> wrote in message
news:Xns9994E3A8966D4veranoesthemutforsse@207.46.248.16...
> Do you mean APC SmartUPS? That comes with manegement software,
> PowerChute, which you can configure to do all this.
> _________________________________________________________
> Vera Noest
> MCSE, CCEA, Microsoft MVP - Terminal Server
> TS troubleshooting: http://ts.veranoest.net
> ___ please respond in newsgroup, NOT by private email ___
>
> Helge Klein <Helge.Klein@googlemail.com> wrote on 22 aug 2007 in
> microsoft.public.windows.terminal_services:
>
>> I think it does not matter whether you add "/powerdown" or not.
>> In either case the machine shuts down just as if you would use
>> the command start -> shutdown.
>>
>> I hope this helps.
>>
>> Helge
>>
>> On 22 Aug., 21:30, "Brad Pears" <br...@truenorthloghomes.com>
>> wrote:
>>> In a power fail situation (we seem to have them often where we
>>> are located) I want to run a script on our terminal server to
>>> notify the users of an imminent shutdown and then actually shut
>>> the terminal server down. To do this I thought I would use the
>>> "tsshutdn 120" command to shut the terminal server down in 2
>>> minutes. The actual script this command is embedded in will
>>> not have run until after having already been on UPS battery
>>> power for 5 minutes so that should give users plenty of time to
>>> get off the system.
>>>
>>> However, I want to ensure that the server can be powered back
>>> up unattended by the attached Smart UPS once power is restored.
>>> I ahve my UPS configured to do this once 15% battery power has
>>> been attained.
>>>
>>> My question is this... Will using the "tsshutdn" command
>>> without the "/powerdown" command simply shut the OS down
>>> leaving the machine running or does it actully shut the server
>>> right down? If it shuts right down, then the UPS will be unable
>>> to restart the server - which would be a problem if the power
>>> failure is in the evening and there is no one here to power it
>>> back up...
>>>
>>> Thanks, Brad
 
Yes, I think APC is right. tsshutdn is not what you want in this
situation.
But you can let PowerChute do the notifications to your users as
well, and you could run a script which resets all sessions before
PowerChute shuts the server down.
I don't think that it will be much of a difference to the user
data, if there are open sessions, but it might be a bit more
gracefully to the server when the sessions are gone before the
server shuts down.
_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

"Brad Pears" <bradp@truenorthloghomes.com> wrote on 24 aug 2007 in
microsoft.public.windows.terminal_services:

> Yes, that is exactly what I as talking about... In the
> powerchute business edition software you can have a script run
> as part of the shutdown process. I was just thinking that
> running a script which issues the "tsshutdn" command might more
> gracefully shut the terminal server down than what the
> Powerchute software would do. (but maybe I am wrong?) Anyway, I
> think I will just have to stick with APC shutting the server
> down itself as it appears that "tsshutdn" will shut the
> computer right off - thus meaning that APC can not restart the
> server once power is restored. At least that is what they told
> me at APC!
>
> Thanks, Brad
>
> "Vera Noest [MVP]" <vera.noest@remove-this.hem.utfors.se> wrote
> in message
> news:Xns9994E3A8966D4veranoesthemutforsse@207.46.248.16...
>> Do you mean APC SmartUPS? That comes with manegement software,
>> PowerChute, which you can configure to do all this.
>> _________________________________________________________
>> Vera Noest
>> MCSE, CCEA, Microsoft MVP - Terminal Server
>> TS troubleshooting: http://ts.veranoest.net
>> ___ please respond in newsgroup, NOT by private email ___
>>
>> Helge Klein <Helge.Klein@googlemail.com> wrote on 22 aug 2007
>> in microsoft.public.windows.terminal_services:
>>
>>> I think it does not matter whether you add "/powerdown" or
>>> not. In either case the machine shuts down just as if you
>>> would use the command start -> shutdown.
>>>
>>> I hope this helps.
>>>
>>> Helge
>>>
>>> On 22 Aug., 21:30, "Brad Pears" <br...@truenorthloghomes.com>
>>> wrote:
>>>> In a power fail situation (we seem to have them often where
>>>> we are located) I want to run a script on our terminal server
>>>> to notify the users of an imminent shutdown and then actually
>>>> shut the terminal server down. To do this I thought I would
>>>> use the "tsshutdn 120" command to shut the terminal server
>>>> down in 2 minutes. The actual script this command is embedded
>>>> in will not have run until after having already been on UPS
>>>> battery power for 5 minutes so that should give users plenty
>>>> of time to get off the system.
>>>>
>>>> However, I want to ensure that the server can be powered back
>>>> up unattended by the attached Smart UPS once power is
>>>> restored. I ahve my UPS configured to do this once 15%
>>>> battery power has been attained.
>>>>
>>>> My question is this... Will using the "tsshutdn" command
>>>> without the "/powerdown" command simply shut the OS down
>>>> leaving the machine running or does it actully shut the
>>>> server right down? If it shuts right down, then the UPS will
>>>> be unable to restart the server - which would be a problem if
>>>> the power failure is in the evening and there is no one here
>>>> to power it back up...
>>>>
>>>> Thanks, Brad
 
Back
Top