psshutdown issue: shutdowns computers when using a logoff command!!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

I created a VB.Net program that retrieves particular computers names from the Active Directory and that then logs off all those machines every night (via a Scheduled Task) using the well-known already-existing "psshutdown" program
I am using the following syntax in order to perform the logoff
"psshutdown -f -o -u MyUsername -p MyPassword \\MyMachine

The first time I use it in order to log off a machine that has not been logged off yet, then it works fine
But if I reuse the same command (that you have above!) to a computer that has already been logged off, then this causes the computer to be shut down (with a message on the screen that looks like the following: "It is now safe to turn off your computer"), which I don't want!!!!
Is this a bug
Is there any aother way using psshutdown or another program in order to be able to log off a machine when not logged off yet and not to do anything when not yet logged on

I would really appreciate if someone could give me a hand on this matter
Thank you in advance
Julien.
 
Julien,
It would seem that psshutdown is a share ware program, have you considered
contacting the author or systinternals for support? (there is a mail to link
for the author on the following page).

http://www.sysinternals.com/ntw2k/freeware/psshutdown.shtml

Otherwise I'm not sure what to offer.

Hope this helps
Jay

Julien said:
Hello!

I created a VB.Net program that retrieves particular computers names from
the Active Directory and that then logs off all those machines every night
(via a Scheduled Task) using the well-known already-existing "psshutdown"
program.
I am using the following syntax in order to perform the logoff:
"psshutdown -f -o -u MyUsername -p MyPassword \\MyMachine"

The first time I use it in order to log off a machine that has not been
logged off yet, then it works fine!
But if I reuse the same command (that you have above!) to a computer that
has already been logged off, then this causes the computer to be shut down
(with a message on the screen that looks like the following: "It is now safe
to turn off your computer"), which I don't want!!!!!
Is this a bug?
Is there any aother way using psshutdown or another program in order to be
able to log off a machine when not logged off yet and not to do anything
when not yet logged on ?
 
Back
Top