I can use this script to delete 0 kb files from a specified path. get-childItem "PathToFiles" | where {$_.length -eq 0} | remove-Item
How can i run this on multiple PC's in a text file (list.txt)?
The contents of text file would be:
pc1
pc2
or
\\PC1\c$\files\
\\PC2\c$\files\