Maelstorm Posted May 22, 2006 Share Posted May 22, 2006 (edited) Is there a way to set the workgroup and DNS domain suffix from the command line? Edited May 23, 2006 by Maelstorm Link to comment Share on other sites More sharing options...
cancerface Posted May 22, 2006 Share Posted May 22, 2006 Hi, I wrote a small tool that can change the workgroup and the netbios name. The details can be found in this thread. Although my tool provides a GUI you can use a timeout option to make it work unattended.I think you can change the workgoroup using WMI from a command prompt (not tested):wmic ComputerSystem Set Workgroup= "NewWorkGroup"There is also a utility called compname.exe which changes the computer name but I am not sure if it changes the DNS suffix or just the NetBIOS name.Hope this helpsCF Link to comment Share on other sites More sharing options...
Maelstorm Posted May 23, 2006 Author Share Posted May 23, 2006 (edited) Thanks for the reply.After I posted, I found some code on Microsoft's website that I can write into an application to do what I want. I'll post it here when I finish it. My final goal with this is to have a system where you have an ini file on a floppy and then have a program read that ini file and make the changes. One DVD for many computers, but each one needs it's own floppy though.I guess it works kinda like your tool, but mine will not be interactive. Edited May 23, 2006 by Maelstorm Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now