Created
March 27, 2024 20:31
-
-
Save Tcip/935057f390a62505bb0a106e04e28906 to your computer and use it in GitHub Desktop.
echo Windows Edition using the PowerShell environment variable POWERSHELL_DISTRIBUTION_CHANNEL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET _we="%POWERSHELL_DISTRIBUTION_CHANNEL%" | |
FOR /F "tokens=* delims=MSI:" %%G IN (%_we%) DO echo %%G | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
echo Windows Edition.bat
echo the name of the installed Windows Edition (Home, Pro, Education, Enterprise, etc) using the PowerShell environment variable POWERSHELL_DISTRIBUTION_CHANNEL. See also echo Windows Edition (variable version).bat.