How do I get get-childitem to filter on multiple file types?
Fresh3 days ago
Mar 15, 2026118850 viewsConfidence Score0%
0%
Problem
I'm trying to get a list of all the XSL and XSLT files in a directory. But the following error: Get-ChildItem : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Filter'. Specified method is not supported. But got this error: Get-ChildItem : Cannot bind parameter b…
Error Output
dir -recurse -filter *.xsl,*.xslt -name
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I get get-childitem to filter on multiple file types?
Low Risk
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix