Start Menu Items Based on User Group

  • Thread starter Thread starter bsma1
  • Start date Start date
B

bsma1

I would like to show the "Run" menu item only when a user with
administrative privlidges is logged in. How do I do that in XPE?
Thanks in advance.
 
You may want to play with the following two registry values:

; Explorer settings
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanc
ed]
"Start_ShowRun"=dword:00000000 ; Allows to show/hide Run on XP Start
menu

; Policies
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explor
er]
"NoRun"=dword:00000001 ; Removes Run command from Start menu

Set those values for all users (HKEY_USERS\.DEFAULT) and set the opposite
values for the user(s) with administrative privileges.

Hope it helps,
KM

b> I would like to show the "Run" menu item only when a user with
b> administrative privlidges is logged in. How do I do that in XPE?
b> Thanks in advance.

With best regards, KM. E-mail: (e-mail address removed)
 
This doesn't seem to be working. Do I need to make any modifications to
the User Interface Core settings? Thanks for your response.
 
No, you don't need to do anything with user interface core since you are
playing with the registry directly (I assume you've got Explorer shell in
your build).

How do you change the registry settings? Have you created a component that
includes the registry or used "Extra" resources in TD?
If you change the registry on target device, please keep in mind that for
those settings to be applied to a specific user you have to log out and log
again in the user account.

J> This doesn't seem to be working. Do I need to make any modifications
J> to the User Interface Core settings? Thanks for your response.

J> KM said:
You may want to play with the following two registry values:
; Explorer settings
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\
Advanc ed]
"Start_ShowRun"=dword:00000000 ; Allows to show/hide Run on
XP Start menu
; Policies
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explor er]
"NoRun"=dword:00000001 ; Removes Run command from Start
menu
Set those values for all users (HKEY_USERS\.DEFAULT) and set the
opposite values for the user(s) with administrative privileges.
Hope it helps,
KM

b>>> I would like to show the "Run" menu item only when a user with
b>>> administrative privlidges is logged in. How do I do that in XPE?
b>>> Thanks in advance.



With best regards, KM. E-mail: (e-mail address removed)
 
Yes I am using the Explorer shell. I've actually tried both ways. First,
I added the proper registry entries to my 2 account components - the 2
entries to enable the run menu item for a component that derives from
the Administrator Account component, and then the 2 entries to disable
the run menu item from a custom component that derives from the User
Account component. Next, I tried simply editing the registry with
regedt32 from within XPE itself (rebooting each time), but I still have
the same result - either both users have the run menu or neither do.
Lastly, I found the key \Software\Microsoft\WindowsNT\Program
Manager\Restrictions\NoRun and set that to 0. I figured this key was a
hold over from NT 3.51, and thus ineffective, but worth a shot anyway.
Any more ideas? Thanks for your help.
No, you don't need to do anything with user interface core since you are
playing with the registry directly (I assume you've got Explorer shell in
your build).

How do you change the registry settings? Have you created a component that
includes the registry or used "Extra" resources in TD?
If you change the registry on target device, please keep in mind that for
those settings to be applied to a specific user you have to log out and log
again in the user account.

J> This doesn't seem to be working. Do I need to make any modifications
J> to the User Interface Core settings? Thanks for your response.

J> KM said:
You may want to play with the following two registry values:
; Explorer settings
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\
Advanc ed]
"Start_ShowRun"=dword:00000000 ; Allows to show/hide Run on
XP Start menu
; Policies
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explor er]
"NoRun"=dword:00000001 ; Removes Run command from Start
menu
Set those values for all users (HKEY_USERS\.DEFAULT) and set the
opposite values for the user(s) with administrative privileges.
Hope it helps,
KM

b>>> I would like to show the "Run" menu item only when a user with
b>>> administrative privlidges is logged in. How do I do that in XPE?
b>>> Thanks in advance.



With best regards, KM. E-mail: (e-mail address removed)
 
That sounds weird. The registry values I mentioned worked perfect for me
here.
Since they are under HKEY_CURRENT_USER they should be applied to a specified
user only.

I am wondering what you meant by "either both users have the run menu or
neither do"? Are you changing the keys under HKEY_CURRENT_USER or
HKEY_USERS\.DEFAULT or HKEY_LOCAL_MACHINE?

I don't think \Software\Microsoft\WindowsNT\Program
Manager\Restrictions\NoRun is getting used under XPP/XPe.

J> Yes I am using the Explorer shell. I've actually tried both ways.
J> First,
J> I added the proper registry entries to my 2 account components - the
J> 2 entries to enable the run menu item for a component that derives
J> from the Administrator Account component, and then the 2 entries to
J> disable the run menu item from a custom component that derives from
J> the User
J> Account component. Next, I tried simply editing the registry with
J> regedt32 from within XPE itself (rebooting each time), but I still
J> have the same result - either both users have the run menu or neither
J> do.
J> Lastly, I found the key \Software\Microsoft\WindowsNT\Program
J> Manager\Restrictions\NoRun and set that to 0. I figured this key was
J> a hold over from NT 3.51, and thus ineffective, but worth a shot
J> anyway.
J> Any more ideas? Thanks for your help.


J>>> This doesn't seem to be working. Do I need to make any
J>>> modifications to the User Interface Core settings? Thanks for your
J>>> response.

J>>> KM said:
You may want to play with the following two registry values:
; Explorer settings
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\
Explorer\
Advanc ed]
"Start_ShowRun"=dword:00000000 ; Allows to show/hide Run on
XP Start menu
; Policies
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\
Policies\
Explor er]
"NoRun"=dword:00000001 ; Removes Run command from Start
menu
Set those values for all users (HKEY_USERS\.DEFAULT) and set the
opposite values for the user(s) with administrative privileges.
Hope it helps,
KM

b>>>>> I would like to show the "Run" menu item only when a user with
b>>>>> administrative privlidges is logged in. How do I do that in XPE?
b>>>>> Thanks in advance.



With best regards, KM. E-mail: (e-mail address removed)
 
I'm changing the HKEY_USERS\.DEFAULT, and not HKEY_LOCAL_MACHINE. Does
it have something to do User Interface Core settings? Thanks for you
help.
That sounds weird. The registry values I mentioned worked perfect for me
here.
Since they are under HKEY_CURRENT_USER they should be applied to a specified
user only.

I am wondering what you meant by "either both users have the run menu or
neither do"? Are you changing the keys under HKEY_CURRENT_USER or
HKEY_USERS\.DEFAULT or HKEY_LOCAL_MACHINE?

I don't think \Software\Microsoft\WindowsNT\Program
Manager\Restrictions\NoRun is getting used under XPP/XPe.

J> Yes I am using the Explorer shell. I've actually tried both ways.
J> First,
J> I added the proper registry entries to my 2 account components - the
J> 2 entries to enable the run menu item for a component that derives
J> from the Administrator Account component, and then the 2 entries to
J> disable the run menu item from a custom component that derives from
J> the User
J> Account component. Next, I tried simply editing the registry with
J> regedt32 from within XPE itself (rebooting each time), but I still
J> have the same result - either both users have the run menu or neither
J> do.
J> Lastly, I found the key \Software\Microsoft\WindowsNT\Program
J> Manager\Restrictions\NoRun and set that to 0. I figured this key was
J> a hold over from NT 3.51, and thus ineffective, but worth a shot
J> anyway.
J> Any more ideas? Thanks for your help.


J>>> This doesn't seem to be working. Do I need to make any
J>>> modifications to the User Interface Core settings? Thanks for your
J>>> response.

J>>> KM said:
You may want to play with the following two registry values:
; Explorer settings
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\
Explorer\
Advanc ed]
"Start_ShowRun"=dword:00000000 ; Allows to show/hide Run on
XP Start menu
; Policies
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\
Policies\
Explor er]
"NoRun"=dword:00000001 ; Removes Run command from Start
menu
Set those values for all users (HKEY_USERS\.DEFAULT) and set the
opposite values for the user(s) with administrative privileges.
Hope it helps,
KM

b>>>>> I would like to show the "Run" menu item only when a user with
b>>>>> administrative privlidges is logged in. How do I do that in XPE?
b>>>>> Thanks in advance.



With best regards, KM. E-mail: (e-mail address removed)
 
Jim,

Good. HKEY_USERS\.DEFAULT should work for all users.
I would also suggest you to set this registry:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanc
ed]
"StartMenuRun"=dword:00000000
(0 - hide, 1 - display)

Again, use HKEY_USERS\.DEFAULT to apply to all users.

Just in case you could verify on target you've got the right registry
settings for all your user accounts under HKEY_CURRENT_USER. You may want to
use regedit to do so.

From "User Interface Core" you're probably asking about "Show Run on Start
Menu" option, aren't you? I guess the option matches the
[HKEY_USERS\.DEFAULT\...\StartMenuRun] registry value. However, this is the
question to MS guys.

KM

J> I'm changing the HKEY_USERS\.DEFAULT, and not HKEY_LOCAL_MACHINE.
J> Does it have something to do User Interface Core settings? Thanks for
J> you help.


J>>> Yes I am using the Explorer shell. I've actually tried both ways.
J>>> First,
J>>> I added the proper registry entries to my 2 account components -
J>>> the 2 entries to enable the run menu item for a component that
J>>> derives from the Administrator Account component, and then the 2
J>>> entries to disable the run menu item from a custom component that
J>>> derives from the User
J>>> Account component. Next, I tried simply editing the registry with
J>>> regedt32 from within XPE itself (rebooting each time), but I still
J>>> have the same result - either both users have the run menu or
J>>> neither do.
J>>> Lastly, I found the key \Software\Microsoft\WindowsNT\Program
J>>> Manager\Restrictions\NoRun and set that to 0. I figured this key
J>>> was a hold over from NT 3.51, and thus ineffective, but worth a
J>>> shot anyway.
J>>> Any more ideas? Thanks for your help.


J>>>>> This doesn't seem to be working. Do I need to make any
J>>>>> modifications to the User Interface Core settings? Thanks for
J>>>>> your response.

J>>>>> KM said:
You may want to play with the following two registry values:
; Explorer settings
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\
Explorer\
Advanc ed]
"Start_ShowRun"=dword:00000000 ; Allows to show/hide Run
on
XP Start menu
; Policies
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\
Policies\
Explor er]
"NoRun"=dword:00000001 ; Removes Run command from
Start menu
Set those values for all users (HKEY_USERS\.DEFAULT) and set the
opposite values for the user(s) with administrative privileges.
Hope it helps,
KM

b>>>>>>> I would like to show the "Run" menu item only when a user with
b>>>>>>> administrative privlidges is logged in. How do I do that in
b>>>>>>> XPE?
b>>>>>>> Thanks in advance.
 
You need to look into Group Policies. Can you run gpedit.msc on your XPe
box?

HTH... Doug
 
Back
Top