mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-16 15:27:22 +00:00
Merge pull request #8895 from MaratMussabekov/patch-246
update script to support non-english versions of Windows
This commit is contained in:
commit
bc5943a664
@ -732,11 +732,11 @@ function IsDomainController
|
|||||||
|
|
||||||
function CheckOSSKU
|
function CheckOSSKU
|
||||||
{
|
{
|
||||||
$osname = $((gwmi win32_operatingsystem).Name).ToLower()
|
$osname = $((Get-ComputerInfo).WindowsProductName).ToLower()
|
||||||
$_SKUSupported = 0
|
$_SKUSupported = 0
|
||||||
Log "OSNAME:$osname"
|
Log "OSNAME:$osname"
|
||||||
$SKUarray = @("Enterprise", "Education", "IoT", "Windows Server")
|
$SKUarray = @("Enterprise", "Education", "IoT", "Windows Server")
|
||||||
$HLKAllowed = @("microsoft windows 10 pro")
|
$HLKAllowed = @("windows 10 pro")
|
||||||
foreach ($SKUent in $SKUarray)
|
foreach ($SKUent in $SKUarray)
|
||||||
{
|
{
|
||||||
if($osname.ToString().Contains($SKUent.ToLower()))
|
if($osname.ToString().Contains($SKUent.ToLower()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user