.NET Framework 4.5 remote install via PowerShell

Posted by user251297 on Super User See other posts from Super User or by user251297
Published on 2013-09-04T14:01:49Z Indexed on 2013/11/07 4:00 UTC
Read the original article Hit count: 730

Filed under:
|
|

I am trying to install .NET Framework 4.5 to the remote Win2008R2 Server via PowerShell session in such way (user is in the server Administrators group):

$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}

And then I get this error:

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 ===


If I run command locally at the server - all works fine.

Start-Process -FilePath "C:\temp\dotnetfx45_full_x86_x64.exe" `
-ArgumentList "/q /norestart" -Wait

© Super User or respective owner

Related posts about powershell

Related posts about remote