troubleshooting Question

how to search for a.bak files on all drives on multiple computers

Avatar of siva k
siva k asked on
Powershell
2 Comments1 Solution60 ViewsLast Modified:
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

$comp=get-content d:servers.txt

foreach($comp in $comp)
{

$k=Get-ChildItem d:\*,c:\* -recurse -include *.bak

$k|select fullname | Export-Csv C:\files.csv -NoTypeInformation
}

please help me.............
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros