-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmnc.cmd
37 lines (34 loc) · 1.35 KB
/
mnc.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@echo off
cls
mode con:cols=70 lines=20
Title IT Vietnam 2023
color e
Echo ************************[USERNAME\HOSTNAME]>%temp%\IT.txt
echo.
(echo %username% & hostname) >>%temp%\IT.txt
(systeminfo | find /i "System Model" & systeminfo | find /i "Domain" & systeminfo | find /i "OS" & systeminfo | find /i "Total Physical Memory:")>>%temp%\IT.txt
echo.
echo.
wmic bios get serialnumber>>%temp%\IT.txt
echo.
wmic cpu get NumberOfCores,NumberOfLogicalProcessors,name /format:list>>%temp%\IT.txt
echo.
wmic diskdrive get model,index,serialnumber,size /format:list>>%temp%\IT.txt
echo.
wmic memorychip get serialnumber, partnumber, ConfiguredClockspeed, Speed, manufacturer /format:list>>%temp%\IT.txt
Echo ************************[IPv4 Ethernet]>>%temp%\IT.txt
echo.
IPCONFIG | FINDSTR /R "Ethernet* Address.*[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*">>%temp%\IT.txt
echo.
Echo ************************[IPv4 Wi-FI]>>%temp%\IT.txt
echo.
IPCONFIG | FINDSTR /R "Wi-fi* Address.*[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*">>%temp%\IT.txt
echo.
echo.
echo CARD MANG DA CONNECTED>>%temp%\IT.txt
getmac | FINDSTR /R "Tcpip* Address.*[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*">>%temp%\IT.txt
echo.
echo.
echo NIC card>>%temp%\IT.txt
wmic nic get caption, index | findstr /v "Index=1">>%temp%\IT.txt
start notepad.exe %temp%\IT.txt