网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

解决win7安装IIS“并非所有功能被成功更改”

时间:2024-11-04 12:23:54

1、运行CMD,进入DOS命令输入C:\Windows\Microsoft.NET\Framework\v4.0.30319输入aspnet_regiis -i

2、如果出错会提示查看安装日志C:\Documents and Settings\Administrator\AppData\Local\ASPNETSetup_XXXXX.log

3、我的出现了 2015-01-25 23:37:53 Failure Installing WMI file:aspnet.mof: InstallMOF failed with HRESULT 80004005: '未指定的错误 '这种情况可能是由于被损坏的wmi库造成的

4、在网上找到一个重建WMI库的批处理http://blog.csdn.net/xuxc/article/details/2230277把以下代码复制存成.bat文件net stop winmgmtc:cd %systemroot%/system32/wbemrd /S /Q repositoryregsvr32 /s %systemroot%/system32/scecli.dllregsvr32 /s %systemroot%/system32/userenv.dllmofcomp cimwin32.mofmofcomp cimwin32.mflmofcomp rsop.mofmofcomp rsop.mflfor /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%sfor /f %%s in ('dir /b *.mof') do mofcomp %%sfor /f %%s in ('dir /b *.mfl') do mofcomp %%secho DONE rebootpause

5、运行后重启,重新安装IIS中的ASP,正常运行!

© 一点资料