JSI Tip 2760. Automatically change the My Computer caption to %UserName% over %ComputerName% via a script in Windows NT 4.0.

In tip 1271, I provided the registry entries to accomplish this registry hack.

To perform this in a login script or other batch file, use REG.EXE from Supplement 4 of the Server Resource Kit.

The instructions to include are:

echo y| reg delete HKCR\CLSID\\{20D04FE0-3AEA-1069-A2D8-08002B30309D\}\="My Computer"
reg add HKCR\CLSID\\{20D04FE0-3AEA-1069-A2D8-08002B30309D\}\="%"computername"% /%"username"%" REG_EXPAND_SZ
The echo y| pipes your confirmation of the delete. The interior quote marks around computername and username prevents their immediate expansion.
Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.