1.7.29. fejezet, Képernyő felbontás ellenőrzése (Windows 11)

$width = ((Get-WmiObject -Class Win32_VideoController).VideoModeDescription  -split 'x')[0]
write-host($width)
if ($width -lt 7680) {
	$wshell = New-Object -ComObject Wscript.Shell
	$wshell.Popup("A képpernyő felbontása nem megfelelő! Indítsd a gépet Linux-al hogy helyreálljon.")
}