468,513 Members | 1,751 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

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

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.
Nov 20 '05 #1
1 3552
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/fr...shutdown.shtml

Otherwise I'm not sure what to offer.

Hope this helps
Jay

"Julien" <an*******@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
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.

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Doug Ly | last post: by
6 posts views Thread by =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post: by
debasisdas
reply views Thread by debasisdas | last post: by
13 posts views Thread by =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.