Update Computer Description

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!
 
B

Bill Stewart

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)
 
D

Dean Wells [MVP]

C:\>net config server /?

.... then -

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

Guest

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!
 
D

Dean Wells [MVP]

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!
 
D

Dean Wells [MVP]

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top