Remove particular files from multiple computers
The below PowerShell script can be used to remove particular files from multiple computers. Replace the path and filenames as required.
start-transcript
(Get-Content C:\Users\username\computer_names.txt) |
Foreach-Object {
remove-item -Verbose \\$_\c$\windows\system32\drivers\* -include swin*.sys -force
}
stop-transcript
Back