forked from hks9999/windows10_get_systeminformation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget.bat
58 lines (48 loc) · 2.9 KB
/
get.bat
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@echo off
echo.
set SAVE_DIR=%appdata%\Microsoft\
set SAVE_FILE=%SAVE_DIR%sys.txt
set XAVE_FILE=%SAVE_DIR%dump.txt
echo ************************************************************************************************* >> %SAVE_FILE%
echo dir %SAVE_DIR% >> %XAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
dir %SAVE_DIR% >> %XAVE_FILE%
echo. >> %XAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
echo net user >> %SAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
net user >> %SAVE_FILE%
echo. >> %SAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
echo ipconfig >> %SAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
ipconfig /all >> %SAVE_FILE%
echo. >> %SAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
echo netstat -nao >> %SAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
netstat -nao >> %SAVE_FILE%
echo. >> %SAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
echo tasklist /v >> %SAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
tasklist /v >> %SAVE_FILE%
echo. >> %SAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
echo reg query HKLM\system\currentcontrolset\enum\usbstor >> %SAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
reg query HKLM\system\currentcontrolset\enum\usbstor >> %SAVE_FILE%
echo. >> %SAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
echo reg query "HKCU\Software\Microsoft\Terminal Server Client\Servers" >> %SAVE_FILE%
echo reg query "HKCU\Software\Microsoft\Terminal Server Client\Default" >> %SAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
systeminfo >> %SAVE_FILE%
echo. >> %SAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
echo reg query HKLM\system\currentcontrolset\enum\usbstor >> %SAVE_FILE%
echo ************************************************************************************************* >> %SAVE_FILE%
reg query HKLM\system\currentcontrolset\enum\usbstor >> %SAVE_FILE%
echo. >> %SAVE_FILE%
EXIT
exit