Get-JobList
-JobFilter
Doesn't Handle Multiple Wildcarded Items Correctly
#9572
Labels
Get-JobList
-JobFilter
Doesn't Handle Multiple Wildcarded Items Correctly
#9572
Verified issue does not already exist?
I have searched and found no existing issue
What error did you receive?
No Error. Usage like
Find-DbaAgentJob -JobName filter*, filter2*
does not return any items unless your Agent Jobs have the asterisks in their name. This impacts cmdlets likeFind-DbaAgentJob
.Steps to Reproduce
Please confirm that you are running the most recent version of dbatools
Other details or mentions
Latest development branch shows this issue.
dbatools/private/functions/Get-JobList.ps1
Lines 72 to 77 in 3dba5fd
A loop would be required or a piped
-like
to handle multi-wildcards.What PowerShell host was used when producing this error
PowerShell Core (pwsh.exe)
PowerShell Host Version
SQL Server Edition and Build number
.NET Framework Version
The text was updated successfully, but these errors were encountered: