System.Management.Automation.CmdletInvocationException: No AudioDevice with that Index ---> System.ArgumentException: No AudioDevice with that Index
at AudioDeviceCmdlets.GetAudioDevice.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at PowershellRM.Measure.Invoke() (Rounded\RoundVolume\RoundVolume_1.ini - [NextInputIndex])
Is there a way to stop this? I'm not worried if not, as it's only a minor thing. I mean, how many times are you likely to keep scrolling down once you know that's the last device?!
System.Management.Automation.CmdletInvocationException: No AudioDevice with that Index ---> System.ArgumentException: No AudioDevice with that Index
at AudioDeviceCmdlets.GetAudioDevice.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at PowershellRM.Measure.Invoke() (Rounded\RoundVolume\RoundVolume_1.ini - [NextInputIndex])
Is there a way to stop this? I'm not worried if not, as it's only a minor thing. I mean, how many times are you likely to keep scrolling down once you know that's the last device?!
Sorry for not responding, I must have either missed the mail alert for this or forgot to respond. The solution is very simple, just enclose the related commands / line into a try {...} block and add a catch {} to it, since the latter is required even if not used. See details about it here.