Complete Active Directory teaching environment based on dockurr/windows: - Windows Server domain controller, Windows 11 client, Debian 12 client - docker-compose orchestration, env-driven configuration - Bilingual documentation (FR + EN) for students - Dual approach (GUI + PowerShell) in every procedure - Instructor course plan and reference scripts - RDP launcher scripts for Linux, macOS and Windows Made by AcadéNice - https://acadenice.fr/
24 lines
751 B
Bash
Executable file
24 lines
751 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Ouvre une session RDP sur le poste client Windows (PC01).
|
|
# Fait par AcadéNice - https://acadenice.fr/
|
|
|
|
set -euo pipefail
|
|
|
|
PROJECT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
|
[ -f "$PROJECT_DIR/.env" ] && set -a && . "$PROJECT_DIR/.env" && set +a
|
|
|
|
HOST="127.0.0.1"
|
|
PORT="${CLIENT_RDP_PORT:-3391}"
|
|
USER="${RDP_CLIENT_USER:-LocalAdmin}"
|
|
PASSWORD="${RDP_CLIENT_PASSWORD:-${AD_ADMIN_PASSWORD:-AdminP@ss!2026}}"
|
|
SIZE="${RDP_SIZE:-1600x900}"
|
|
|
|
if command -v xfreerdp3 >/dev/null; then RDP=xfreerdp3
|
|
elif command -v xfreerdp >/dev/null; then RDP=xfreerdp
|
|
else echo "xfreerdp non installé" >&2; exit 1
|
|
fi
|
|
|
|
exec "$RDP" \
|
|
/v:"$HOST:$PORT" /u:"$USER" /p:"$PASSWORD" \
|
|
/cert:ignore +clipboard \
|
|
/size:"$SIZE" /dynamic-resolution
|