Script with silent install hangs at the remote computer RRS feed

  • Question

  • Hi.

    I wrote the script that install some updates to the computer. I tested it locally and want to run it remotely with Invoke-Command.

    I'm running it this way

    $scriptpath = "\\"+$computer+"\somepath\1installAIO.ps1"
    	Invoke-Command -ComputerName $computer -Filepath $scriptpath

    Script is running well but when it reaches this point it hangs forever.

    Start-Process "C:\somepath\1 - NDP47-KB3186497-x86-x64-AllOS-ENU.exe" -ArgumentList "/quiet", "/norestart" -Wait 

    Process is visible in taskmgr, but it definetly need some interaction. I think that something is wrong with /quiet and -Wait, but i can't get why.

    The question is how to make this script work remotely as well as it works locally.

    • Edited by pawellrus Monday, October 23, 2017 8:29 AM
    • Moved by Bill_Stewart Wednesday, November 29, 2017 6:51 PM This is not "help me write script that reinvents the wheel" forum
    Monday, October 23, 2017 8:28 AM

All replies

  • No. Some things cannot be remotely installed.  Contact the vendor of the package for help.


    Monday, October 23, 2017 9:21 AM
  • This is .Net 4.7. And i'm already on vendor's forum.
    Monday, October 23, 2017 9:47 AM
  • Use WSUS to distribute Windows updates rather than trying to run an installer remotely.

    -- Bill Stewart [Bill_Stewart]

    Monday, October 23, 2017 4:00 PM