• RSS
  • Twitter
  • FaceBook

How To Change Comment Field For Multiple Servers

  • Section(s): Administrator, Admin
  • Published on Nov 18, 2010.
  • Last Modified on Oct 10, 2009.
  • Last Modified by Nirmal Sharma.
  • Rating: Not Rated
This article explains how you can change the Comment Field located on My Computer for Infrastructure Servers.

The "Comment Field" which is located at My Computer simplifies the identification of a Windows Computer. This is generally called "Computer Description". By just looking at the Computer Description you can identify the Server role. This article explains how you can set this field for multiple computers using a single command.

As an example, you have 100 IIS Servers in your organization but when you look at two-three IIS servers (My Computer property) it says something else or nothing. As a manual process it may take some considerable time for 100 servers. You can use the below steps to accomplish this:

  • Create a text file. Name it IISSRV.TXT and put all the IIS Server names in it.
  • Next run the following command from a computer which is reachable to all IIS Servers mentioned in the IISSRV.TXT file.

FOR /F "Tokens=*" %L IN (C:\IISSRV.TXT) DO REG.EXE Add \\%L\HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters /v srvcomment /t REG_SZ /d "IIS Infrastructure Server"

The above command runs against each server mentioned in the IISSRV.TXT and set a registry entry (srvcomment). This registry key holds the Computer Description text.

 

About Nirmal Sharma

Nirmal is a Microsoft MVP in Directory Services and working as a Technical Architect/Consultant. He has been involved in Microsoft Technologies since 1994 and followed the progression of Microsoft Operating Systems and software. He is specialized in Directory Services, Microsoft Clustering, SQL, MOM, Exchange and Citrix. In his spare time, he likes to help others and write "internal" technical articles, white papers and tips on various Microsoft technologies. You can contact him at nirmal_sharma@mvps.org.


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred data recovery solution?