Change workgroup name from command prompt?

TechnoPro

Golden Member
Jul 10, 2003
1,727
0
76
Can this be done?

I'm looking to write a batch file that will let me switch workgroup names for different locations I bring my laptop to.
 

TechnoPro

Golden Member
Jul 10, 2003
1,727
0
76
I hate to bump unnecessarily, but I am still looking to see if the above is possible...

Any suggestions?
 

horhey

Member
Dec 23, 2003
102
0
0
To join a domain you can use netdom form the Support Tools (i am assuming you are using 2000 or XP)
THe command is NETDOM JOIN machine /Domain: <domain>
more info here

to join a workgroup the only way i found was to use the netdom for nt
Netdom.exe for NT 4.0
if you download the netdom_x86.exe file i would rename that netdom_nt or something to tell the difference.
you can now use the command with the netdom_nt
netdom_nt member \\computer /JOINWORKGROUP workgroupname

hope that helps:beer:
 

horhey

Member
Dec 23, 2003
102
0
0
Sorry I didnt see "let me switch workgroup names " i just implied domain show how. I would just use the one for NT and forget about the support tools one. Put the commands in a bat file and you will be all set.