Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $currentArray = (Get-Package -ProviderName Programs -Name "Microsoft*" -AllVersions).Name
- $ignoreArray= @(
- # Software that we will ignore
- "Microsoft OneDrive"
- "Microsoft Teams"
- "Microsoft Edge"
- "Microsoft Edge Update"
- "Microsoft Edge WebView2 Runtime"
- "Microsoft Visual C++ 2015-2022 Redistributable (x86) - 14.30.30708"
- "Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.30.30708"
- "Microsoft Teams"
- )
- $App_Array = $currentArray |Where-Object { $ignoreArray -notcontains $_ }
- $App_Array | clip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement