开发者

How do I create a script to switch between a Domain and my Workgroup

I am searching for a way to switch between my home's workgroup and my work's Domain.

I am sure that it can be done with 开发者_JS百科some commands in batch/python language but I have no idea how to do it...

I'll be happy to get some help.. I heard good things about this site, will be happy to see those things come true :)

Thanks, Amihay


Microsoft suggests that you use netdom. Note that the machine will have to restart (as it does whenever you change the workgroup).

For example, if you have a computer called mymachine that you want to switch the domain mydomain you would write:

netdom join mymachine /Domain:mydomain /reboot

See Also:

  • Netdom Overview at Microsoft TechNet for more information about netdom
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜