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.

--

--

--

DevOps Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Kubernetes CI/CD with CircleCI and ArgoCD

#BUIDL Month: August 2021

Web scraping all the images from a website

Code Chrysalis Cohort 6 — Student Introductions

macOS 3.22.0

Python Classes VS DataClasses: Which one to choose from?

Why Cloud Computing has Brought a Revolution in Online Business

How To Block A Port Using Iptables Then Listen To A Port With Netcat

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Siddharth Lakhani

Siddharth Lakhani

DevOps Engineer

More from Medium

Automatic “Alt+Tab” input with AutoHotKey

How to Install Docker on Kali Linux

Using Variables In File Paths With Puppet

Updating AWS ECS Taskdefintions and Services via Ansible