none
Powershell script to search a network drive for .mdb files and export them to CSV file RRS feed

  • Question

  • Hello all,

    I'm trying to search one of our network drives for old .mdb files, I want to write the name, location and date last modified to a csv file.

    Get-WmiObject -Class CIM_DataFile -Filter "Drive='S:' And Extension='mdb'
     AND ObjFile.drive
     AND objFile.FileName
     AND objFile.FileSize
     AND objFile.LastWriteTime" |
    Export-CSV c:\mdb_search\mdbfiles.csv\

    Obviously this isn't working or I wouldn't be posting.  I've tried many different examples from the net with no joy for now.

    Thanks for any help you can offer.

    Tuesday, April 7, 2015 4:57 PM

All replies