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