Closed pmormr closed 4 years ago
Would you be able to provide PR for this? I mean I can fix issues myself but the more people do it, the better Testimo can get.
Sure... I think I have it all figured out.
Tnx, tested and you're indeed right. Not sure why I assumed it works with filter :/
Released new version.
Test "Group Policy Legacy ADM Files"
The filter switch used for the test seems to include files with four character extensions (admx, adml) when searching. Using include instead of filter gets the intended result. It's like there's an implicit star on the end of it when you're using filter (e.g. *.adm*) judging from my tinkering just now.
Testimo.psm1 line 272
Get-ChildItem -Path "\\$Domain\SYSVOL\$Domain\policies" -ErrorAction Stop -Recurse -Include '*.adm' | Select-Object Name, FullName, CreationTime, LastWriteTime, Attributes