Link to home
Start Free TrialLog in
Avatar of ccdc12
ccdc12

asked on

Remotely rename computer description

I have several windows xp pro pc I would like to rename their computer description remotely with out RDP or login to the pc.
Can this be done?
Avatar of pablovr
pablovr
Flag of Mexico image

Take a look here:

How do I change the description/comments field of a computer remotely:
https://www.experts-exchange.com/questions/22794585/How-do-I-change-the-description-comments-field-of-a-computer-remotely.html?anchorAnswerId=19792733#a19792733

"...

Try this VB Script:
Just open text editor, paste code and edit the part you need to, then save as .vbs
Code is BETWEEN the equal signs
===========================

set wshshell = createobject("wscript.shell")
      regkey = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\srvcomment"
                regval = "This is where your new description - comment goes"
      wshshell.regwrite regkey ,regval
SET WSHSHELL = NOTHING

===============================

..."
ASKER CERTIFIED SOLUTION
Avatar of slam69
slam69
Flag of United Kingdom of Great Britain and Northern Ireland 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 ccdc12
ccdc12

ASKER

slam69,
I need a little more instruction to use the vbs script.

I copied the script from the website and save in on my desktop as changedescription.vbs

so what do I do next?
if I double click on it nothing happens.

Thanks

Are this Windows XP clients in a Windows Domain?

If so, then you can deploy the script at logon:

Creating logon scripts:
http://technet.microsoft.com/en-us/library/cc758918.aspx

Then use the script I mentioned earlier.
Avatar of ccdc12

ASKER

I don't quiet follow how this works.

I understand copy the text to a file and name it .vbs
Then you say to add it the the login scripts.

one the user has the login script and the login to their pc.
once that is done how does the rename the compter description work?