如何创建在域和工作组之间切换的脚本

发布于 2024-10-07 11:47:43 字数 149 浏览 0 评论 0原文

我正在寻找一种在家庭工作组和工作域之间切换的方法。

我确信可以使用批处理/python 语言中的一些命令来完成它,但我不知道该怎么做...

我很乐意获得一些帮助.. 我听说过这个网站的好消息,很高兴看到这些事情成真:)

谢谢, 阿米哈伊

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 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝戈者 2024-10-14 11:47:43

Microsoft 建议您使用netdom。请注意,计算机必须重新启动(每当您更改工作组时都会重新启动)。

例如,如果您有一台名为 mymachine 的计算机,并且想要切换域 mydomain,您可以编写:

netdom join mymachine /Domain:mydomain /reboot

另请参阅

  • Netdom 概述,位于 Microsoft TechNet有关netdom的更多信息

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:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文