Schlagwort-Archive: dsquery

Windows Befehle fr die Systemprfung

Um ein Windows Server lokal oder von remote prfen zu knnen ist es i. d. R. notwendig einige Informationen zum Betriebssystem abzufragen. Ich habe ber die letzten Jahre ein paar ntzliche Befehle zusammen getragen und hoffe, dass Sie noch jemandem anderen helfen:

Alle Benutzer aus einem AD Auslesen:

dsquery user -d fragmichnicht.de -uc -limit 0 -o upn > c:\users.txt

Patchlevel lokal auslesen

wmic /output:c:
wmic /output:c:\0010_patchlevel.html qfe list full /format:hform
10_patchlevel.html qfe list full /format:hform

Patchlevel remote auslesen

wmic /node:127.0.0.1,127.0.0.2,127.0.0.3 /output:c:
wmic /node:127.0.0.1,127.0.0.2,127.0.0.3 /output:c:\0010_patchlevel.html qfe list full /format:hform
10_patchlevel.html qfe list full /format:hform

Prozesse lokal auslesen

wmic /output:c:
wmic /output:c:\0020_process.html process list full /format:hform
20_process.html process list full /format:hform

Prozesse remote auslesen

wmic /node:127.0.0.1 /output:c:
wmic /node:127.0.0.1 /output:c:\0020_process.html process list full /format:hform
20_process.html process list full /format:hform

Autostart lokal auslesen

wmic /output:c:
wmic /output:c:\0030_autostart.html startup list full /format:hform
30_autostart.html startup list full /format:hform

Autostart remote auslesen

wmic /node:127.0.0.1 /output:c:
wmic /node:127.0.0.1 /output:c:\0030_autostart.html startup list full /format:hform
30_autostart.html startup list full /format:hform

Hardware lokal auslesen

wmic /output:c:
wmic /output:c:\0040_cpu.html cpu list full /format:hform
40_cpu.html cpu list full /format:hform
wmic /output:c:
wmic /output:c:\0050_os.html os list full /format:hform
50_os.html os list full /format:hform
wmic /output:c:
wmic /output:c:\0060_computersystem.html computersystem list full /format:hform
60_computersystem.html computersystem list full /format:hform
wmic /output:c:
wmic /output:c:\0070_logicaldisk.html logicaldisk list full /format:hform
70_logicaldisk.html logicaldisk list full /format:hform
wmic /output:c:
wmic /output:c:\0080_csproduct.html csproduct list full /format:hform
80_csproduct.html csproduct list full /format:hform

Hardware remote auslesen

wmic /node:127.0.0.1 /output:c:
wmic /node:127.0.0.1 /output:c:\0040_cpu.html cpu list full /format:hform
40_cpu.html cpu list full /format:hform
wmic /node:127.0.0.1 /output:c:
wmic /node:127.0.0.1 /output:c:\0050_os.html os list full /format:hform
50_os.html os list full /format:hform
wmic /node:127.0.0.1 /output:c:
wmic /node:127.0.0.1 /output:c:\0060_computersystem.html computersystem list full /format:hform
60_computersystem.html computersystem list full /format:hform
wmic /node:127.0.0.1 /output:c:
wmic /node:127.0.0.1 /output:c:\0070_logicaldisk.html logicaldisk list full /format:hform
70_logicaldisk.html logicaldisk list full /format:hform
wmic /node:127.0.0.1 /output:c:
wmic /node:127.0.0.1 /output:c:\0080_csproduct.html csproduct list full /format:hform
80_csproduct.html csproduct list full /format:hform

Lokale Benutzer anzeigen

net user

Loakle Gruppen anzeigen

net localgroup

Mitglieder von bestimmten Gruppen anzeigen

net localgroup administrators

Laufende Services anzeigen

net start

Netzwerkverbindungen

netstat -nao