Skip to content

install-crystal-disk-info

Installs CrystalDiskInfo

#requires -version 5.1

try {
	"⏳ Installing CrystalDiskInfo from Microsoft Store, please wait..."
	$stopWatch = [system.diagnostics.stopwatch]::startNew()

	& winget install "CrystalDiskInfo" --source msstore --accept-package-agreements --accept-source-agreements
	if ($lastExitCode -ne 0) { throw "Can't install CrystalDiskInfo, is it already installed?" }

	int]$elapsed = $stopWatch.Elapsed.TotalSeconds
        "✅ CrystalDiskInfo installed successfully in $($elapsed)s."
	exit 0
} catch {
throw
}

This script has no configurable parameters.

An interactive directory of PowerShell scripts.