Psshutdown txt file




















Download Microsoft Edge More info. Contents Exit focus mode. PsShutdown v2. Please rate your experience Yes No. Any additional feedback? In this article. Perform the command on the remote computer or computers specified. Specifies optional password for user name. Almost forgot. Did you run it a second time to see if it logged off the last user? I have to allow multiple users to be logged in. Since you are using the -o switch, is sounds like you are just trying to get them to logoff. Will a restart work properly?

If I am kicking users off a machine I will normally restart the machine. I use psexec and the windows shutdown. I found psshutdown a bit a unreliable. JEFF wrote: Since you are using the -o switch, is sounds like you are just trying to get them to logoff. I tried shutdown. Standard line is: shutdown. RoboOx wrote: This is the syntax that i use; psexec. This station will shutdown in the time indicated above" -f That's a bit of a lie What I actually do is; 1.

The vbs deletes the txt file and terminates. RoboOx wrote: Andrew Feist wrote: -t 5 didn't work. That worked great! Thank you! RoboOx wrote: RoboOx wrote: This is the syntax that i use; psexec. Andrew Feist wrote: Well it it worked for what I need anyway. Ok, great! Glad I could help. Thanks for the BA. This topic has been locked by an administrator and is no longer open for commenting.

Two things stand out to me. If your filename has a space in it, that would produce the results you mentioned. Try putting quotes around the file path. I also can't make sense of the "else" statement at the end of your line. Was that a mistake? It should work with the below line instead. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Psshutdown not working in batch files Ask Question. Asked 6 years ago. Active 6 years ago. Viewed times. Starting from the top. Edit:It's worth noting that the file syntax I'm using works almost verbatim with psexec. Improve this question.



0コメント

  • 1000 / 1000