标题:
[系统相关]
[已解决]求修改工作组命令的解释
[打印本页]
作者:
wd4455
时间:
2018-12-10 12:22
标题:
[已解决]求修改工作组命令的解释
本帖最后由 wd4455 于 2018-12-10 13:29 编辑
1::wmic computersystem where Name="%COMPUTERNAME%" call JoinDomainOrWorkgroup Name="%Work%" >nul 2>nul
2::wmic computersystem where Name="%WorkGroup%" call JoinDomainOrWorkgroup Name="%Work%" >nul 2>nul
::更改工作组google为MyGroup
3::wmic computersystem where "name='%COMPUTERNAME%'" call joindomainorworkgroup "","","%Work%",1
%COMPUTERNAME%是不管原工作组名称是什么直接修改对么?
%Work%是修改的名称对么?
命令1和3为何不太一样?
作者:
Batcher
时间:
2018-12-10 12:56
JoinDomainOrWorkgroup 支持的参数如下:
https://docs.microsoft.com/zh-cn/windows/desktop/CIMWin32Prov/joindomainorworkgroup-method-in-class-win32-computersystem
欢迎光临 批处理之家 (http://www.bathome.net/)
Powered by Discuz! 7.2