用以下程序可以即可修改计算机的名字
但是进入Cimv2空间 win32_computersystem.name却没有更改?
wmic computersystem where "name='%computername%'" call rename newname
但是进入Cimv2空间 win32_computersystem.name却没有更改?
set name=getobject("winmgmts:\\.\root\cimv2").instancesof("win32_computersystem")
dim a
for each x in name
a=a+x.name
next
msgbox a
