.net framework installation on remote servers

This topic contains 3 replies, has 2 voices, and was last updated by  Don Jones 1 year ago.

  • Author
  • #70221



    I am able to install .net framework 4.5 locally but not able to do the same remotely using invoke-command.Can anyone help please

    $server = 'wdcibmg02'
    $source = Get-ChildItem -Path "\\wdcibmc01\c$\temp\framework\*"
    $target = "\\$server\c$\temp"
    Copy-Item -Path $source -Recurse -Destination $target
    $session = New-PSSession -ComputerName $server
    invoke-command -session $session -scriptblock {Start-Process -FilePath "c:\temp\framework.exe" -ArgumentList "/q /norestart" -wait -PassThru} 
  • #70222

    Don Jones

    That's authentication – going to that UNC share is engaging the double-hop problem in Remoting. The easiest would be to ensure the share allows totally anonymous connections, or to copy the installer to the remote machine first, so it can install from local source.

    • #70224


      Hi Don,

      Thanks for your prompt response !!

      To avoid double hop problem , i did copy the installer file locally using the command "Copy-Item -Path $source -Recurse -Destination $target" wherein $target is the server where I am wanting to install .net framework.

      The problem is that it`s not even giving any error message when I run the script. It just keeps on running infinitely and I have to manually stop the script.

      Although the installer file gets copied on the server but it does not continue with the installation.

  • #70227

    Don Jones

    The installer is probably insisting on having a user context, then, which Remoting can't provide.

You must be logged in to reply to this topic.