From b1d6698768c29dbaa32494b77e84b387b454972f Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Mon, 5 Aug 2024 11:15:46 +0200 Subject: [PATCH] . --- optional/install-rsat-online.cmd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/optional/install-rsat-online.cmd b/optional/install-rsat-online.cmd index 1e4f0b9..8c9f9cb 100644 --- a/optional/install-rsat-online.cmd +++ b/optional/install-rsat-online.cmd @@ -1,4 +1,6 @@ @echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b echo ####### %0 ####### @@ -7,4 +9,5 @@ powershell -Command "Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS echo. echo ####### %0 ####### +pause