HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
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
}