Pin Menu

  • Thread starter Thread starter ZX9R_Bandit
  • Start date Start date
Z

ZX9R_Bandit

Howdy,

I'm just wondering if anyone knows of a way to customise
the PIN Menu via scripting or "programatic approach".
Have found a way to do it but only through messy reg
hacks.
Any help would be greatly appreciated.
Reg editing or importing reg files is definetly an
option. Maybe the only one?????

Many Thanks
 
What are you trying to do? Send the messy reg hacks to me via email, if
that will better help your case here.
 
Thanks for the reply.

Im trying to customise an XP Pro environment and the PIN
Menu is one of the desired customisations. (I know Pin
Menu is meant to be customised by the user and not to be
scripted or programmed due to "BAD" software policy or
something). But that is the desired result.
So I wish to place specified icons/links in the PIN menu
and modify or distribute it via scipts (i.e. KIX32,
AutoIt..etc) actually straight command line with a linked
reg file would be ideal. So far the messy reg hacks are in
the following destination. It's a simple key copy and then
merge it into the current users environment via login
script.
The location is:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion
\Explorer\
and the key copied is StartPage.
This key is then merged in into the users current
environment. Sometimes active quickly but somtimes
requires to log off to activate.
Thought the location would be shorter than pasting the
whole value in.

Thanks Again.
 
Hi and 'welcome,

The logon script needs to do the following, in this order:

1) Check the HKEY_CURRENT_USER hive for a value that you specify. Example:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer

Value: SMScriptRun

DWord value

1 = Script has been run previously.

2) If the script does not find SMScriptRun, then it executes REGEDIT with
the /S switch to import your REG file.

3) Next, it executes a small snippet of WMI code to end process on
Explorer.exe and restart it. This refreshes the user's settings, desktop,
taskbar and etc.

4) Then the script writes the SMScriptRun value to the Registry with a value
of 1.

5) If the script does find the SMScriptRun value, set to 1, it simply exits,
as the script has already been run for this user.

If you want the same Pin To list for all users, regardless of whether
they've logged on before, or not, its a bit simpler, but as your experience
shows, it may still be necessary to restart the Explorer.exe process as part
of the logon.

Note: With VB script, it is difficult to write more than four bytes to a
binary value.

Good luck!
--
All the Best,
Kelly (TDB&TLS)

Microsoft-MVP Windows® XP

Troubleshooting Windows XP
http://www.kellys-korner-xp.com

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm


Thanks for the reply.

Im trying to customise an XP Pro environment and the PIN
Menu is one of the desired customisations. (I know Pin
Menu is meant to be customised by the user and not to be
scripted or programmed due to "BAD" software policy or
something). But that is the desired result.
So I wish to place specified icons/links in the PIN menu
and modify or distribute it via scipts (i.e. KIX32,
AutoIt..etc) actually straight command line with a linked
reg file would be ideal. So far the messy reg hacks are in
the following destination. It's a simple key copy and then
merge it into the current users environment via login
script.
The location is:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion
\Explorer\
and the key copied is StartPage.
This key is then merged in into the users current
environment. Sometimes active quickly but somtimes
requires to log off to activate.
Thought the location would be shorter than pasting the
whole value in.

Thanks Again.
 
Hi Kelly,

Thanks for that, will try it out soon and let you know
how I go.
By the way if you know, what else is contained in the
StartPage key, I seem to think other things are coming
accross which perhaps should'nt.
Is there a way to add individual icons to the PIN via
script or just bulk change.
By the way your input on the explorer.exe will help me
with other issues. Nice one.

Anyway, Many Thanks again
 
Most welcome, good luck and keep me posted. As for crashing explorer.exe,
it is a must (saves a lot of time, too), in many of the scripts that I work
on. I use the code via vbs and VB.

BTW, importing the regkey(s) to User default, doesn't work.




Hi Kelly,

Thanks for that, will try it out soon and let you know
how I go.
By the way if you know, what else is contained in the
StartPage key, I seem to think other things are coming
accross which perhaps should'nt.
Is there a way to add individual icons to the PIN via
script or just bulk change.
By the way your input on the explorer.exe will help me
with other issues. Nice one.

Anyway, Many Thanks again
 
Back
Top