Windows Command Line - Memory Management

Windows Command Line - Memory Management

How to use Systeminfo
systeminfo

image-20201226201709898

Windows Management Interface(WMI)
wmic memorychip

image-20210102124449175

Get-WmiObject CIM_PHYSICALMEMORY | Out-GridView

image-20210102125136154

wmic memorychip list full

image-20210102125730923

Memory Diagnostic
mdsched

image-20210102130202272

Defragmentation
defrag C:
defrag C:/U
PS C:\Users\EricWee> defrag

Microsoft Drive Optimizer
copyright (c) 2013 Microsoft Corp.

Description:

	Optimizes and defragments files on local volumes to
	improve system performance.

Syntax:

	defrag <volumes> | /C | /E <volumes> [<task(s)>] [/H] [/M [n] | [/U] [/V]] [/I n]

	Where <task(s)> is omitted (Traditional defrag), or as follows:
		/A | [/D] [/K] [/L] | /O | /X

	Or, to track an operation already in progress on a volume:
	defrag <volume> /T

Parameters:

	Value	Description

	/A	Perform analysis on the specified volumes.

	/C	Perform the operation on all volumes.

	/D	Perform Traditional defrag (this is the default).

	/E	Perform the operation on all volumes except those specified.

	/G	Optimize the storage tiers on the specified volumes.

	/H	Run the operation at normal priority (default is low).

	/I n	Tier optimization would run for at most n seconds on each volume.

	/K	Perform slab consolidation on the specified volumes.

	/L	Perform retrim on the specified volumes.

	/M [n]	Run the operation on each volume in parallel in the background.
		At most n threads optimize the storage tiers in parallel.

	/O	Perform the proper optimization for each media type.

	/T	Track an operation already in progress on the specified volume.

	/U	Print the progress of the operation on the screen.

	/V	Print verbose output containing the fragmentation statistics.

	/X	Perform free space consolidation on the specified volumes.

Examples:

	defrag C: /U /V
	defrag C: D: /M
	defrag C:\mountpoint /A /U
	defrag /C /H /V

image-20210102131334343

Driverquery

driverquery -si

image-20210102131649650

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...