• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

can i set a host name for computer from command line?

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

skidooosl

Member
Joined
Sep 9, 2003
Location
MI
i need to create a script to set the host name of a computer and map a network printer... is there any way to do this? i work for a school district and have to do this on close to 1000 computers :( it would be SSSOOOO much easier if i could just put it in a script that would ask to enter room number (part of computer name ) and let it create the name and map the printer ( also room number is part of printer name as well )
 
I'm thinking it might possibly be something along the lines of...

net use lpt1: \\computername\printersharename /persistent:yes

...from a command prompt. That's about all I can come up with at the moment...I'll have to give it some more thought.
 
Back