不重启修改Windows工作组的命令及批处理

一般电脑修改工作组都是在“系统属性”里面修改,不过需要重启,其实也有不需要重启的方法的:

一条命令就可以搞定

wmic computersystem where Name="%COMPUTERNAME%" call JoinDomainOrWorkgroup Name="WORKGROUP"

也可以建立一个bat文件,以后修改起来就方便极了

set /p work1=请输入工作组名:
wmic computersystem where Name="%COMPUTERNAME%" call JoinDomainOrWorkgroup Name="%work1%"
echo.

执行bat文件的时候输入想要设置的工作组名称回车就ok了

This entry was posted in Technology and tagged , , , . Bookmark the permalink. 8,379 views

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *