Link to home
Start Free TrialLog in
Avatar of Irrylyn
Irrylyn

asked on

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
Avatar of Steven Carnahan
Steven Carnahan
Flag of United States of America image

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.
Avatar of Irrylyn
Irrylyn

ASKER

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'
Avatar of Irrylyn

ASKER

Thank you, I will check it out at home after work.  that website is blocked on our network.  (makes research for IT difficult!)
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.
Avatar of Irrylyn

ASKER

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.
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.
Avatar of Irrylyn

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Steven Carnahan
Steven Carnahan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Irrylyn

ASKER

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.
Glad I helped a little.  :)