Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Write-Host "Intermittent HDMI Audio Output AMD 7xxx Series Fix - Written by gReY"
- $main = Get-ChildItem "hklm:\system\currentcontrolset\control\video\" -erroraction silentlycontinue
- if ($main -ne $null) {
- $finalFolder = $null
- foreach($id in $main) {
- $zerofolder = $id.OpenSubKey("0000")
- if ($zerofolder) {
- $desc = $zerofolder.GetValue("AdapterDesc")
- if ($desc -ne $null -and $desc -match "^AMD Radeon HD 7\d\d\d Series$")
- {
- $finalFolder = $id.OpenSubKey("0000",$true)
- }
- }
- }
- if ($finalFolder -ne $null) {
- $key = "PP_SclkDeepSleepDisable"
- $value = $finalFolder.GetValue($key)
- if ($value -ne 1) {
- $finalFolder.SetValue($key,1,[Microsoft.Win32.RegistryValueKind]::DWord)
- Write-Host "Key set. Please restart to complete the process."
- } else {
- Write-Host "Key already set. Abort."
- }
- } else {
- Write-Host "Adapter wasn't found. Abort."
- }
- } else {
- Write-Host "Registry Folder wasn't found. Abort."
- }
- Write-Host "Press any key to continue..."
- $x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement