3

次のコマンドを使用して、.net Framework 4.0 をリモートでインストールしようとしています。

1

command => 'Powershell.exe -Verb RunAs -FilePath C:\Temp\dotNetFx40_Full_setup.exe -ArgumentList "/q /norestart /log C:\Temp\NetFx40.htm"'

2

command => 'C:\Windows\System32\cmd.exe /c C:\Temp\dotNetFx40_Full_setup.exe /q /norestart /log C:\Temp\NetFx40.htm',

両方で、ログに次のように表示されます。コマンドを実行しているユーザーは、ローカル管理者グループのメンバーです。

Final Result: Installation failed with error code: (0x00000005), "Access is denied. " (Elapsed time: 0 00:00:55).
    OS Version = 6.1.7601, Platform 2, Service Pack 1
    OS Description = Win2K8R2 - x64 Standard Edition Service Pack 1
    CommandLine = D:\ecfcf956d61e2bf89c1c75ce16\\Setup.exe /q /norestart /log C:\Temp\NetFx40.htm /x86 /x64 /ia64 /web
    TimeZone = Eastern Standard Time
    Initial LCID = 1033
    Using Simultaneous Download and Install mechanism
    Operation: Installing
    Package Name = Microsoft .NET Framework 4 Setup
    Package Version = 4.0.30319
    User Experience Data Collection Policy: Disabled
    Number of applicable items: 11
    Exe (D:\ecfcf956d61e2bf89c1c75ce16\SetupUtility.exe) succeeded.
    Exe Log File: dd_SetupUtility.txt
    ServiceControl operation succeeded!
    ServiceControl operation succeeded!
    Exe (C:\Users\_BUILD~1\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_4.0.30319\Windows6.1-KB958488-v6001-x64.msu) failed with 0x5 - Access is denied. .
    Final Result: Installation failed with error code: (0x00000005), "Access is denied. " (Elapsed time: 0 00:00:21).
4

4 に答える 4

1

それは機能しません。これに噛まれたのはあなただけではありません!

詳細な説明については、次の Microsoft サポート記事を参照してください。

WinRM および Windows リモート シェルを使用して .msu ファイルを展開すると、Windows Update スタンドアロン インストーラー (WUSA) が 0x5 ERROR_ACCESS_DENIED を返す

回避策は、WinRM/WinRS セッションから帯域外でインストーラーを実行することです。

于 2014-03-19T08:57:36.623 に答える
0

.NET Framework 4.0 のインストール中に、いくつかの更新プログラムと (.msu) ファイルがインストールされます。

しかし、.NET 4.0 をリモートでインストールすると、これらの更新が原因で失敗します。その背後にある理由は、これらの更新プログラムをリモートでインストールすることは許可されていないためです。KB 記事を見つけて、ここにリンクの説明を入力してください。この記事では、これに対する回避策についても説明しました。

この更新はスキップできます。次の引数を使用して .NET Framework 4.0 のみをインストールできます。

dotnetfx40_Full_x86_x64.exe /norestart /SkipMSUInstall
于 2016-04-28T16:06:00.513 に答える
-1

.Net 4.0 をリモートでインストールしようとしたときと同じエラーが発生しました。それを解決するために、以下のコマンドを使用しました。:

Invoke-Command -session $CompSession -scriptBlock {
Start-Process -FilePath "C:\dotnetfx40_Full_x86_x64.exe" `
-ArgumentList " /passive /norestart /SkipMSUInstall /log "C:\results.log" -PassThru | Wait-Process}
于 2015-09-23T19:04:08.087 に答える