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

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.

Thanks, that did the job.
Cheers, you're welcome.
How do I get the powershell cursor to return to C:> ?
Should I use "exit" or "break" ?
Neither, the console will return to a prompt when the search has been completed.
Don't retire TechNet! -
(Don't give up yet - 13,225+ strong and growing)

Similar Messages

  • Howto create a powershell script to search the C drive for any *.pst files and copy them to a single directory

    I have a bunch of people who are saving their pst files all over the place. how do I write a script that does the following
    searches the C:\ drive for *.pst and copies them all the E:\pstfiles

    Hi,
    How about using below command:
    Move-Item c:\*.pst E:\pstfiles -force
    For more details about move-item, I would like suggest you use get-help command:
    get-help move-item
    In addition:
    Using the Move-Item Cmdlet
    http://technet.microsoft.com/en-us/library/ee176910.aspx
    Regards,
    Yan Li
    Yan Li
    TechNet Community Support

  • A script that captures the coordinates of the mouse clicks and saves them into a file

    Hello,
    I'm trying to create a cartoon taking a movie (I've chosen blade runner) as base. I've got the real movie and I've exported all the pictures using VirtualDUB. Now I have a lot of images to modify. I would like to modify the actors faces with the faces generated by Facegen modeller. I'm thinking how to make the whole process automatic because I have a lot of images to manage. I've chosen to use Automate BPA,because it seems the best for this matter. I'm a newbie,so this is my first attempt using Adobe Photoshop and Automate BPA. I wrote a little script. It takes a face generated with Facegen modeller and tries to put it above the original actors faces. But it doesn't work very good and I'm not really satisfied,because the process is not fully automated. To save some time I need to write a script that captures the coordinates of the mouse when I click over the faces and that saves them into a file,so that Automate BPA can read these coordinates from that file and can put the face generated with Facegen Modeller above the original face. I think that Automate BPA is not good for this matter. I think that two coordinates are enough,X and Y. They can be the coordinates of the nose,because it is always in the middle of every face. It is relevant to knows how big should be the layer of the new face,too. This is the Automate BPA code that I wrote :
    <AMVARIABLE NAME="nome_foto" TYPE="TEXT"></AMVARIABLE>
    <AMVARIABLE NAME="estensione_foto" TYPE="TEXT"></AMVARIABLE>
    <AMSET VARIABLENAME="nome_foto">br</AMSET>
    <AMSET VARIABLENAME="estensione_foto">.jpeg</AMSET>
    <AMVARIABLE NAME="numero_foto" TYPE="NUMBER"></AMVARIABLE>
    <AMVARIABLE NAME="coord_x" TYPE="NUMBER"></AMVARIABLE>
    <AMVARIABLE NAME="coord_y" TYPE="NUMBER"></AMVARIABLE>
    <AMWINDOWMINIMIZE WINDOWTITLE="Aggiungere_layer - AutoMate BPA Agent
    Task Builder" />
    <AMWINDOWMINIMIZE WINDOWTITLE="AutoMate BPA Server Management Console
    - localhost (Administrator)" AM_ONERROR="CONTINUE" />
    <AMENDPROCESS PROCESS="E:\Programmi_\Adobe Photoshop
    CS5\Photoshop.exe" AM_ONERROR="CONTINUE" />
    <AMRUN FILE="%&quot;E:\Programmi_\Adobe Photoshop CS5\Photoshop.exe&quot;%" />
    <AMPAUSE ACTION="waitfor" SCALAR="15" />
    <AMSENDKEY>{CTRL}o</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="1" />
    <AMINPUTBOX RESULTVARIABLE="numero_foto">Inserire numero FOTO di
    partenza -1</AMINPUTBOX>
    <AMINCREMENTVARIABLE RESULTVARIABLE="numero_foto" />
    <AMPAUSE ACTION="waitfor" SCALAR="1" />
    <AMMOUSEMOVEOBJECT WINDOWTITLE="Apri" OBJECTNAME="%nome_foto &amp;
    numero_foto &amp; estensione_foto%" OBJECTCLASS="SysListView32"
    OBJECTTYPE="ListItem" CHECKOBJECTNAME="YES" CHECKOBJECTCLASS="YES"
    CHECKOBJECTTYPE="YES" />
    <AMMOUSECLICK CLICK="double" />
    <AMPAUSE ACTION="waitfor" SCALAR="10" />
    <AMSENDKEY>{CTRL}+</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="20" />
    <AMSENDKEY>l</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="429" MOVEY="281" RELATIVETO="screen" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="659" MOVEY="281" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="659" MOVEY="546" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="429" MOVEY="546" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="429" MOVEY="281" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMSENDKEY>v</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK CLICK="hold_down" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="131" MOVEY="99" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="99" MOVEY="162" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK CLICK="release" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMINPUTBOX RESULTVARIABLE="coord_x">Inserire coordinata X</AMINPUTBOX>
    <AMINPUTBOX RESULTVARIABLE="coord_y">Inserire coordinata Y</AMINPUTBOX>
    <AMMOUSEMOVE MOVEX="200" MOVEY="200" RELATIVETO="screen" />
    <AMMOUSECLICK CLICK="hold_down" />
    <AMMOUSEMOVE MOVEX="%coord_x%" MOVEY="%coord_y%" RELATIVETO="position" />
    <AMMOUSECLICK />
    and this is a short video to explain better what I want to do :
    http://www.flickr.com/photos/26687972@N03/5331705934/
    In the last scene of the video you will see the script asking to input the X and the Y coordinates of the nose. This request is time consuming. For this reason I want to write a script that captures automatically the coordinates of the mouse clicks. The only thing to do should be click over the nose and the script should make the rest. As "c.pfaffenbichler" suggested here : http://forums.adobe.com/thread/775219, I could explore 3 ways :
    1) use the Color Sampler Tool’s input with a conventional Photoshop Script.
    2) use After Effects would provide a better solution.
    3) Photoshop’s Animation Panel might also offer some easier way as it might be possible to load two movies (or one movie and one image) and animate the one with the rendered head in relation to the other.
    Since I'm a totally newbie in graphic and animation,could you help me to explore these ways ? Thanks for your cooperation.

    These are the coordinates of the contours of the face that you see on the picture. Can you explain to me how they are calculated ? The coordinates of the first colums are intuitive,but I'm not able to understand how are calculated the coordinates of the second one.
    Thanks.
    1 COL     2 COL (how are calculated these values ?)
    307.5000 182.0000 m
    312.5000 192.0000 l
    321.5000 194.0000 l
    330.5000 193.0000 l
    335.0000 187.0000 l
    337.0000 180.5000 l
    340.0000 174.0000 l
    338.5000 165.5000 l
    336.0000 159.0000 l
    331.5000 153.0000 l
    324.5000 150.0000 l
    317.0000 154.0000 l
    312.5000 161.0000 l
    309.0000 173.0000 l
    307.5000 182.0000 l
    Message was edited by: LaoMar

  • Using external hard drive on a Time Capsule as a network drive for PCs.

    I own a Macbook Air and am using a 2TB Time Capsule router. I am currently using for automatic backups for my Macbook Air.
    I also own 2 PC laptops for the rest of the family. Would it be possible to use an external hard drive connected to the USB port of the Time Capsule as a network drive for the PCs? I want to share files between the two PCs.
    Thanks

    Yes, you can do that.. although it is not necessarily as straight forward as you might think it should be.
    1. The TC has to be running SMB compatible names. short, no spaces, pure alphanumeric.
    2. The disk must be formatted to file system the TC can read. HFS+ or Fat32.. but the HFS+ is vastly superior.. the actual format is irrelevant from sharing point of view as it is still shared via SMB to the network.
    3. It is slow.. half the speed of the same drive plugged into your computer.. although if the connection is over wireless that is probably irrelevant.
    4. You might need a powered hub to get the drive to work.. Apple underpower the USB.. and even a powered disk still won't work.
    5. There are some issues with the TC getting the USB drive to work.. too many factors to say you will have issues or not.. but be aware this is not as straight forward as it could be. or should be.
    6. If you want to share files.. you can always share them directly.. pc to pc or pc to mac.. there is no necessity to do it via a network store.. You can also use the 2TB internal drive.. create a disk image and you can then store you data in that. Internal drive is much more reliable and faster.
    See http://pondini.org/TM/TCQ3.html

  • MOVED: Cant load networking driver for neo 2 plat

    This topic has been moved to AMD64 nVidia Based board.
    Cant load networking driver for neo 2 plat

    1. Put your Windows CD in the drive.
    2. Select Install Windows.
    3. Let install continue.
    4. After the first restart, you will see something about Recovery Console.  Do NOT select this option.  Just let setup continue.
    5. You will soon see a message "searching for existing Windows installation".
    6. Soon after, you will be given the option to REPAIR that installation or make a new installation.
    7. Select REPAIR.
    8. Just keep going.
    That's it.  Hopefully things will be just fine after the repair is done.

  • Can I connect a 4 TB USB drive to the airport extreme and use it as a network drive for Time Machine

    Can I connect a 4 TB USB drive to the airport extreme and use it as a network drive for Time Machine

    Yes, if the drive is formatted in Mac OS Extended (Journaled).
    The USB port on the Time Capsule is under powered, so you may need use a powered USB hub with the 4 TB drive...even if it has its own power supply.

  • Network Drives for All Users

    I am looking to map a few network drives for any user that logs into our iMac.  Is there a way to do this?  I know how to do it on a per user level.  We just need a few drives to be mapped at all times. Thanks.

    Autofs: Automatically Mounting Network File Shares in Mac OS X
    Using the Mac OS X automounter

  • Powershell script to Scan Active Directory Attributes for Country and Department ,Then add to Sales Group then add to Distribution list based on Region

    Hey Scripting Guys,
    I have been in and out of Powershell last few years, not that great at it tbh !!! I'm looking for advice on how I can as in Title, Create a Powershell script to Scan Active Directory Attributes for Country and Department ,Then add to Group then add to Distribution
    list based on Region/Country
    I was thinking along the lines of get-aduser -LDAPFilter "(department=SALES France) and adding a where clause for country.
    Any help would be great.
    Dec

    So I have tried a few variations but get errors on both 
    get-aduser -LDAPFilter "(&(department=SALES)(c=us))" | Add-ADPrincipalGroupMembership -MemberOf "testgroup"
    get-aduser -LDAPFilter "(&(department=SALES)(c=fr))" | Add-ADGroupMember -identity "testgroup"
    Add-ADPrincipalGroupMembership : Object reference not set to an instance of an
    object.
    At line:1 char:86
    + get-aduser -LDAPFilter "(&(department=SALES)(c=fr))" | Add-ADPrincipalGroupMe
    mbership <<<< -MemberOf "testgroup"
    + CategoryInfo : NotSpecified: (:) [Add-ADPrincipalGroupMembershi
    p], NullReferenceException
    + FullyQualifiedErrorId : Object reference not set to an instance of an ob
    ject.,Microsoft.ActiveDirectory.Management.Commands.AddADPrincipalGroupMem
    bership

  • When trying to update Acrobat XI I get a 1328 error each time. I have uninstalled XI and reinstalled it from disk. When trying to update the newly installed XI I still get the 1328 error. I have searched my C: drive for the file C:\config\Msi\PTA082.tmp b

    When trying to update Acrobat XI I get a 1328 error each time. I have uninstalled XI and reinstalled it from disk. When trying to update the newly installed XI I still get the 1328 error. I have searched my C: drive for the file C:\config\Msi\PTA082.tmp but with no sucess. Any suggestions?

    Hi Berriedale,
    Please try the below steps and check.
    Turn off any antivirus or software security program.
    Download the update patch 11.0.10 manually from the below link and run it.
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5859
    Regards,
    Anand

  • Unable to map master page gallery as network drive for migrated sitecollection

    Hi all,
    I am unable to map the masterpage gallery as network drive for design manager for a migrated site.
    This is a windows 2008 server r2 OS. Desktop experience in installed.
    I am able to map the master page gallery as network drive for two other site collections which is not migrated.
    But for the current migrated sitecollection, it throws the familiar error that it is unable to connect.... I already tried unistalling and reinstalling desktop experience.
    Kindly help.

    Hi sanjuv,
    According to your description, my understanding is that you can't map master page gallery in network drive for certain migrated site collection.
    If you can open the master gallery with explorer, it means the master page gallery really exists. I suggest you check if the path is valid in the network drive. You can find the detailed path information with the articles below:
    1.On the site for which you are creating a design, start Design Manager. (For example, on the Settings menu, choose Design Manager.)
    2.In the numbered list, select Upload Design Files.
    3.The Design Manager: Upload Design Files page contains the location of the Master Page Gallery. The location probably ends in /_catalogs/masterpage/. This is the location to which you will map a network drive.
    4.Make a note of the location of the Master Page Gallery, or copy it to the Clipboard.
    Here is a detailed article for your reference:
    Map a network drive to the SharePoint 2013 Master Page Gallery
    If the issue still exists , I suggest you can check the link below to troubleshooting the connection error with Network drive. You can try to install the kb of IE10 below to test if it works.
    https://support.microsoft.com/kb/2616712/en-au?wa=wsignin1.0
    https://support.microsoft.com/kb/2846960
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Laserjet 2600n network driver for vista 64bit

    Is there any way I can have a network driver for HP Laserjet 2600n for Windows Vista 64bit .

    Vista 64 bit drivers for Laserjet 2600n can be downloaded from the following weblinks:
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=446154&p... 
    Refer the following two links to configure the printer on Network
    Link1:
    http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=115&prodSeriesId=...
    Link2:
    http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=115&prodSeriesId=...
    I am an HP employee.
    Regards,
    Vidya
    Make it easier for other people to find solutions, by marking my answer “Accept as Solution” if it solves your problem.
    ***Click on "Thumbs up" button to the bottom right side of my post to say thanks!***

  • Using a network drive for back up

    My Computer is running out of HD space but I have a 1TB drive hooked up to my network. Problem is, it is not the fastest to upload and download from well not as fast as a computer HD. Itunes does see my network drive but I'm scared that if I had all my music and video files on the network drive it would take hours to sync..If I set Itunes to access the network drive and copy all my files over, will my ipod with itunes have to access every file on the network drive everytime I sync to confirm with ipod.

    I've moved the bulk of my library to an external hard drive and as far as I can tell it's only being accessed while files are being copied to the iPod or when you select a file in the browser and iTunes reads the tag to check it's information is up-to-date. Try moving a couple of albums out to the network drive & see if you can play them in iTunes. Test some videos too. If they play OK then you shouldn't have any problems. Just take extra care when deleting though - as there's usually no recycle bin over the network.
    tt2

  • One Format External Hard Drive for Your Mac and PC...

    I have Formatted my External HD Passport 500GB = (465.8) and split it in two partition Mac OS Extended (Journal = 232GB) and FAT32 (Ms-Dos-FAT = 232GB) and reformat to NTFS using Windows...
    How to use one External HUD for your Mac and PC you have a PC and how to have two Partition in Mac OS Extended (Journal) and FAT (Ms-Dos-FAT)as you desire the size of your partition under application, Utilities and Disk Utility and covert the (FAT32) to (NTFS)using Windows Control Panel or just search by Start, search Computer Management or just right my Computer and format the second partition to (NTFS)
    Tips for Mac OS Extended (Journaled) FAT32 vs NTFS, what works and don't work...
    (1)Mac OS Extended (Journaled) Partition can't be use in Windows to transfer files but NTFS Partition can be use in Mac by transferring file from Windows to Mac and NTFS support for files over 4G in size...
    (2)FAT32 can be use in Mac and Windows but with a limitation that a file cannot be transferred to a FAT32 partition if the file is larger than 4GB such as a video file and FAT32 file system performs more slowly than NTFS...
    (2)Mac OS Extended (Journaled) can be use in Windows when you Reformat your HD to HFS+ by third-party app such as http://www.macdrive.com/ MacDrive for $50.or http://www.paragon-software.com/home/ntfs-mac/ NTFS For Mac 6.0 for $30...
    Reference link 1 External Hard Drive for Your Mac and PC...
    http://www.myfirstmac.com/index.php/mac/articles/1-external-hard-drive-for-your- mac-and-pc
    Best regards...
    JamesUFOs...
    http://www.youtube.com/user/JamesEBEs

    I have many external drives I use between my MacBook Pro and my Windows PC's. I use a free NTFS driver for Mac OS-X to give me full read/write access to any NTFS formatted partitions when running Mac OS. I also use MediaFour's MacDrive v8 on some of my Windows PC's to access any HFS+ formatted partitions.
    Most of my drives are formatted NTFS because I have more Windows machines than I have MacDrive licenses, and with the driver for Mac OS, they are fully accessible. I have a few drives I do keep formatted as HFS+ because I have encountered an app or two that don't work quite right when they don't get to write to files on an HFS+ partition (one of my backup programs is picky about this).
    As said before, FAT32 is fully accessible between the two OS'es but it also has it's own limitations.

  • Lenovo 14 20DM correct driver for 'Data Acquisition and Signal Processing Controller'

    Hi Everyone, I am the happy owner of a new Yoga 14 20DM. A few days ago I made the decision to upgrade to Windows 10. Whilst the upgrade went smoothly I did have to install a number of drivers manually. At the moment I am stuck on trying to install the 'PCI Data Acquisition and Signal Processing Controller' (as shown below).  I have tried right clicking on the device then selecting Properties > Driver (tab) > Update Driver > Search automatically for updated driver software, however doing so only shows the screen capture below!  Furthermore I have searched the Lenovo support page for a suitable driver however none is available! http://support.lenovo.com/au/en/products/laptops-and-netbooks/thinkpad-yoga-series-laptops/thinkpad-yoga-14/20dm?TabName Finally I have also installed, and run, 'System Update 5' the software program available from Lenovo. However it was not able to install a correct driver for this device. I have done a little searching on this topic, and have read a couple of stories about people installing an incorrect driver for this device, and then experiencing blue screens! Can anybody suggest how I can go about locating and installing the correct driver for this device? Any help will be greatly appreciated. Kind Regards, Davo

    Hi Ingemann, Ultimately I decided on the newest version of the Intel Chipset Device Software (INF Update Utility), which at this time (on the Intel website) is version 10.0.27. https://downloadcenter.intel.com/download/20775/Intel-Chipset-Device-Software-INF-Update-Utility- Interestingly enough I was presented with the message below when I ran this executable.  I selected Downgrade (with some trepidation), and after rebooting was pleasantly surprised to see that the troubled device was missing from the list. I can only assume that this means the correct drivers were installed. Thanks you very much for your help. Kind Regards, David

  • Can I use an external drive for Time Machine and storing other data?

    At the moment I have one external drive, a 500gb LaCie. My internal drive is 160gb. I don't think I'll be using all 500 of those gigabytes for a while, so I want to put them to good use. Can I make a partition on this drive and use that for Time Machine, leaving the rest of the drive for my documents and other files? If so, how would I partition the drive? I'm not fluent in Disk Utility and even though I'm pretty sure I know how to do it, I don't want to screw up. Also, how big a partition would you recommend?
    While we're here, I have a second question, somewhat relevant to the first. Could I move my Time Machine backups to a second drive if I wanted to? Also, if I used a big drive (say 1tb) could I use Time Machine to backup my current LaCie to a partition on that drive? Thanks in advance.

    videoCWK wrote:
    Does that also mean that I could back them both up on a very big drive?
    Yes. Time Machine will, by default, back up all of your external drives unless you specifically exclude them.
    Also, will Time Machine backups eat all my space after a lot of usage?
    It depends on what you do on your Mac. If you work often with very large files (video editing, heavy photo editing, big disk images, Microsoft Entourage data file, Parallels disk image file, etc) then your backup drive could fill up very quickly.
    I use my Mac mostly for e-mail, web browsing, iTunes, iPhoto, and the occasional iMovie project. I have 92 GB on my main hard drive (60 GB of which are my iTunes and iPhoto libraries, and one iMovie project.) My Time Machine backups consume 155GB on my backup drive, and that's after using Time Machine for a full year.

Maybe you are looking for

  • Table pop-ups don't work in iWork Pages, any ideas?

    Pop ups in Numbers tables work when transferred to Pages on the Mac but don't appear to work in iWork pages On the iphone and iPad. I produce approximately 20 reports a week in Pages. Not sure if I'm missing something, or this feature just doesn't ex

  • Thumbnails/Previews not showing on tiffs viewed on Mac

    I have a client who is asking me why the tiffs I'm supplying him with don't have thumbnails/previews. He's working an a Mac and has had to resave the files in order to create previews. I haven't been able to answer his question. Any takers? TIA. PSho

  • I loss my iPod and can i get a new one

    hello i was wondering if i can get my ipod replacted.it was one of the first one to be in stock it was a grey 5th gen 16 gb with out a camera in the back please help thank you for your time.

  • Can I downgrade to IOS6 now?

    IOS7 makes my ipad slowly work. I want to downgrade it but I can't now, right? I have to do my assignment on it so help me, please. IOS7's not ok for me now.

  • Distorted printing from Safari

    When I print out a particular room-scheduling grid from a web page using Netscape, Firefox and Camino on my Mac, and also IE from a PC, it looks normal and fits on one page. But when I print it from Safari, the printout is stretched vertically so tha