Update Computer Description

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know of a way to update the computer description via the command
line? We are doing a script that joins the computer to the domain using
netdom and need to figure out if at the same time we add it to the domain we
can give it a computer description. We are using SMS Installer 2.0 for the
script.

Thanks!
 
Marcy said:
Does anyone know of a way to update the computer description via the
command line? We are doing a script that joins the computer to the
domain using netdom and need to figure out if at the same time we add
it to the domain we can give it a computer description. We are using
SMS Installer 2.0 for the script.

Sure. Update the following registry value:

Hive: HKEY_LOCAL_MACHINE
Subkey: SYSTEM\CurrentControlSet\Services\lanmanserver\parameters
Value: srvcomment
Type: REG_SZ

Example using REG.EXE:

reg add HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters
/v srvcomment /d "my comment" /t REG_SZ

(all one line)
 
C:\>net config server /?

.... then -

NET CONFIG SERVER /SRVCOMMENT:"text here you'd like"
 
Forgot to mention these are workstations not servers. I tried to add the reg
setting then join the workstation to the domain and it did not update AD with
the computer description. That is where I need to see the information is in
the ADUC interface but I need to figure out how to get it in there via a
command line......

Dean Wells said:
C:\>net config server /?

.... then -

NET CONFIG SERVER /SRVCOMMENT:"text here you'd like"

--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l

Marcy said:
Does anyone know of a way to update the computer description via the
command line? We are doing a script that joins the computer to the
domain using netdom and need to figure out if at the same time we add
it to the domain we can give it a computer description. We are using
SMS Installer 2.0 for the script.

Thanks!
 
They don't need to be ... merely running Windows 2000 Professional or XP
will suffice.

--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l

Marcy said:
Forgot to mention these are workstations not servers. I tried to add
the reg setting then join the workstation to the domain and it did
not update AD with the computer description. That is where I need to
see the information is in the ADUC interface but I need to figure out
how to get it in there via a command line......

Dean Wells said:
C:\>net config server /?

.... then -

NET CONFIG SERVER /SRVCOMMENT:"text here you'd like"

--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l

Marcy said:
Does anyone know of a way to update the computer description via the
command line? We are doing a script that joins the computer to the
domain using netdom and need to figure out if at the same time we
add it to the domain we can give it a computer description. We are
using SMS Installer 2.0 for the script.

Thanks!
 
If the above won't suffice, are you familiar with LDIFDE or CSVDE or
equiv.?

--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l

Marcy said:
Forgot to mention these are workstations not servers. I tried to add
the reg setting then join the workstation to the domain and it did
not update AD with the computer description. That is where I need to
see the information is in the ADUC interface but I need to figure out
how to get it in there via a command line......

Dean Wells said:
C:\>net config server /?

.... then -

NET CONFIG SERVER /SRVCOMMENT:"text here you'd like"

--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l

Marcy said:
Does anyone know of a way to update the computer description via the
command line? We are doing a script that joins the computer to the
domain using netdom and need to figure out if at the same time we
add it to the domain we can give it a computer description. We are
using SMS Installer 2.0 for the script.

Thanks!
 
Back
Top