.net remote install

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
jvierra
Posts: 14691
Joined: Tue May 22, 2007 9:57 am
Answers: 7
Has voted: 2 times
Been upvoted: 5 times

Re: .net remote install

Post by jvierra »

localpct wrote:
Mon Jul 13, 2020 12:55 pm
$path = 'C:\classInstalls\ndp48-x86-x64-allos-enu.exe'
Invoke-Command -ComputerName $computerName -ArgumentList "/q /norestart" -ScriptBlock { Start-Process -FilePath using:$path $args[0] -WorkingDirectory ?????????? }

Do you need to include a WorkingDirectory?
No. Installers use temp or the default install target.

weslein
Posts: 7
Joined: Sun Jul 12, 2020 8:53 am

Re: .net remote install

Post by weslein »

jvierra wrote:
Mon Jul 13, 2020 1:02 pm
localpct wrote:
Mon Jul 13, 2020 12:55 pm
$path = 'C:\classInstalls\ndp48-x86-x64-allos-enu.exe'
Invoke-Command -ComputerName $computerName -ArgumentList "/q /norestart" -ScriptBlock { Start-Process -FilePath using:$path $args[0] -WorkingDirectory ?????????? }

Do you need to include a WorkingDirectory?
No. Installers use temp or the default install target.
Thank you very much.

weslein
Posts: 7
Joined: Sun Jul 12, 2020 8:53 am

Re: .net remote install

Post by weslein »

jvierra wrote:
Tue Jul 07, 2020 9:08 am
Too many "not" in the question. It cannot be undrestaood.
Pretty cool and awesome.

Locked