SIGforum.com    Main Page  Hop To Forum Categories  The Lounge    Anyone good at Windows Powershell?
Go
New
Find
Notify
Tools
Reply
  
Anyone good at Windows Powershell? Login/Join 
Member
Picture of muddle_mann
posted
I want to schedule the log out of my PC workstation.

The command "shutdown -L" will log out of the acct immediately. I want to schedule the command.

I got the shutdown command to work to shut the PC off and use the -s flag and put in number of seconds until shutdown time. Like this:
shutdown –s –t number of seconds

I can't get the -t flag to work with the -l for log out.

Again I'm not talking to a server, I'm scheduling logoff of my workstation PC.

Thanks.



Pissed off beats scared every time…

- Frank Castle
 
Posts: 3818 | Registered: March 03, 2006Reply With QuoteReport This Post
Member
Picture of maladat
posted Hide Post
https://docs.microsoft.com/en-...ws-commands/shutdown

>/l Logs off the current user immediately, with no time-out period. You cannot use /l with /m or /t.

There's probably some schedule command you can use to send the "shutdown /l".
 
Posts: 6319 | Location: CA | Registered: January 24, 2011Reply With QuoteReport This Post
Member
Picture of muddle_mann
posted Hide Post
Thanks. Couldn't get -t or /t for the time out to work with the -L flag...



Pissed off beats scared every time…

- Frank Castle
 
Posts: 3818 | Registered: March 03, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

SIGforum.com    Main Page  Hop To Forum Categories  The Lounge    Anyone good at Windows Powershell?

© SIGforum 2024