Server oder Workstation
Prüfen, ob Server oder nicht.
@echo off :CheckServer wmic os get caption | findstr "Server" if not ERRORLEVEL 1 (goto ISSERVER) else (goto ISWORKSTATION) :ISSERVER echo. echo %COMPUTERNAME% is a Windows Server goto END :ISWORKSTATION echo. echo %COMPUTERNAME% is a Windows Workstation goto END :END echo. pause
windows/batch/server-oder-workstation.txt · Zuletzt geändert: 12.12.2023 13:14 von Martin