import depuis ancien GitHub

This commit is contained in:
David Wuibaille
2025-10-31 08:38:13 +01:00
parent 6f3aeedc93
commit 6a2f2de58e
745 changed files with 178444 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# Retrieve the Preferred Server Based on the IP Address
![GetMyPreferedServer Screenshot](https://blog.wuibaille.fr/wp-content/uploads/2024/04/GetMyPreferedServer.png)
This script allows you to **identify the preferred server** for a device, based on its **IP address**, by querying a central SQL database.
---
## 🔧 Configuration
Before using the script, update the following lines with your SQL connection details:
```powershell
$dataSource = "InstanceSQL"
$user = "SQLAccount"
$PassSQL = "SQLPassword"
$database = "DatabaseName"
```
Make sure the account has permission to query the relevant table containing IP/server associations