feat: Update TS Install DCU for Dell Inc. & Update Join Domain 3e octets
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
@echo off
|
||||
REM Script de lancement pour la synchronisation vers C:\MDT
|
||||
|
||||
REM Verifier si PowerShell est disponible
|
||||
where powershell >nul 2>nul
|
||||
if %errorlevel% neq 0 (
|
||||
echo ERREUR: PowerShell n'est pas disponible
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Obtenir le repertoire du script
|
||||
set "ScriptDir=%~dp0"
|
||||
set "PowerShellScript=%ScriptDir%Sync-ToMDT.ps1"
|
||||
|
||||
REM Verifier que le script existe
|
||||
if not exist "%PowerShellScript%" (
|
||||
echo ERREUR: Le script PowerShell n a pas ete trouve
|
||||
echo Attendu: %PowerShellScript%
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Afficher le menu
|
||||
cls
|
||||
echo ===============================================
|
||||
echo Synchronisation vers C:\MDT
|
||||
echo ===============================================
|
||||
echo.
|
||||
echo 1. Mode DRY-RUN (afficher ce qui serait fait)
|
||||
echo 2. Synchroniser MAINTENANT (vrai changement)
|
||||
echo 3. Quitter
|
||||
echo.
|
||||
|
||||
set /p choice="Choisissez une option (1-3): "
|
||||
|
||||
if "%choice%"=="1" (
|
||||
echo.
|
||||
echo Mode DRY-RUN...
|
||||
echo.
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%PowerShellScript%" -DryRun
|
||||
pause
|
||||
) else if "%choice%"=="2" (
|
||||
echo.
|
||||
echo.
|
||||
echo [!] ATTENTION: Vous allez effectuer une synchronisation REELLE
|
||||
echo.
|
||||
set /p confirm="Etes-vous sur? (O/N): "
|
||||
if /i "%confirm%"=="O" (
|
||||
echo.
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%PowerShellScript%"
|
||||
pause
|
||||
) else (
|
||||
echo Operation annulee
|
||||
pause
|
||||
)
|
||||
) else if "%choice%"=="3" (
|
||||
exit /b 0
|
||||
) else (
|
||||
echo Choix invalide
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
Reference in New Issue
Block a user