mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-13 22:07:22 +00:00
Merge pull request #6575 from illfated/wddg-wdcg-hwr-tool
WDDG & WDCG HW readiness tool: typo & Arch Locale
This commit is contained in:
commit
5963793a0d
@ -14,11 +14,13 @@ ms.collection: M365-identity-device-management
|
|||||||
ms.topic: article
|
ms.topic: article
|
||||||
ms.reviewer:
|
ms.reviewer:
|
||||||
---
|
---
|
||||||
|
|
||||||
# Windows Defender Device Guard and Windows Defender Credential Guard hardware readiness tool
|
# Windows Defender Device Guard and Windows Defender Credential Guard hardware readiness tool
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
# Script to find out if machine is Device Guard compliant
|
# Script to find out if a machine is Device Guard compliant.
|
||||||
# requires driver verifier on system.
|
# The script requires a driver verifier present on the system.
|
||||||
|
|
||||||
param([switch]$Capable, [switch]$Ready, [switch]$Enable, [switch]$Disable, $SIPolicyPath, [switch]$AutoReboot, [switch]$DG, [switch]$CG, [switch]$HVCI, [switch]$HLK, [switch]$Clear, [switch]$ResetVerifier)
|
param([switch]$Capable, [switch]$Ready, [switch]$Enable, [switch]$Disable, $SIPolicyPath, [switch]$AutoReboot, [switch]$DG, [switch]$CG, [switch]$HVCI, [switch]$HLK, [switch]$Clear, [switch]$ResetVerifier)
|
||||||
|
|
||||||
$path = "C:\DGLogs\"
|
$path = "C:\DGLogs\"
|
||||||
@ -774,13 +776,13 @@ function CheckOSArchitecture
|
|||||||
{
|
{
|
||||||
$OSArch = $(gwmi win32_operatingsystem).OSArchitecture.ToLower()
|
$OSArch = $(gwmi win32_operatingsystem).OSArchitecture.ToLower()
|
||||||
Log $OSArch
|
Log $OSArch
|
||||||
if($OSArch.Contains("64-bit"))
|
if($OSArch -match ("^64\-?\s?bit"))
|
||||||
{
|
{
|
||||||
LogAndConsoleSuccess "64 bit archictecture"
|
LogAndConsoleSuccess "64 bit architecture"
|
||||||
}
|
}
|
||||||
elseif($OSArch.Contains("32-bit"))
|
elseif($OSArch -match ("^32\-?\s?bit"))
|
||||||
{
|
{
|
||||||
LogAndConsoleError "32 bit archictecture"
|
LogAndConsoleError "32 bit architecture"
|
||||||
$DGVerifyCrit.AppendLine("32 Bit OS, OS Architecture failure.") | Out-Null
|
$DGVerifyCrit.AppendLine("32 Bit OS, OS Architecture failure.") | Out-Null
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -959,7 +961,7 @@ function PrintToolVersion
|
|||||||
LogAndConsole ""
|
LogAndConsole ""
|
||||||
LogAndConsole "###########################################################################"
|
LogAndConsole "###########################################################################"
|
||||||
LogAndConsole ""
|
LogAndConsole ""
|
||||||
LogAndConsole "Readiness Tool Version 3.7.1 Release. `nTool to check if your device is capable to run Device Guard and Credential Guard."
|
LogAndConsole "Readiness Tool Version 3.7.2 Release. `nTool to check if your device is capable to run Device Guard and Credential Guard."
|
||||||
LogAndConsole ""
|
LogAndConsole ""
|
||||||
LogAndConsole "###########################################################################"
|
LogAndConsole "###########################################################################"
|
||||||
LogAndConsole ""
|
LogAndConsole ""
|
||||||
@ -1182,7 +1184,7 @@ if($Enable)
|
|||||||
if(!$_isRedstone)
|
if(!$_isRedstone)
|
||||||
{
|
{
|
||||||
LogAndConsole "OS Not Redstone, enabling IsolatedUserMode separately"
|
LogAndConsole "OS Not Redstone, enabling IsolatedUserMode separately"
|
||||||
#Enable/Disable IOMMU seperately
|
#Enable/Disable IOMMU separately
|
||||||
ExecuteCommandAndLog 'DISM.EXE /Online /Enable-Feature:IsolatedUserMode /NoRestart'
|
ExecuteCommandAndLog 'DISM.EXE /Online /Enable-Feature:IsolatedUserMode /NoRestart'
|
||||||
}
|
}
|
||||||
$CmdOutput = DISM.EXE /Online /Enable-Feature:Microsoft-Hyper-V-Hypervisor /All /NoRestart | Out-String
|
$CmdOutput = DISM.EXE /Online /Enable-Feature:Microsoft-Hyper-V-Hypervisor /All /NoRestart | Out-String
|
||||||
@ -1251,7 +1253,7 @@ if($Disable)
|
|||||||
if(!$_isRedstone)
|
if(!$_isRedstone)
|
||||||
{
|
{
|
||||||
LogAndConsole "OS Not Redstone, disabling IsolatedUserMode separately"
|
LogAndConsole "OS Not Redstone, disabling IsolatedUserMode separately"
|
||||||
#Enable/Disable IOMMU seperately
|
#Enable/Disable IOMMU separately
|
||||||
ExecuteCommandAndLog 'DISM.EXE /Online /disable-Feature /FeatureName:IsolatedUserMode /NoRestart'
|
ExecuteCommandAndLog 'DISM.EXE /Online /disable-Feature /FeatureName:IsolatedUserMode /NoRestart'
|
||||||
}
|
}
|
||||||
$CmdOutput = DISM.EXE /Online /disable-Feature /FeatureName:Microsoft-Hyper-V-Hypervisor /NoRestart | Out-String
|
$CmdOutput = DISM.EXE /Online /disable-Feature /FeatureName:Microsoft-Hyper-V-Hypervisor /NoRestart | Out-String
|
||||||
@ -1371,7 +1373,6 @@ if($Capable)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# SIG # Begin signature block
|
# SIG # Begin signature block
|
||||||
## REPLACE
|
## REPLACE
|
||||||
# SIG # End signature block
|
# SIG # End signature block
|
||||||
|
Loading…
x
Reference in New Issue
Block a user