Windows notes

From Mann Systems
Jump to: navigation, search

Determine version and build of a Windows ISO file

Mount the ISO file, then run:

C:\Windows\system32>dism /Get-WimInfo /WimFile:K:\sources\install.wim /index:2

Deployment Image Servicing and Management tool
Version: 10.0.17763.1

Details for image : K:\sources\install.wim

Index : 2
Name : Windows Server 2019 Standard Evaluation (Desktop Experience)
Description : This option installs the full Windows graphical environment, consuming extra drive space. It can be useful if you want to use the Windows desktop or have an app that requires it.
Size : 14,306,174,003 bytes
WIM Bootable : No
Architecture : x64
Hal : <undefined>
Version : 10.0.17763
ServicePack Build : 379
ServicePack Level : 0
Edition : ServerStandardEval
Installation : Server
ProductType : ServerNT
ProductSuite : Enterprise
System Root : WINDOWS
Directories : 21904
Files : 101869
Created : 12/03/2019 - 07:40:05
Modified : 12/03/2019 - 08:04:00
Languages :
        en-US (Default)

The operation completed successfully.

Set screen lock monitor power-off timeout

By default, Windows waits a minute after the screen is locked before switching off the monitor. The following sets it to 5 seconds.

C:\Windows\system32>powercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK 5
C:\Windows\system32>powercfg /setactive SCHEME_CURRENT