i have 10 computeers and saved .bak files almost in all drives.
i am using below script to find .bak but not getting the result.
#server.txt contains computer names
foreach($comp in $comp)
$k=Get-ChildItem d:\*,c:\* -recurse -include *.bak
$k|select fullname | Export-Csv C:\files.csv -NoTypeInformation
please help me.............