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

posted @ 2021-01-02 13:18  晨风_Eric  阅读(77)  评论(0编辑  收藏  举报