.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.
This topic is 3 years and 8 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 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
Last visit: Wed Jul 29, 2020 7:22 pm

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
Last visit: Wed Jul 29, 2020 7:22 pm

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.
This topic is 3 years and 8 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked