mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-16 07:17:24 +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
|
||||
{
|
||||
$osname = $((gwmi win32_operatingsystem).Name).ToLower()
|
||||
$osname = $((Get-ComputerInfo).WindowsProductName).ToLower()
|
||||
$_SKUSupported = 0
|
||||
Log "OSNAME:$osname"
|
||||
$SKUarray = @("Enterprise", "Education", "IoT", "Windows Server")
|
||||
$HLKAllowed = @("microsoft windows 10 pro")
|
||||
$HLKAllowed = @("windows 10 pro")
|
||||
foreach ($SKUent in $SKUarray)
|
||||
{
|
||||
if($osname.ToString().Contains($SKUent.ToLower()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user