Install .exe setup remotely on multiple windows systems/servers using PowerShell

--

PowerShell Script
PowerShell

Pre-requisites:

  1. Start WinRM service using following command on all systems.
Enable-PSRemoting -Force

2. Turn of UAC Setting in all Remote systems.

Control Panel => System and Security => Security and Maintenance => Security => Change Settings of User Account Control to Never Notify.

3. Add all remote host machines to trusted host list by starting Powershell in Run As Administrator Mode and run following command.

set-item wsman:\localhost\client\trustedhosts -Concatenate -value 'hostname'

PowerShell script to install .exe setup in multiple remote system/server:

  1. Create servers.txt file and add list of remote hosts in new line.

2. Create PowerShell script using below code and run to install setup in remote server.

exe-installer-script

This script will install required setup to all remote systems.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response