**Dies ist eine alte Version des Dokuments!**
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
notes/windows/batch/server-oder-workstation.1634835233.txt.gz · Zuletzt geändert: 21.10.2021 16:53 von Martin