Jump to content

scheduled shutdown


Recommended Posts

Guest Howard - JC Publishing
Posted

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.

  • Replies 5
  • Created
  • Last Reply
Guest Lanwench [MVP - Exchange]
Posted

Re: scheduled shutdown

 

Howard - JC Publishing <HowardJCPublishing@discussions.microsoft.com>

wrote:

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

 

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

Guest Avi Greenbury
Posted

Re: scheduled shutdown

 

On Thu, 20 Mar 2008 06:47:02 -0700, Howard - JC Publishing wrote:

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

Guest VanguardLH
Posted

Re: scheduled shutdown

 

"Howard - JC Publishing"

<HowardJCPublishing@discussions.microsoft.com> wrote in message

news:90FC0B11-C57B-45CE-BD24-43D2BCCAB48C@microsoft.com...

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

Guest Howard - JC Publishing
Posted

Re: scheduled shutdown

 

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.

 

 

"Avi Greenbury" wrote:

> On Thu, 20 Mar 2008 06:47:02 -0700, Howard - JC Publishing wrote:

>

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

>

Guest Lanwench [MVP - Exchange]
Posted

Re: scheduled shutdown

 

Howard - JC Publishing <HowardJCPublishing@discussions.microsoft.com>

wrote:

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

>

>

> "Avi Greenbury" wrote:

>

>> On Thu, 20 Mar 2008 06:47:02 -0700, Howard - JC Publishing wrote:

>>

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


×
×
  • Create New...