Skip to content

Instantly share code, notes, and snippets.

View Solksjaer's full-sized avatar
🏠
Working from home

Oscar Pinilla Solksjaer

🏠
Working from home
  • Cognizant GmbH
View GitHub Profile
@runxel
runxel / apple-crap-destroyer.ps1
Last active April 26, 2024 08:31
Powershell script for deleting unwanted apple crap files
# powershell script for deleting unwanted apple crap files – mostly on "infected" USB-sticks
# like ._somecrap
$theSource = "E:\" # <<<<< insert drive here
Get-Childitem $theSource -Include @("._*", ".DS_Store", ".fseventsd", ".TemporaryItems", ".Trashes", ".Spotlight-V100") -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Force -Recurse