misc. commandline tools

  • Thread starter Thread starter Maarten
  • Start date Start date
M

Maarten

Hi,

In my test image I added the misc. commandline tools
component (and the cl shell) so I can use shutdown.exe.
However, if I use it ([-s] or [-r]), I get the message:

"...completed succesfully.
A required privilege is not held by the client."

[-f] results in "it's now safe to shutdown"; this is good
enough for now, but I wonder what the problem is with [-s].

Can it be because I used the 'standard pc' instead of
the 'ACPI uniprocessor pc' (suggested by tap)??!

Maarten
 
Hi,

In my test image I added the misc. commandline tools
component (and the cl shell) so I can use shutdown.exe.
However, if I use it ([-s] or [-r]), I get the message:

"...completed succesfully.
A required privilege is not held by the client."

[-f] results in "it's now safe to shutdown"; this is good
enough for now, but I wonder what the problem is with [-s].

Can it be because I used the 'standard pc' instead of
the 'ACPI uniprocessor pc' (suggested by tap)??!

Maarten

This is normal, in XPe you have to use xpepm.exe instead of shutdown.exe.

You can find it as "Power Management Application" in the component tree.

What it can do and how you can use the correcponding dll from within your
own application is explained in the XPe platform online help file.
 
Maarten,

To expand on that, your probably using Minlogon which in essence uses the
system account as the logon session. The system account by default (I
believe) does not have shutdown priviledge. You can use xpepm to call a
shutdown from a minlogon runtime, or shutdown.exe from a winlogon runtime
with a user account.

HTH,

Brad Combs
Imago Technologies

Lucvdv said:
Hi,

In my test image I added the misc. commandline tools
component (and the cl shell) so I can use shutdown.exe.
However, if I use it ([-s] or [-r]), I get the message:

"...completed succesfully.
A required privilege is not held by the client."

[-f] results in "it's now safe to shutdown"; this is good
enough for now, but I wonder what the problem is with [-s].

Can it be because I used the 'standard pc' instead of
the 'ACPI uniprocessor pc' (suggested by tap)??!

Maarten

This is normal, in XPe you have to use xpepm.exe instead of shutdown.exe.

You can find it as "Power Management Application" in the component tree.

What it can do and how you can use the correcponding dll from within your
own application is explained in the XPe platform online help file.
 
Great, this works (and causes the phone to ring, but that
is probably coincidence).

I wonder why the sbs book then suggests this and doesn't
mention the pma comp???!!
-----Original Message-----
Hi,

In my test image I added the misc. commandline tools
component (and the cl shell) so I can use shutdown.exe.
However, if I use it ([-s] or [-r]), I get the message:

"...completed succesfully.
A required privilege is not held by the client."

[-f] results in "it's now safe to shutdown"; this is good
enough for now, but I wonder what the problem is with [- s].

Can it be because I used the 'standard pc' instead of
the 'ACPI uniprocessor pc' (suggested by tap)??!

Maarten

This is normal, in XPe you have to use xpepm.exe instead of shutdown.exe.

You can find it as "Power Management Application" in the component tree.

What it can do and how you can use the correcponding dll from within your
own application is explained in the XPe platform online
help file.
 
Brad,

ExitWindowsEx works just fine with minlogon (system account).

This means that system account owns SE_SHUTDOWN_NAME privilege.

Regards,
Slobodan



Brad Combs said:
Maarten,

To expand on that, your probably using Minlogon which in essence uses the
system account as the logon session. The system account by default (I
believe) does not have shutdown priviledge. You can use xpepm to call a
shutdown from a minlogon runtime, or shutdown.exe from a winlogon runtime
with a user account.

HTH,

Brad Combs
Imago Technologies

Lucvdv said:
Hi,

In my test image I added the misc. commandline tools
component (and the cl shell) so I can use shutdown.exe.
However, if I use it ([-s] or [-r]), I get the message:

"...completed succesfully.
A required privilege is not held by the client."

[-f] results in "it's now safe to shutdown"; this is good
enough for now, but I wonder what the problem is with [-s].

Can it be because I used the 'standard pc' instead of
the 'ACPI uniprocessor pc' (suggested by tap)??!

Maarten

This is normal, in XPe you have to use xpepm.exe instead of shutdown.exe.

You can find it as "Power Management Application" in the component tree.

What it can do and how you can use the correcponding dll from within your
own application is explained in the XPe platform online help file.
 
Sorry, my fault.

shutdown.exe really report this error.

But under system account you can acquire SE_SHUTDOWN_NAME easily and then
call ExitWindowsEx.

Regards,
Slobodan



Brad Combs said:
Ahh, I wasn't sure of that! I just assumed that without the priviledge you
would get a "A required privilege is not held by the client". Good to know
though!

Brad

Slobodan Brcin said:
Brad,

ExitWindowsEx works just fine with minlogon (system account).

This means that system account owns SE_SHUTDOWN_NAME privilege.

Regards,
Slobodan



Brad Combs said:
Maarten,

To expand on that, your probably using Minlogon which in essence uses the
system account as the logon session. The system account by default (I
believe) does not have shutdown priviledge. You can use xpepm to call a
shutdown from a minlogon runtime, or shutdown.exe from a winlogon runtime
with a user account.

HTH,

Brad Combs
Imago Technologies

On Mon, 12 Jan 2004 03:45:19 -0800, Maarten wrote:

Hi,

In my test image I added the misc. commandline tools
component (and the cl shell) so I can use shutdown.exe.
However, if I use it ([-s] or [-r]), I get the message:

"...completed succesfully.
A required privilege is not held by the client."

[-f] results in "it's now safe to shutdown"; this is good
enough for now, but I wonder what the problem is with [-s].

Can it be because I used the 'standard pc' instead of
the 'ACPI uniprocessor pc' (suggested by tap)??!

Maarten

This is normal, in XPe you have to use xpepm.exe instead of shutdown.exe.

You can find it as "Power Management Application" in the component tree.

What it can do and how you can use the correcponding dll from within your
own application is explained in the XPe platform online help file.
 
Ahh, I wasn't sure of that! I just assumed that without the priviledge you
would get a "A required privilege is not held by the client". Good to know
though!

Brad

Slobodan Brcin said:
Brad,

ExitWindowsEx works just fine with minlogon (system account).

This means that system account owns SE_SHUTDOWN_NAME privilege.

Regards,
Slobodan



Brad Combs said:
Maarten,

To expand on that, your probably using Minlogon which in essence uses the
system account as the logon session. The system account by default (I
believe) does not have shutdown priviledge. You can use xpepm to call a
shutdown from a minlogon runtime, or shutdown.exe from a winlogon runtime
with a user account.

HTH,

Brad Combs
Imago Technologies

Lucvdv said:
On Mon, 12 Jan 2004 03:45:19 -0800, Maarten wrote:

Hi,

In my test image I added the misc. commandline tools
component (and the cl shell) so I can use shutdown.exe.
However, if I use it ([-s] or [-r]), I get the message:

"...completed succesfully.
A required privilege is not held by the client."

[-f] results in "it's now safe to shutdown"; this is good
enough for now, but I wonder what the problem is with [-s].

Can it be because I used the 'standard pc' instead of
the 'ACPI uniprocessor pc' (suggested by tap)??!

Maarten

This is normal, in XPe you have to use xpepm.exe instead of shutdown.exe.

You can find it as "Power Management Application" in the component tree.

What it can do and how you can use the correcponding dll from within your
own application is explained in the XPe platform online help file.
 
Maarten,

I forgot to give you the answer to your question.

I have minlogon build with ACPI Multiprocessor PC.

shutdown.exe -f successfully shutdown system and cut the power off.

Regards,
Slobodan
 
Thanks all,

I understand now...it's so obvious once you know it.

fyi
With ACPI uniPC and [-f] my pc cuts the power too.

Maarten
-----Original Message-----
Maarten,

I forgot to give you the answer to your question.

I have minlogon build with ACPI Multiprocessor PC.

shutdown.exe -f successfully shutdown system and cut the power off.

Regards,
Slobodan

Hi,

In my test image I added the misc. commandline tools
component (and the cl shell) so I can use shutdown.exe.
However, if I use it ([-s] or [-r]), I get the message:

"...completed succesfully.
A required privilege is not held by the client."

[-f] results in "it's now safe to shutdown"; this is good
enough for now, but I wonder what the problem is with [- s].

Can it be because I used the 'standard pc' instead of
the 'ACPI uniprocessor pc' (suggested by tap)??!

Maarten


.
 
Back
Top