小编use*_*297的帖子

通过 PowerShell 远程安装 .NET Framework 4.5

我正在尝试通过 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 …
Run Code Online (Sandbox Code Playgroud)

powershell remote .net-framework

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

.net-framework ×1

powershell ×1

remote ×1