472,984 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,984 software developers and data experts.

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 3714
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Julien | last post by:
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...
1
by: Doug Ly | last post by:
Hi , connect to Blah user blah using blah ------------------------------------------------------------------------ Database Connection Information Database server = DB2/6000 7.2.3...
1
by: bjbounce2002 | last post by:
Hello, I am using forms with command buttons to close form or run action queries. The error messages such as "Null value in required field" or "duplicate value in primary key" are suppressed....
0
Gilfindore
by: Gilfindore | last post by:
I am working on an uninstaller for a small game that I am working on and have managed to make it work except on the uninstaller itself. I am using windows XP Media Center and VB.Net 2003. I have...
6
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post by:
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick...
1
by: CoolFactor | last post by:
MY CODE IS NEAR THE BOTTOM I want to export this Access query into Excel using a command button on an Access form in the following way I describe below. Below you will find the simple query I am...
3
by: gra | last post by:
Hi Access 2002 I have a Command Buton using some VB code to open an Excel spreadsheet. However, when the spreadsheet opens it doesn't refresh the data. The spreadsheet is a pivot table which...
0
debasisdas
by: debasisdas | last post by:
Using Merge command (supported version 9 onwards) ======================================== Used to go for insert/update in a single command based on some condition. Example #1 merge...
13
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
This is a follow-up to my post "Silverlight video doesn't work when file is streamed from handler in ASP.net" at...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.