Hi Hamcat,
welcome to the RME user forum and thanks for sharing your work.
After some evaluation it turns out that this is not as easy as it looks.
First of all, I discovered with a KI generated check script (I personally have no powershell skills)
that WDM entries in the registry are not automatically present.
I know of the bad quality of KI generated answers and also code, but this one seems to work
as it finds some entries for all interfaces.
From the results it seems that I can only change the name of a WDM device if the entry is present,
and this seems to be only the case, if the WDM devices has been created already.
Perhaps you did it upfront, but most people only activate the needed ones, normally only a few.
The next thing is that such entries are additionally created only for a certain sample rate.
So to change the names of all interfaces and ports, it seems as if you had to create WDM devices at every sample rate.
Currently this is only a suspicion, but it looks like this, see the different entries in the 2nd code block with different sample rate.
If the objective is to change the sample rate for all of my interfaces
- HDSPe MADI FX
- UFX III
- ADI-2 Pro R BE
It looks as if I had to create WDM devices upfront
- for all interfaces
- for all ports
- at all sample rates.
Currently its only a theory that those entries stay in the registry.
I can only assume that I created so many WDM devices just for a test.
If they would be deleted if you remove the WDM entry in RME driver settings,
this would be bad, because then they would be created dynamically again with standard names
and you would have to repeat the whole procedure.
I think this is more easily doable in a controlled way if you have one interface with not so many ports.
But this doesn't seem to be an easy approach for one or more interfaces with a lot of ports.
I hope my observations are correct.
For me it appears to be too much work to perform all this
and I do not know whether it really pays out or if I introduce changes, that might also be wrong,
according to the number of ports I would have to check. For ports, I would never use.
Usually I have only one WDM device in use and I can easily find it in Windows Sound.
Nevertheless, thanks again for sharing your work.
# ps script for reading WDM keys
$render = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render"
$wdmKey = "{233164c8-1b2c-4c7d-bc68-b671687a2567},1"
Write-Host ""
Write-Host "=== RME WDM-Geraete ===" -ForegroundColor Cyan
Write-Host ""
$count = 0
Get-ChildItem $render | ForEach-Object {
$propsPath = "$($_.PSPath)\Properties"
$props = Get-ItemProperty $propsPath -EA SilentlyContinue
$deviceString = $props."{b3f8fa53-0004-438e-9003-51a46e139bfc},6"
if ($deviceString -notlike "*RME*") { return }
$wdm = $props.$wdmKey
$currentName = $props."{a45c254e-df1c-4efd-8020-67d146a850e0},2"
# Korrekte Regex: letztes Segment nach dem letzten Backslash
$key = ([regex]::Match($wdm, '[^\\]+$')).Value
Write-Host "Geraet : $deviceString" -ForegroundColor Yellow
Write-Host "Aktueller Name: $currentName"
Write-Host "WDM-Schluessel: $key"
Write-Host "---"
$count++
}
if ($count -eq 0) {
Write-Host "Keine RME-Geraete gefunden." -ForegroundColor Red
}
Write-Host ""
Write-Host "$count Eintraege gefunden." -ForegroundColor Cyan
Write-Host ""
Read-Host "Enter zum Schliessen"
The result
=== RME WDM-Geraete ===
Geraet : RME HDSPe MADI FX
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME ADI-2 Pro
Aktueller Name: Digitale Ausgabe
WDM-Schluessel: mfacewave027_44
---
Geraet : RME UFX III USB 3.0
Aktueller Name: MADI (63+64)
WDM-Schluessel: mfacewave092_44
---
Geraet : RME ADI-2 Pro
Aktueller Name: Digitale Ausgabe
WDM-Schluessel: mfacewave111_44
---
Geraet : RME HDSPe MADI FX
Aktueller Name: Phones
WDM-Schluessel: madifx03_44
---
Geraet : RME UFX III USB 3.0
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME ADI-2 Pro
Aktueller Name: SPDIF
WDM-Schluessel: mfacewave111_192
---
Geraet : RME ADI-2 Pro
Aktueller Name: Analog (1+2)
WDM-Schluessel: mfacewave025_192
---
Geraet : RME UFX III USB 2.0
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME HDSPe MADI FX
Aktueller Name: Lautsprecher
WDM-Schluessel: madifx02_96
---
Geraet : RME UFX III USB 2.0
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME UFX III USB 3.0
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME HDSPe MADI FX
Aktueller Name: MADI (3+4)
WDM-Schluessel: madifx05_44
---
Geraet : RME ADI-2 Pro
Aktueller Name: Phones
WDM-Schluessel: mfacewave026_44
---
Geraet : RME ADI-2 Pro
Aktueller Name: AES
WDM-Schluessel: mfacewave027_44
---
Geraet : RME ADI-2 Pro
Aktueller Name: SPDIF
WDM-Schluessel: mfacewave111_44
---
Geraet : RME ADI-2 Pro
Aktueller Name: Kopfhörer
WDM-Schluessel: mfacewave026_96
---
Geraet : RME ADI-2 Pro
Aktueller Name: Phones
WDM-Schluessel: mfacewave026_48
---
Geraet : RME ADI-2 Pro
Aktueller Name: SPDIF
WDM-Schluessel: mfacewave111_48
---
Geraet : RME HDSPe MADI FX
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME ADI-2 Pro
Aktueller Name: Analog (1+2)
WDM-Schluessel: mfacewave025_44
---
Geraet : RME HDSPe MADI FX
Aktueller Name: MADI (1+2)
WDM-Schluessel: madifx04_44
---
Geraet : RME UFX III USB 3.0
Aktueller Name: Analog (11+12)
WDM-Schluessel: mfacewave030_44
---
Geraet : RME ADI-2 Pro
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME ADI-2 Pro
Aktueller Name: Kopfhörer
WDM-Schluessel: mfacewave026_44
---
Geraet : RME ADI-2 Pro
Aktueller Name: Ausgang
WDM-Schluessel: mfacewave025_44
---
Geraet : RME UFX III USB 2.0
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME HDSPe MADI FX
Aktueller Name: MADI (1-8)
WDM-Schluessel: madifx04_44_8
---
Geraet : RME HDSPe MADI FX
Aktueller Name: MADI (151+152)
WDM-Schluessel: madifx79_44
---
Geraet : RME HDSPe MADI FX
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME ADI-2 Pro
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME UFX III USB 2.0
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME ADI-2 Pro
Aktueller Name: AES
WDM-Schluessel: mfacewave027_48
---
Geraet : RME ADI-2 Pro
Aktueller Name: Ausgang
WDM-Schluessel: mfacewave025_96
---
Geraet : RME ARC
Aktueller Name: Interne AUX-Buchse
WDM-Schluessel:
---
Geraet : RME HDSPe MADI FX
Aktueller Name: Lautsprecher
WDM-Schluessel: madifx02_32
---
Geraet : RME HDSPe MADI FX
Aktueller Name: Lautsprecher
WDM-Schluessel: madifx02_44
---
Geraet : RME HDSPe MADI FX
Aktueller Name: MADI (9-16)
WDM-Schluessel: madifx05_44_8
---
Geraet : RME UFX III USB 3.0
Aktueller Name: Analog (1+2)
WDM-Schluessel: mfacewave025_44
---
Geraet : RME HDSPe MADI FX
Aktueller Name: Lautsprecher
WDM-Schluessel: madifx02_96
---
Geraet : RME ADI-2 Pro
Aktueller Name: Digitale Ausgabe
WDM-Schluessel: mfacewave111_96
---
Geraet : RME HDSPe MADI FX
Aktueller Name: MADI (1+2)
WDM-Schluessel: madifx04_44
---
Geraet : RME HDSPe MADI FX
Aktueller Name: Lautsprecher
WDM-Schluessel: madifx02_48
---
Geraet : RME HDSPe MADI FX
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME HDSPe MADI FX
Aktueller Name: Lautsprecher
WDM-Schluessel: madifx02_88
---
Geraet : RME ADI-2 Pro
Aktueller Name: Digitale Ausgabe
WDM-Schluessel: mfacewave027_96
---
Geraet : RME ADI-2 Pro
Aktueller Name: Phones
WDM-Schluessel: mfacewave026_192
---
Geraet : RME HDSPe MADI FX
Aktueller Name: MADI (1+2)
WDM-Schluessel: madifx04_48
---
Geraet : RME UFX III USB 3.0
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME UFX III USB 3.0
Aktueller Name: Brücke
WDM-Schluessel:
---
Geraet : RME ADI-2 Pro
Aktueller Name: Analog (1+2)
WDM-Schluessel: mfacewave025_48
---
Geraet : RME HDSPe MADI FX
Aktueller Name: Lautsprecher
WDM-Schluessel: madifx02_192
---
Geraet : RME ADI-2 Pro
Aktueller Name: AES
WDM-Schluessel: mfacewave027_192
---
53 Eintraege gefunden.
BR Ramses - HDSPe MADI FX, M-1620 Pro D, 12Mic, UFX III, ADI-2 Pro FS R BE, Nuendo 15, Win10 IoT Ent