Please help me. I Need to change this statement so that it verifies the sum of files on a folder from a list of computers on a text file, rather than verifying the sum of that same folder that resides on my computer only? We have the root of our computers shared as c$ if that helps. The end result will have incorrectsumoffiles.txt contain a list all computers that returned true from the query.
(gci c$\800patchfolder -recurse).Count -ne 345 | out-file incorrectsumoffiles.txt
I think the correct syntax would look something like this... get-content computerlist.txt | query | output But powershell requires a evaluation prior to any piping? The out-file being incorrectsumoffiles.txt will only contain names of computers that returned "true" from the -ne comparison operator. Thank You.