# Place Checks on windows-server

**URL:** <https://community.icinga.com/t/place-checks-on-windows-server/12766>\
**Category:** Service Monitoring\
**Tags:** windows, windows-agent\
**Created:** [October 17, 2023, 11:39am UTC](https://community.icinga.com/t/place-checks-on-windows-server/12766 "2023-10-17T11:39:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![phylipp](https://community.icinga.com/user_avatar/community.icinga.com/phylipp/32/6310_2.png) [@phylipp](https://community.icinga.com/u/phylipp)\
**Post date:** [October 17, 2023, 11:39am UTC](https://community.icinga.com/t/place-checks-on-windows-server/12766/1 "2023-10-17T11:39:23Z")

</div>

Hey guys,

small question:

Now I developed some simple powershell scripts to check some things under windows on different windows-servers.  
On all my virtual windows-servers (100+) I installed the icinga2-agent which is connected to a satellite. This satellite is connected to a master with director management.

The most servers has there own customized scripts under “C:\Programm Files\ICINGA2\sbin\script1.ps1” (as e.g.).

How you do manage, that all of your windows-servers has the same scripts on that location without to place it manual on 100 servers?

Example: I wrote a new powershell-script that I need on every server to check some special things via powershell. What is the best way to publish this script to all servers to get it executed by icinga-agent?

Best regards,  
phylipp

---

<div class="post-metadata">

**Author:** ![ShowMeYourSkil](https://community.icinga.com/user_avatar/community.icinga.com/showmeyourskil/32/4975_2.png) [@ShowMeYourSkil](https://community.icinga.com/u/ShowMeYourSkil)\
**Post date:** [October 17, 2023, 1:16pm UTC](https://community.icinga.com/t/place-checks-on-windows-server/12766/2 "2023-10-17T13:16:57Z")

</div>

Hi @phylipp  
I have a script library on github. When I finally release a check to all servers, I push the changes to the repository. Every night Ansible downloads this repository and distributes the scripts to all Windows servers.

Best regards,  
David

---

<div class="post-metadata">

**Author:** ![rsx](https://community.icinga.com/user_avatar/community.icinga.com/rsx/32/2094_2.png) [@rsx](https://community.icinga.com/u/rsx)\
**Post date:** [October 17, 2023, 2:57pm UTC](https://community.icinga.com/t/place-checks-on-windows-server/12766/3 "2023-10-17T14:57:46Z")

</div>

> [@phylipp](#):
>
> What is the best way to publish this script to all servers to get it executed by icinga-agent?

Typical job for Ansible, Saltstack or similar tools.
