Profil Bereinigung (Powershell Schlaufe)

Ordnerschlaufe durcharbeiten:

 

$ProfilListe = Get-ChildItem -Path D:\ProfilesTS\

 

foreach($Profil in $ProfilListe){

   Remove-Item -Path „D:\ProfilesTS\$($Profil.Name)\Win2016v6\UPM_Profile\AppData\Local\Google\Chrome\User Data“ -Force -Recurse

   Remove-Item -Path „D:\ProfilesTS\$($Profil.Name)\Win2016v6\UPM_Profile\AppData\Local\Microsoft\Edge\User Data“ -Force -Recurse

}