IT Diary (Oct 2022)

Install Windows 10/Windows 11 from a boot stick

Open a command prompt and run the commands below. The following solution will support USB sticks with up to 32GB. Caution, this will erase all data on the selected disk.

diskpart
lis dis
sel dis # where # is the number of the disk you want to format. Think twice before the next step
cle
cre par pri
sel par 1
act
format quick fs=fat32

ass
exit

Double-click the iso and copy the content to the stick. You will not be able to copy the install.wim since it’s too large. Split it with dism:

Dism /Split-Image /ImageFile:h:\sources\install.wim /SWMFile:d:\sources\install.swm /FileSize:3800

Configuration Manager Naming History

1994    System Management Server (SMS)

2007    System Center Configuration Manager (SCCM)

2019    Microsoft Endpoint Manager Configuration Manager (MEMCM or MECM)

2022    Microsoft Configuration Manager (MCM)

Query to detect BitLocker status

Requires the inventory classes BitLocker and TPM to be enabled. By default, they are not.

select v_R_System.Name0, v_R_System.User_Name0, EV.Driveletter0, EV.ProtectionStatus0, TPM.IsReady0, * from v_GS_ENCRYPTABLE_VOLUME as EV
left join v_R_System on v_R_System.ResourceID = EV.ResourceID
left join v_GS_TPM_STATUS as TPM on TPM.ResourceID = EV.ResourceID
where EV.DriveLetter0 like 'C:' and v_R_System.Operating_System_Name_and0 like '%Workstation%' and EV.ProtectionStatus0 = '0'
order by EV.ProtectionStatus0