You might find that it saves you far more time than it costs you. It certainly has me.
I can do things with PowerShell that would've been difficult or impossible with vbscript and just ugly with C#. Regards, Michael B. Smith, MCITP:SA,EMA/MCSE/Exchange MVP My blog: http://TheEssentialExchange.com/blogs/michael I'll be at TEC'2009! http://www.tec2009.com/vegas/index.php From: Jon Harris [mailto:jk.har...@gmail.com] Sent: Thursday, December 18, 2008 4:35 PM To: NT System Admin Issues Subject: Re: Tool to report on old files. I keep meaning to get a book and start but it seems to me one thing after another to fix at work. Jon On Thu, Dec 18, 2008 at 4:23 PM, Joe Tinney <jtin...@lastar.com> wrote: That's great for viewing the results in the console, I might pipe that into more, though. dir -recurse c:\temp | sort lastaccesstime -descending | ft lastaccesstime, name, directory, creationtime | more If you wanted to export it you wouldn't want to use Format-Table, you would use Select-Object. dir -recurse c:\temp | sort lastaccesstime -descending | select lastaccesstime, name, directory, creationtime | export-csv .\file.csv or dir -recurse c:\temp | sort lastaccesstime -descending | select lastaccesstime, name, directory, creationtime | out-file .\file.txt The first example is a CSV and the second is just plain text. Special Thanks to Michael B Smith for pushing PowerShell so much on the list. I've started using it since joining and I love it! From: Michael B. Smith [mailto:mich...@theessentialexchange.com] Sent: Thursday, December 18, 2008 4:08 PM To: NT System Admin Issues Subject: RE: Tool to report on old files. How about PowerShell? dir -recurse c:\temp | sort lastaccesstime -descending | ft lastaccesstime, name, directory, creationtime Regards, Michael B. Smith, MCITP:SA,EMA/MCSE/Exchange MVP My blog: http://TheEssentialExchange.com/blogs/michael I'll be at TEC'2009! http://www.tec2009.com/vegas/index.php From: Brumbaugh, Luke [mailto:luke.brumba...@butlerahs.com] Sent: Thursday, December 18, 2008 11:59 AM To: NT System Admin Issues Subject: Tool to report on old files. I got to ask this, now that a full backup takes 3 days. I have users that save files and some are so old and useless, like the dinner menu for the new ceo party, that was 2 ceo's ago. How can I make a report by last accessed, owner, file, directory and created, all in one line. If this is doable in VBS, even better. TIA Luke ********************************************************************** CONFIDENTIALITY NOTICE: The information transmitted in this message is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and destroy all copies of this document. Thank you. Butler Animal Health Supply ********************************************************************** ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~