mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-16 23:37:22 +00:00
Update dg-readiness-tool.md
This commit is contained in:
parent
2a3e536a5c
commit
10a7156ee9
@ -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