From 2cec4e795e3b8d87df8fb0d55de50450d29fdd11 Mon Sep 17 00:00:00 2001 From: Ralf Koop Date: Thu, 11 Jan 2024 08:09:39 +0100 Subject: [PATCH] . --- Eingang/where-filter.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Eingang/where-filter.md diff --git a/Eingang/where-filter.md b/Eingang/where-filter.md new file mode 100644 index 0000000..e89bd4b --- /dev/null +++ b/Eingang/where-filter.md @@ -0,0 +1,17 @@ +## Abfrage where nach einer Liste filtern + +Mittwoch, 10. Januar 2024 +16:32 + +You can then read in this file as array with + +$list= Get-Content -Path "" + +Next combine this list to build the pattern like + +$pattern= (($list| ForEach-Object {[regex]::Escape($_)}) –join"|") +and do + +Get-AppxPackage | Where-Object {$_.name -notmatch $pattern} + +Aus \ No newline at end of file