Jump to content

Set workgroup from command line?


Recommended Posts


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 helps

CF

Link to comment
Share on other sites

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 by Maelstorm
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...