HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Windows/diagnostics/system/Video/VF_aud_reg_settings.ps1
# Copyright © 2018, Microsoft Corporation. All rights reserved.


#*=================================================================================
# Load Utilities
#*=================================================================================
. ./utils_SetupEnv.ps1

#*=================================================================================
# Initialize 
#*=================================================================================

#*=================================================================================
#Run verifier logic
#*=================================================================================

$path = "registry::HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\audio"
$value = Get-ItemProperty -Path $path -Name DisableprotectedaudioDG -ErrorAction SilentlyContinue
if(($value) -and ((Get-Service "audiosrv" -ErrorAction SilentlyContinue) -ne $null))
{
   	update-diagrootcause -id "RC_ProtectedAudioDisabled" -detected $true
}
else
{
	update-diagrootcause -id "RC_ProtectedAudioDisabled" -detected $false
}