Posts Tagged ‘Get-ChildItem’

Searching Word

Monday, July 28th, 2008 by Jeffery Hicks
One of the last tasks I needed to accomplish to get Managing Active Directory with Windows PowerShell: TFM ready for publication was to assemble all the script samples. They'll be available for download from SAPIENPress when the book is published. I knew that most of the scripts were in my primary scripts directory, but probably not all. I usually copied scripts from my test environment to my scripts directory but I knew some were bound to be missing. I didn't want to manually open 16 chapters, search for script names, check if I had the script and then move it to a new folder. I don't have time for that. But I do have time to figure out how to do it in PowerShell.   More »

Clean Temp With PowerShell

Friday, July 18th, 2008 by Jeffery Hicks
You would think that by now Windows and Windows applications would be much better about cleaning up temporary files. But no. It is amazing how many files I still see in my %TEMP% directory. I've always operated under the assumption that any file in %TEMP% that was created or earlier than the time I last booted up is fair game for deletion. I finally got around to using PowerShell for this management task.   More »


Entries (RSS) and Comments (RSS).