PowerShell Installing software remotely on Multiple Computers
Автор: Swapnil Infotech
Загружено: 2022-12-09
Просмотров: 4757
Описание:
In this video you will be able to install software remotely. You have to ensure that you identify the silent installer switch to use in Script. You can get it on Google as always. I am giving the script which is working 100 % for me and I have shown you demo in this video. Here we are using "Start-Process" command to install softwrae.
If you like the Video do like, Share and Subscribe.
===========================Script Here ======================
$Servers = Get-content "C:\Scripts\livePCs.txt"
$Folder= "c:\Software\AcroRdrDC2100520060_en_US.exe" , "c:\Software\7z1900-x64.msi" , "C:\Software\npp.8.4.4.Installer.x64.exe"
Foreach ($Server in $Servers) {
$Test = Test-Path -path "\\$Server\c$\Temp\"
If ($Test -eq $True) {Write-Host "Path exists, hence installing softwares on $Server."}
Else {(Write-Host "Path doesnt exists, hence Creating foldet on $Server and starting installation") , (New-Item -ItemType Directory -Name Temp -Path "\\$Server\c$")}
Echo "Copying Files to C:\Temp\"
Copy-Item $Folder "\\$Server\c$\Temp\"
echo "Second Part :- Installing Software on $Server"
Invoke-Command -ComputerName $Server -ScriptBlock {(Start-Process "c:\Temp\AcroRdrDC2100520060_en_US.exe" -ArgumentList '/sAll /sr' -Wait) , (Start-Process "c:\Temp\npp.8.4.4.Installer.x64.exe" -ArgumentList '/S' -Wait) ,
(Start-Process "c:\Temp\7z1900-x64.msi" -ArgumentList '/qn' -Wait) , (Remove-Item -path "C:\Temp\AcroRdrDC2100520060_en_US.exe" , "C:\Temp\7z1900-x64.msi" , "C:\Temp\npp.8.4.4.Installer.x64.exe" -ErrorAction Ignore)
}
}
====================================================
PowerShell Send Email if Windows Service is in Stopped State
• PowerShell Send Email if Windows Service i...
PowerShell Send email if windows service is not running
• PowerShell Send email if windows service i...
Get Local Group Members From Remote computers
• Get Local Group Members From Remote computers
Powershell Script To Change Service Account or Update Password
• Powershell Script To Change Service Accoun...
Powershell How To Change Remote Computer (Workgroup) Local Account Password
• Powershell How To Change Remote Computer (...
Delete Virtual Machine Snapshots Older Than Specific Days
• Delete Multiple Virtual Machine Snapshots ...
How To Create File Selection Dialog Box in PowerShell
• How To Create File Selection Dialog Box in...
Add User/Group To The Local Administrators/RDP Group On Multiple Computers
• Add User/Group To The Local Administrators...
Get Windows Updates list from Remote Computer
• Get Windows Updates list from Remote Computer
PowerShell Remotely Uninstall Software from Multiple Computers
• PowerShell Remotely Uninstall Software fro...
PowerShell Search Specific KB Status on Remote Computers
• PowerShell Search Installed Windows Update...
PowerShell Script to Connect Multiple Server's Remote Session
• PowerShell Script to Connect Multiple Serv...
PowerCLI Script to power ON dedicated VMs listed in a text file
• PowerCLI Script to power ON dedicated VMs ...
PowerCLI Script to power Off dedicated VMs listed in a text file
• PowerCLI Script to power Off dedicated VMs...
Delete Snapshot's from Multiple Virtual Machines
• Delete Snapshot's from Multiple Virtual Ma...
Create Snapshot on Multiple Virtual Machine
• Create Snapshot on Multiple Virtual Machine
How can I check if a port is open remotely
• Identify if Windows TCP Ports are open on ...
Installing software remotely on Multiple "Workgroup" Computers
• Installing software remotely on Multiple "...
PowerShell Installing software remotely on Multiple Computers
• PowerShell Installing software remotely on...
Unable to move OU in Active Directory (Access is denied)
• Unable to move OU in Active Directory (Acc...
PowerShell Installing software remotely on Multiple Computers
• PowerShell Installing software remotely on...
Get Multiple Services Status Remotely | Remotely Start or Stop Services
• Get Multiple Services Status Remotely | Re...
Get Date and Time from Multiple Remote Computers
• Get Date and Time from Multiple Remote Com...
PowerCLI - How to get HA restarted VM's List
• PowerCLI - How to get HA restarted VM's List
Get-Childitem - Search file on Local and Remote Computers
• Get-Childitem - Search file on Local and R...
Remotely Create Update Delete Registry Key on Multiple Computers
• Remotely Create Update Delete Registry Key...
Get service status from remote server's using PowerShell
• Get service status from remote server's us...
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: