切换到宽版
  • 6668阅读
  • 3回复

[求助]升级exchange2013错误 [复制链接]

上一主题 下一主题
 
只看楼主 倒序阅读 0楼  发表于: 2014-05-25
升级exchange到cu2的时候发生错误,哪位大神能指导下?错误代码如下:

Error:
The following error was generated when "$error.Clear();
          if ([Environment]::OSVersion.Version.Major -ge 6)
          {
              $WsbBinPath=$RoleInstallPath+"bin\wsbexchange.exe";
              $reg= join-path (join-path $env:SystemRoot system32) reg.exe;
              $servicecmd = join-path (join-path $env:SystemRoot system32) sc.exe;

              if ((get-service wsbexchange* | where {$_.name -eq "wsbexchange"}))
              {
                    if ((get-service wsbexchange).Status -eq "Running")
                    {
                        Start-SetupProcess -Name:"$servicecmd" -Args:"stop wsbexchange";
                    }
                    Start-SetupProcess -Name:"$servicecmd" -Args:"delete wsbexchange";
              }

              Start-SetupProcess -Name:"$reg" -Args:"add `"HKCR\CLSID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /t REG_SZ /d  `"CExchangeHelper Class`" /f";
              Start-SetupProcess -Name:"$reg" -Args:"add `"HKCR\CLSID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /v AppId /t REG_SZ /d `"{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";
              Start-SetupProcess -Name:"$reg" -Args:"add `"HKCR\CLSID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}\LocalServer32`" /t REG_SZ /d `"$WsbBinPath`" /f";

              Start-SetupProcess -Name:"$reg" -Args:"add `"HKCR\APPID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /t REG_SZ /d `"CExchangeHelper Class`" /f";
              Start-SetupProcess -Name:"$reg" -Args:"add `"HKCR\APPID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /v LocalService /t REG_SZ /d `"wsbexchange`" /f";
              Start-SetupProcess -Name:"$reg" -Args:"add `"HKCR\APPID\{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /v LaunchPermission /t REG_BINARY /d `"010004806000000070000000000000001400000002004c0003000000000014001f000000010100000000000512000000000018001f000000010200000000000520000000200200000000180003000000010200000000000520000000270200000102000000000005200000002002000001020000000000052000000020020000`" /f";
              Start-SetupProcess -Name:"$reg" -Args:"add `"HKCR\APPID\wsbexchange.exe`" /v AppId /t REG_SZ /d `"{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";

              Start-SetupProcess -Name:"$reg" -Args:"add `"HKLM\Software\Microsoft\windows nt\currentversion\WindowsServerBackup\Application Support\{76fe1ac4-15f7-4bcd-987e-8e1acb462fb7}`"  /v `"Application Identifier`" /t REG_SZ /d Exchange /f";
              Start-SetupProcess -Name:"$reg" -Args:"add `"HKLM\Software\Microsoft\windows nt\currentversion\WindowsServerBackup\Application Support\{76fe1ac4-15f7-4bcd-987e-8e1acb462fb7}`" /v CLSID /t REG_SZ /d `"{D8A2E312-3B17-4293-B71E-CD72A7C04BF3}`" /f";

              Start-SetupProcess -Name:"$reg" -Args:"add `"HKLM\Software\Microsoft\windows nt\currentversion\WSBAppExchangeHelper`" /v AutoMarkDbRecoverable /t REG_DWORD /d 1 /f";
              Start-SetupProcess -Name:"$reg" -Args:"add `"HKLM\Software\Microsoft\windows nt\currentversion\WSBAppExchangeHelper`" /v AutoMountOnPITRecovery /t REG_DWORD /d 1 /f";
              Start-SetupProcess -Name:"$servicecmd" -Args:"create wsbexchange binpath= `"$WsbBinPath`" type= own start= demand error= ignore obj= LocalSystem DisplayName= `"Microsoft Exchange Server Extension for Windows Server Backup`"";
              Start-SetupProcess -Name:"$servicecmd" -Args:"description wsbexchange `"Enables Windows Server Backup users to back up and recover application data for Microsoft Exchange Server.`"";
         }
        " was run: "Process execution failed with exit code 1.".
分享到
只看该作者 1楼  发表于: 2014-05-26
你好,这种情况可能是组策略阻止修改注册表引起的,或者说没有权限修改注册表,请在组策略管理器中删除阻止修改注册表的组策略。
只看该作者 2楼  发表于: 2014-05-29
检查了一下组策略设置,注册表的确是被禁用了,马上再升级试一下!太感谢了!!
只看该作者 3楼  发表于: 2014-05-29
的确是这个原因,在组策略里取消禁用注册表后升级成功!再次感谢!!!
快速回复
限60 字节
 
上一个 下一个