Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change computer description

Status
Not open for further replies.

COMPUTERTECH33

IS-IT--Management
Dec 14, 2005
73
0
0
US
All, how can I change the computer description remotey?

Thanks
 
There are several ways that would/should work:-

1) Use RDP or something like VNC to take over the remote desktop and change the information manually.

2) Run 'regedit' (from an account with administrative privileges) and select 'Connect Network Registry) from the 'File' menu. Connect into the registry of the remote PC then navigate to 'HKEY_LOCAL_MACHINE\SYSTEM' then, in EACH ControlSet (i.e. CurrentControlSet, ControlSet001, ControlSet002, etc.) navigate to 'Services\lanmanserver\parameters' and amend the string value of the 'srvcomment' key.

For example:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\srvcomment

(Note that the remote PC needs to be running the Remote Registry Service.)

3) Create a .reg file and use SysInternals' PSEXEC utility to copy the .reg file to the remote PC and execute it with the switch to surpress the confirmation prompt, e.g.:
regedit /s file.reg
The difficulty with this is you would need to know beforehand how many ControlSet keys there were

4) Create a VBS script and use SysInternals' PSEXEC utility to copy the script to the remote PC and execute it. The advantage of this over using a .reg file is that the script can include 'if...then' logic to test for the presence of possible ControlSet keys.

5) If the remote PC logs on to a server then you can also change the description using a logon script.

Hope this information helps...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top