scheduled shutdown

  • Thread starter Howard - JC Publishing
  • Start date
H

Howard - JC Publishing

I want to setup a shutdown command using schedule. When I run it something
comes up on the screen very briefly and then nothing. Shutdown does not run.
Could this be a permission issue? I know how to make changes through
gpedit.msc when logged in as an administrator but I cannot find anything
about shutdown permissions.

Thank you.
 
L

Lanwench [MVP - Exchange]

Howard - JC Publishing said:
I want to setup a shutdown command using schedule. When I run it
something comes up on the screen very briefly and then nothing.
Shutdown does not run. Could this be a permission issue?

Could be (I'd presume you were doing this as an administrator, though), but
how'd you run it? In a command window?

Since you say "schedule" - use a batch file & task scheduler, and
supply admin credentials to run the task.

In the batch file,

shutdown -r -t 3

....will shut down the PC in 3 seconds, and then restart it

shutdown -t 10

will shut down in 10 seconds.

Etc.

In a command prompt run shutdown /? for all the parameters.
 
A

Avi Greenbury

I want to setup a shutdown command using schedule. When I run it
something comes up on the screen very briefly and then nothing.
Shutdown does not run.
Could this be a permission issue? I know how to make changes through
gpedit.msc when logged in as an administrator but I cannot find anything
about shutdown permissions.

How are you scheduling the shutdown?
 
V

VanguardLH

"Howard - JC Publishing"
When I run it something comes up on the screen very briefly and then
nothing.

You are running a console-mode program. It doesn't have a GUI window.
Its stdout goes to the console window. When you exit the program, the
console window closes. So when 'shutdown' exits, its console window
closes. Run the program in a command shell (aka DOS shell).
 
H

Howard - JC Publishing

I am using Schedule Tasks with the shutdown -s command. I tried just
entering that command in the CMD window and get a permission error message.
 
L

Lanwench [MVP - Exchange]

Howard - JC Publishing said:
I am using Schedule Tasks with the shutdown -s command. I tried just
entering that command in the CMD window and get a permission error
message.

Please see my reply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top