use*_*297 5 powershell remote .net-framework
我正在尝试通过 PowerShell 会话以这种方式将 .NET Framework 4.5 安装到远程 Win2008R2 服务器(用户位于服务器管理员组中):
$session = New-PSSession -ComputerName $server -Credential Get-Credential
Invoke-Command -Session $session -ScriptBlock {Start-Process -FilePath "C:\temp\dotnetfx45_full_x86_x64.exe" -ArgumentList "/q /norestart" -Wait -PassThru}
Run Code Online (Sandbox Code Playgroud)
然后我得到这个错误:
Executable: C:\temp\dotnetfx45_full_x86_x64.exe v4.5.50709.17929
--- logging level: standard ---
Successfully bound to the ClusApi.dll
Error 0x80070424: Failed to open the current cluster
Cluster drive map: ''
Considering drive: 'C:\'...
Drive 'C:\' has been selected as the largest fixed drive
Directory 'C:\aa113be049433424d2d3ca\' has been selected for file extraction
Extracting files to: C:\aa113be049433424d2d3ca\
Error 0x80004005: Failed to extract all files out of box container #0.
Error 0x80004005: Failed to extract
Exiting with result code: 0x80004005
=== Logging stopped: 2013/09/04 16:29:51 ===
Run Code Online (Sandbox Code Playgroud)
如果我在服务器本地运行命令 - 一切正常。
Start-Process -FilePath "C:\temp\dotnetfx45_full_x86_x64.exe" `
-ArgumentList "/q /norestart" -Wait
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
14800 次 |
| 最近记录: |