
Wmic diskdrive list full /format:hform >PCinfo.html Wmic computersystem list brief /format:hform >PCinfo.html Wmic os list full /format:hform >PCinfo.html Wmic cpu list full /format:hform >PCinfo.html Wmic baseboard list brief /format:hform >PCinfo.html Wmic bios list brief /format:hform > PCinfo.html :: System information output to HTML file, see help: wmic /? The current system BIOS, CPU, motherboard and other information are output to an HTML web page file, the commands are as follows: ((wmic logicaldisk where “drivetype = 2” get name | find “no available paradigm”) > nul 2 > nul) | for / F “skip = 1 tokens = * delims =”%% I in (‘wmic logicaldisk where “drivetype = 2” get name’) do echo U disc character is%% i%i%i%i% Wmic process where caption=’filename.exe’ get WorkingSetSize,PeakWorkingSetSize Get the current memory occupied by the process and the maximum memory occupied: Wmic PageFileSet where “name=’C:\\pagefile.sys'” delete Wmic PageFileSet create name=”E:\\pagefile.sys”,InitialSize=”1024″,MaximumSize=”1024″ It will take effect after restarting the computer. Set up virtual memory to disk E and delete the page files under disk C. Wmic PageFileSet set InitialSize=”512″,MaximumSize=”512″ Get screen resolution wmic DESKTOPMONITOR where Status=’ok’get ScreenHeight, ScreenWidth Wmic searches a file in its entirety and gets its directoryįor /f “skip=1 tokens=1*” %i in (‘wmic datafile where “FileName=’qq’ and extension=’exe'” get drive^,path’) do (set %qPath:~0,-3%) Otepad.exe” get CreationDate^,LastAccessed^,LastModified’) do (Įcho file: c: windows system 32 notepad. ” %%a in (‘wmic datafile where name^=”c:\\windows\\system32 Wmic Gets the Time of File Creation, Access and offįor /f “skip=1 tokens=1,3,5 delims=. Wmic memlogical get TotalPhysicalMemory|find /i /v “t” Wmic process where “name=’explorer.exe’ and executablepath’%SystemDrive%\\windows\\explorer.exe'” delete Wmic terminates suspicious processes (depending on the process’s startup path) Wmic USERACCOUNT where “name=’%UserName%'” call rename newUserName Wmic computersystem where “caption=’%ComputerName%'” call rename newcomputername Wmic /node:192.168.1.10/user:administrator /password:123456 process call create “shutdown.exe -r -f -m” Wmic /node:192.168.1.10 /user:administrator /password:123456 process call create cmd.exe Wmic process call create “C:\Program Files\Tencent\QQ\QQ.exe” Wmic deletes the specified process (according to process PID): Wmic process where name=”qq.exe” call terminate Wmic deletes the specified process (according to the process name):

Wmic gets the process name and executable path:
