frgnca / AudioDeviceCmdlets

AudioDeviceCmdlets is a suite of PowerShell Cmdlets to control audio devices on Windows
MIT License
737 stars 92 forks source link

Get-AudioDevice -PlaybackCommunication #57

Closed LonleyViper closed 2 years ago

LonleyViper commented 2 years ago

I get the following error with this:

`Get-AudioDevice : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:1
+ Get-AudioDevice -PlaybackCommunication
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-AudioDevice], ParameterBindingException
    + FullyQualifiedErrorId : AmbiguousParameterSet,AudioDeviceCmdlets.GetAudioDevice`

Any help would be appreciated :D

LonleyViper commented 2 years ago

Okay I realise it's because I have the old version installed. I cannot uninstall it for some reason... even when I delete the module folder I cannot install the new version. It always reverts to the old version. Anyone able to help?

LonleyViper commented 2 years ago

Managed to uninstall with the below. I see now that the "release" DLL isnt the latest version from this branch....DOH

$modulePath = "<path>"
if (-not (Test-Path $modulePath)) {
    "There is no AudioDeviceCmdlets folder in $modulePath, doing nothing."
    break
}

takeown /F $modulePath /A /R
icacls $modulePath /reset
icacls $modulePath /grant Administrators:'F' /inheritance:d /T
Remove-Item -Path $modulePath -Recurse -Force -Confirm:$false
LonleyViper commented 2 years ago

Ive built it from source now and it works.

Thanks!

frgnca commented 2 years ago

Thank you @LonleyViper for taking the time to write this up, as I feel it might help others.