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

Jerold Schulman

August 27, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today


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 HKCRCLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}="My Computer"reg add HKCRCLSID\{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 immediateexpansion.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like