Power Shell Notes
Jump to navigation
Jump to search
Contents
1 Code Examples
1.1 Functions
2 Files and IO
2.1 Character Encoding
2.1.1 BOM
get-content -Encoding byte -ReadCount 4 -TotalCount 4 -Path "C:\file.txt"
3 Helpers
4 Snippets
(Get-ChildItem -Path "E:\Arbeitsordner" -Include @("*06 Öffentlich*", "*12 Schüler*", "*14 Säntis*", "*04 Gärtnerei*") -Recurse -Directory).FullName >> filesToDelete.log Get-ChildItem -Path "E:\Arbeitsordner" -Include @("*06 Öffentlich*", "*12 Schüler*", "*14 Säntis*", "*04 Gärtnerei*") -Recurse -Directory | Remove-Item -force -recurse -Verbose