Display Computer Name in Start Menu - Win 7

Hello experts!!

I use SCCM OSD to image computers.  After the image is applied to the computer there are a few tasks that I'd like to perform.  One of them is to display the Computer Name in the Start Menu.

I have found on a few websites to change the value of "LocalizedString" to "%USERNAME% on %COMPUTERNAME%"  located in HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}.

I have tried this but it doesn't seem to be working, so am looking for guidance.

Windows 7 Enterprise SP1 64-bit

-------
Additional note for reference:

Previously when WDS was used to image computers, we ran the below vbs script manually after a computer was imaged.  Even if I copy this batch file to the Windows 7 64-bit and run it locally as an admin it does not seem to work either.  

Const sKey = "HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\"

Dim oWSS,sTemp,sGarbage
On Error Resume Next
Set oWSS = WScript.CreateObject("WScript.Shell")
sTemp = oWSS.RegRead(sKey & "LocalizedString")
If Err.Number = 0 Then
  sGarbage = oWSS.RegRead(sKey & "LocalizedStringBackup")
  If Err.Number <> 0 Then
    oWSS.RegWrite sKey & "LocalizedStringBackup", sTemp, "REG_EXPAND_SZ"
  End If
End If
oWSS.RegWrite sKey & "LocalizedString", "Computer %ComputerName%", "REG_EXPAND_SZ"
Set oWSS = Nothing
IrrylynAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steven CarnahanNetwork ManagerCommented:
Do you want it in the start menu or on the task bar?

To put it on the task bar:

1. Right click the task bar
2. Select Toolbars
3. Select New Toolbar
4. Type:  \\%computername%\
5. Click Select Folder

You should now see the computer name on the task bar.
0
IrrylynAuthor Commented:
Start menu.  (customers complain about the space on taskbar)

And it needs to be command line or scripted so I can automate it, basically pulling the computername from the registry and adding it to the start menu either under the user name or in place of/under 'Computer'
0
Steven CarnahanNetwork ManagerCommented:
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

IrrylynAuthor Commented:
Thank you, I will check it out at home after work.  that website is blocked on our network.  (makes research for IT difficult!)
0
Steven CarnahanNetwork ManagerCommented:
Basically this is what it says:

The actual reg key is:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}

Change the default from "value not set" to "computer: %COMPUTERNAME%" without the quotes.

Log off the computer and back on and you should see the name of the computer directly below the word computer in the start menu.
0
IrrylynAuthor Commented:
Getting closer.  That's pretty much exactly the way I want it to look in the Start Menu.

The problem with that is that it's in HKCU, which only applies to that user.  So I may be able to talk the servers team into adding a GPO logon script that would do this, but that's not the solution I'm looking for.

The other problem is that when you click on it, %COMPUTERNAME% shows up in the address bar, instead of the actual name.  That's going to freak some users out.
0
Steven CarnahanNetwork ManagerCommented:
The alternative is to use BGINFO from Microsoft:   http://technet.microsoft.com/en-us/sysinternals/bb897557.aspx

The problem with this one is that if the user changes the backbround the information is lost until it runs again.

This is what we use. It has the ability to put a lot of information right on the screen like the IP address, computer name, drive information, etc. You can select where on the screen to display it as well.  On terminal servers we have the name right in the middle of the screen and on workstations we put it in the top right corner with the IP and drive info.
0
IrrylynAuthor Commented:
Yea, I've looked into that a bit but that doesnt display the computer name in the start menu, only on the desktop.  

The vb script I posted before worked on Win 7 64-bit before we switched to OSD imaging.  So I know what I'm asking for is possible.

There HAS to be a reg key that names the 'COMPUTER' button COMPUTER and can be changed.  I thought changing the "LocalizedString" to "%COMPUTERNAME%"  located in HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D} was it, but it must be somewhere else.

I'll keep looking.
0
Steven CarnahanNetwork ManagerCommented:
Okay, I just manually changed  my system using your key and logged off my system and back on and it worked.

I followed the instructions at:  http://www.sevenforums.com/tutorials/104960-computer-rename-windows-7-navigation-pane.html

The one thing that I noticed was that it had me take ownership and set Administrators to Full Control.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IrrylynAuthor Commented:
OMG You're right!  It is working both manually and with the script.   What was I doing wrong?  I didn't log off... so didnt see the changes!   Thank you for bringing that to my attention.  I feel like a tool!

For anyone else looking for this solution, the script I posted in my question works fine... you just have to log off/on again to see the results.
0
Steven CarnahanNetwork ManagerCommented:
Glad I helped a little.  :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.