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

作者:小橘猫 | 创建时间: 2023-07-04
win7安装IIS“出现错误,并非所有功能被成功更改”困扰我多时。 症状是一般IIS可以安装,选ASP、ASP.net时会出现以上提示。 网上很多经验但都没有解决,包括修改权限、安装顺序、使用wpilauncher.... 每个人出现的原因...
解决win7安装IIS“并非所有功能被成功更改”

操作方法

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

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

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

在网上找到一个重建WMI库的批处理 http://blog.csdn.net/xuxc/article/details/2230277 把以下代码复制存成.bat文件 net stop winmgmtc:cd %systemroot%/system32/wbemrd /S /Q repository regsvr32 /s %systemroot%/system32/scecli.dllregsvr32 /s %systemroot%/system32/userenv.dll mofcomp 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

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

点击展开全文

更多推荐