wmic用不了,windows server 2008 R2
本帖最后由 jiangtaogt 于 2013-05-02 15:52:20 编辑
03下测试成功,08下出现下面的错误
@echo off
copy "C:\Users\Administrator\Desktop\WMIC.exe" "C:\Windows\System32"
echo.
wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue=%path:C:\Java\jdk1.6.0_35\bin;=%
pause
Please wait while WMIC compiles updated MOF files.
Parsing Mof File: C:\Windows\system32\wbem\CliEgAliases.mfl(Phase Error - 2)
Compiler returned error 0x8004401e
在线等~~求高手啊,弄了2天了
------解决方案--------------------wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%path%;C:\Java\jdk1.6.0_35\bin"
不好意思,上一个有点小错误