Hello All
I am planning to do the Sysvol cleanup in my domain.
Sysvol is configured in E drive in all the domain controllers.
I want to delete the below files as part of clean up. Kindly suggest if I can delete this file from any one domain controller or I can delete it from PDC.
I am planning to use below simple script from PDC. Kindly advice if its a right method. Thanks!!
Script
$files=Get-Content"C:\Users\af6\Desktop\delete\book.csv"
foreach ($filein$files) {
write-host“Deleted $File”-foregroundcolor“Red”;Remove-Item-Path$file-force-ErrorActionstop
}
Note: I have up to date backup
E:\SYSVOL_DFSR\sysvol\Testing.test\scripts\Helper.cmd |
E:\SYSVOL_DFSR\sysvol\Testing.test\scripts\UpdatMs.cmd |
E:\SYSVOL_DFSR\sysvol\Testing.test\scripts\ADMS\DM-2.5.cab |
E:\SYSVOL_DFSR\sysvol\Testing.test\scripts\ADMS\DMs-2.9.cab |
E:\SYSVOL_DFSR\sysvol\Testing.test\scripts\ADMS\DMs-v2.4.cab |
E:\SYSVOL_DFSR\sysvol\Testing.test\scripts\ADMS\DMs-v2.6.cab |
E:\SYSVOL_DFSR\sysvol\Testing.test\scripts\ADMS\DMs-v2.7.cab |
E:\SYSVOL_DFSR\sysvol\Testing.test\scripts\ADMS\s.2.10.cab |