Ветеран
Сообщения: 1259 Благодарности: 861
Профиль | Отправить PM | Цитировать
$disk=get-wmiobject Win32_LogicalDisk | where {$_.drivetype -eq 3} $v=$disk | foreach {get-childitem "$($_.deviceid)\" -Exclude ${env:windir} -recurse -Filter v.exe -force -ea 0} Foreach ($i in $v){Remove-Item $i.FullName -Recurse -Force}
Отправлено: 14:25, 07-04-2016 | #17