i need from a csv computer list to execute this script to get all profile folder contain X letter
Get-WmiObject -Query "SELECT Name FROM Win32_Directory WHERE Drive = 'C:' AND Path = '\\Users\\' AND Name like '%X%'"
the result must be on a csv file like this:
if a computer is not on or not respond, the scipt must go to the next computer.
thanks for help