![Task Scheduler ile Dosya ve Klasör silme PowerShell ile Dosya ve Klasör silme 1 image 3](https://i0.wp.com/arifakyuz.com/wp-content/uploads/2021/12/image-3.png?resize=790%2C596&ssl=1)
“Windows + R” tuşlarına basıp açılan pencereye “taskschd.msc” yazarak Task Scheduler‘ konsolunu açıyoruz. “Create Task” seçeneğini tıklayıp ve yeni görev için bir ad ve açıklama giriyoruz. Programı yönetici ayrıcalıklarıyla çalıştırmak için “Run whether user is logged on or not” kutusunu işaretliyoruz.
“Eylemler” Sekmesine gelin “Yeni” Eylem
![Task Scheduler ile Dosya ve Klasör silme PowerShell ile Dosya ve Klasör silme 2 image 4](https://i0.wp.com/arifakyuz.com/wp-content/uploads/2021/12/image-4.png?resize=787%2C598&ssl=1)
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Get-ChildItem -Path C:\test -Include *.* -Recurse | foreach { $_.Delete()}
Komutlarını ilgili alana giyip kaydedin.
![Task Scheduler ile Dosya ve Klasör silme PowerShell ile Dosya ve Klasör silme 3 image 5](https://i0.wp.com/arifakyuz.com/wp-content/uploads/2021/12/image-5.png?resize=391%2C159&ssl=1)
Yukarıdaki komutu sileceğiniz dizine göre kendinize göre yapılandırın