Re: Hibernate once - resume many
- From: "KM" <konstmor@xxxxxxxxxxxxxxxx>
- Date: Thu, 31 Mar 2005 09:52:56 -0800
Slobodan,
We must have been talking about diferrent things. I was referring to particulary StandBy/Hibernate buttons on the Shutdown (Turn
Off) dialog and lack of the way to remove those. The original poster was not intending to remove the sutdown completely.
There is no doubt you can remove the shutdown option off the Explorer menu (start menu, e.g.) with the Explorer shell policies.
Regards,
Konstantin
> Konstantin,
>
> Just now I have tried this (or something else I will see) from gpedit.msc
>
> gpedit.msc
> Computer Configuration
> Windows Settings
> Security Settings
> User Rights Assignement
> Shut down the system
>
> If your account is not in this list you won't be able to acquire SE_SHUTDOWN_NAME regardless whether you are admin account or not.
> Also GINA will remove dialog for restart/shutdown etc completely.
>
> You could do hibernation with system account credential or with credentials of some other account that is on the list.
>
> Regards,
> Slobodan
>
>
> "KM" <konstmor@xxxxxxxxxxxxxxxx> wrote in message news:%233mckpbNFHA.3492@xxxxxxxxxxxxxxxxxxxxxxx
>> Slobodan,
>>
>>> Are you sure that it enables the SE_SHUTDOWN_NAME privilege?
>>
>> Yes, I am :-( I saw the calls to
>> OpenThreadToken/LookupPrivilegeValue(SE_SHUTDOWN_NAME)/AdjustTokenPrivileges(SE_PRIVILEGE_ENABLED) on the trace.
>>
>> This is really not an embedded design but on XP Pro it is likely for good becuase regardless of the current user
>> rights&priviledges you want them to have all the buttons enabled on the Gina dialogs.
>>
>> Regards,
>> Konstantin
>>
>>> I think that this should work on principle if you have enough rights then you can take SE_SHUTDOWN_NAME as we do when we want to
>>> reboot.
>>>
>>> If we revoke that rights then you should not be able to associate SE_SHUTDOWN_NAME right with your process token.
>>> This should be tested or at least analyzed from doc I'm talking here from head and it is 8:00 AM I'm too much dizzy to thinks
>>> straight.
>>>
>>> Regards,
>>> Slobodan
>>>
>>> "KM" <konstmor@xxxxxxxxxxxxxxxx> wrote in message news:uEt06QbNFHA.3668@xxxxxxxxxxxxxxxxxxxxxxx
>>>> Slobodan,
>>>>
>>>> Although it is a good idea I don't think it is going to work.
>>>> From my investigation it seeemed that that MS Gina code that is responsible for the "Turn Off" dialog requests for (enables)
>>>> the SE_SHUTDOWN_NAME privilege for the current user temporarily prior and while making the call to NtPowerInformation :-(
>>>>
>>>> I guess this is one more feature to be requested for XPe to make it more *embedded*.
>>>>
>>>> Regards,
>>>> Konstantin
>>>>
>>>>> Alex,
>>>>>
>>>>> I have no enough time right now to try to figure this out (test this), but please try following and let us know:
>>>>>
>>>>> Use LsaRemoveAccountRights to revoke SE_SHUTDOWN_NAME privilege for all user accounts including admin accounts except the
>>>>> account which privileges you will use for hibernation.
>>>>> Or after HORM resume you can revoke this right for current user.
>>>>>
>>>>> In registry I think that this info is stored in HKLM\SECURITY\Policy\Accounts\AccountSID.
>>>>>
>>>>> Have fun with this and let us know if you figured this out.
>>>>>
>>>>> Regards,
>>>>> Slobodan
>>>>>
>>>>>
>>>>> "KM" <konstmor@xxxxxxxxxxxxxxxx> wrote in message news:eGPPsbXNFHA.1476@xxxxxxxxxxxxxxxxxxxxxxx
>>>>>> Alex,
>>>>>>
>>>>>> Good catch. I'd also love to know how they were thinking to accomplish that. Unless they talk about a custom shell there
>>>>>> where we
>>>>>> create the "shutdown" menu ourselves, I don't know an easy way to remove the Hibernate/Standby options (buttons) off the
>>>>>> Explorer
>>>>>> standard shutdown dialog (more specifically, Winlogon/Gina).
>>>>>>
>>>>>> If you find a way, let us know here. That would be an interesting finding.
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>> KM, BSquare Corp.
>>>>>>
>>>>>>
>>>>>>> Thanks for the help, please take a look at the following. In Target
>>>>>>> Designer, please search under Help for "Design Considerations for using EWF
>>>>>>> with Hibernation". The second paragraph under the first bullet recommends
>>>>>>> removing the Hibernation option from the Shutdown menu. It does not say how
>>>>>>> to accomplish this task.
>>>>>>>
>>>>>>> "KM" wrote:
>>>>>>>
>>>>>>> > Alec,
>>>>>>> >
>>>>>>> > Yes, it will certainly disable HORM.
>>>>>>> >
>>>>>>> > Unfortunately, the dialog you are asking about is a part of MS Gina. Without replacing the Winlogon's GINA I don't know
>>>>>>> > any easy
>>>>>> and
>>>>>>> > legal way to "change" the button layout on the dialog.
>>>>>>> > The dialog shows the Hibernate and StandBy button querying to NtPowerInformation to check whether the Hibernate and
>>>>>>> > StandBy
>>>>>> features
>>>>>>> > supported. There is no registry control of the button appearance :-(
>>>>>>> >
>>>>>>> > --
>>>>>>> > Regards,
>>>>>>> > KM, BSquare Corp.
>>>>>>> >
>>>>>>> >
>>>>>>> > > Won't that disable my hibernate once - resume many?
>>>>>>> > >
>>>>>>> > > "KM" wrote:
>>>>>>> > >
>>>>>>> > > > Alec,
>>>>>>> > > >
>>>>>>> > > > Just disable the Hibernation support at run time (power applet, IIRC) or in TD Configuration on HAL (PC) component
>>>>>>> > > > settings
>>>>>>> > page.
>>>>>>> > > >
>>>>>>> > > > --
>>>>>>> > > > Regards,
>>>>>>> > > > KM, BSquare Corp.
>>>>>>> > > >
>>>>>>> > > > PS. The post subject sounded confusing and not related to the post itself. Let us know if you meant something else.
>>>>>>> > > >
>>>>>>> > > > > Does anyone know how to remove the hibernate option from the Power Off
>>>>>>> > > > > options window? I only want "Turn Off" and "Restart" as options.
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
.
- Follow-Ups:
- Re: Hibernate once - resume many
- From: Slobodan Brcin \(eMVP\)
- Re: Hibernate once - resume many
- References:
- Hibernate once - resume many
- From: Alec C
- Re: Hibernate once - resume many
- From: KM
- Re: Hibernate once - resume many
- From: Alec C
- Re: Hibernate once - resume many
- From: KM
- Re: Hibernate once - resume many
- From: Alex C
- Re: Hibernate once - resume many
- From: KM
- Re: Hibernate once - resume many
- From: Slobodan Brcin \(eMVP\)
- Re: Hibernate once - resume many
- From: KM
- Re: Hibernate once - resume many
- From: Slobodan Brcin \(eMVP\)
- Re: Hibernate once - resume many
- From: KM
- Re: Hibernate once - resume many
- From: Slobodan Brcin \(eMVP\)
- Hibernate once - resume many
- Prev by Date: Re: Removing CF from IDE Bus
- Next by Date: Re: Missing Components - Windows XP Embedded
- Previous by thread: Re: Hibernate once - resume many
- Next by thread: Re: Hibernate once - resume many
- Index(es):