Browse by Tags

Tagged Content List
  • Blog Post: Weekend Scripter: Use PowerShell to Investigate File Signatures—Part 2

    Summary : Windows PowerShell MVP, Boe Prox, concludes this two-part series about investigating file signatures with Windows PowerShell and the .NET Framework. Microsoft Scripting Guy, Ed Wilson, is here. Welcome back guest blogger, Boe Prox , for the conclusion of the two-part series he started yesterday...
  • Blog Post: Weekend Scripter: Use PowerShell to Investigate File Signatures—Part 1

    Summary : Windows PowerShell MVP, Boe Prox, talks about investigating file signatures by using Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. This weekend we have a two-part series from guest blogger, Boe Prox … When you work with File Server Resource Manager (FSRM), one...
  • Blog Post: Use PowerShell to Find Files that Have Not Been Accessed

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to find files that have not been accessed for some time. Hey, Scripting Guy! On our server, we have tons of files. Unfortunately, many of them haven’t been accessed for years. I know the cost of storage is coming...
  • Blog Post: Use PowerShell to Find Metadata from Photograph Files

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to obtain metadata from photo files. Hey, Scripting Guy! I need some help. I have thousands of photo files on my computer. I need to bring some order to them. I know that I can use Get-ChildItem from Windows PowerShell...
  • Blog Post: List Music File Metadata in a CSV and Open in Excel with PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, shares a function that gets file metadata, and then he writes the information to a CSV file. Hey, Scripting Guy! Getting basic file properties such as the file name, the size of a file, and the directory that a file resides in is pretty cool. But when...
  • Blog Post: Use PowerShell to Create CSV File to Open in Excel

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about exporting a directory list to a CSV file and opening the file in Microsoft Excel with Windows PowerShell. Hey, Scripting Guy! I have a lot of music files that reside in nested folders. I would like to be able to look at the file information...
  • Blog Post: List Files in Folders and Subfolders with PowerShell

    Summary : Use Windows PowerShell to list files in folders and subfolders. Hey, Scripting Guy! I am an old VBScript guy. I love using VBScript, and I have done so for nearly 15 years. One reason I love VBScript so much is that, to me, it is easy to use. It is also very powerful. But after attending...
  • Blog Post: How Can I Delete Specific Files in a Specific Folder?

    Hey, Scripting Guy! How can I access the files in the folder T:\Act and delete any files that have the string “current” somewhere in the file name? -- SC Hey, SC. We have to admit, the notion of deleting anything current has a certain appeal, doesn’t it? Well, not for the Scripting Guys, of course;...
  • Blog Post: How Can I Get a List of All the .dll Files in a Folder, Along with Their Version Numbers?

    Hey, Scripting Guy! How can I get a list of all the .dll files in a folder, along with their version numbers? -- DD Hey, DD. You know, when we sit down to write this column we usually try to start off with an amusing and at least semi-relevant anecdote. In this case, that would mean a cute story about...
  • Blog Post: Use PowerShell to Toggle the Archive Bit on Files

      Summary : Learn how to use Windows PowerShell to toggle file attributes such as the archive bit. Hey, Scripting Guy! I have a number of files that have had the archive bit flipped. Unfortunately, our backup program relies on the archive bit to determine if it has backed up a file recently or if...
  • Blog Post: How Can I Parse a Tab-Delimited File and Then Save That as a Comma-Separated Values File?

    Hey, Scripting Guy! How can I parse a tab-delimited file, and then save the resulting information as a comma-separated values file? -- DM Hey, DM. You know, yesterday morning the Scripting Guy who writes this column had to scrape the ice off his windshield; today it’s much warmer – 44 at last report...
  • Blog Post: How Can I Monitor the Number of Files in a Folder?

    Hey, Scripting Guy! We have a third-party application that rarely crashes; however, when it does crash it seriously disrupts our business. We can always tell when the application is getting ready to crash; at that point, one of its directories starts filling up with log files. How can we be notified...
  • Blog Post: Use PowerShell to Copy Files to a Shared Drive

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to copy a script collection to a shared network drive. Microsoft Scripting Guy, Ed Wilson, is here. Well, it is Monday in Charlotte, North Carolina, in the United States. Today is a cardio day. I spend the day running...
  • Blog Post: How Can I Unhide All the Files in a Folder?

    Hey, Scripting Guy! How can I run a script to unhide all the files in a folder? -- GA Hey, GA. You know, when one of the Scripting Guys was a bit younger he and the other kids in his neighborhood spent countless hours playing variations on hide-and-seek; in fact, this Scripting Guy still has vivid...
  • Blog Post: Hey, Scripting Guy! How Can I Create File Names Based on Their Time Stamp?

    Hey, Scripting Guy! How can I create a file name from the date? I have this application that creates a log file, and every hour I would like to save that log file as a file whose name is generated from the current time stamp. Can this be done? - RH Hi RH, Ever since I read your e-mail message,...
  • Blog Post: How Can I Find All the Files in a Directory Tree that Contain a Specific Word or Phrase?

    Hey, Scripting Guy! How can I find all the files in a directory tree that contain a specified phrase? -- PB Hey, PB. OK, so picture this: for the first time in a couple of months, the Scripting Guy who writes this column and the Scripting Son are playing basketball. The Scripting Son has a comfortable...
  • Blog Post: Easily Unblock All Files in a Directory Using PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to unblock all files in a directory. Microsoft Scripting Guy, Ed Wilson, is here. Today is the day. As those of you who have been reading the Hey, Scripting Guy! Blog on a regular basis know, today is the speaker’s...
  • Blog Post: How Can I Change a Read-only File to a Read-write File?

    Hey, Scripting Guy! How can I change a read-only file to a read-write file? -- WR Hey, WR. We don’t mean to shock you, but how can you change a read-only file to a read-write file? Why, by using a script, of course! We know: you never saw that coming, did you? As a matter of fact, you can use...
  • Blog Post: How Can I Rename Files Using File Names I’ve Written to a Text File?

    Hey, Scripting Guy! I have a bunch of files with names like 001.jpg and 002.jpg. I also have a text file that includes the names I would like each of these files to have; for example, 001.jpg should be named Picture_of_Family_Members.jpg. How can I write a script that reads information from the text...
  • Blog Post: How Can I Determine Whether a File Exists on a Remote Computer?

    Hey, Scripting Guy! How can I check to see if a file exists on a remote computer even if that file isn’t in a shared folder? -- SP Hey, SP. You know, the Scripting Guy who writes this column had minor periodontal surgery this morning. (Well, maybe his dentist thought it was minor. The Scripting Guy...
  • Blog Post: Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (3/5/10)

    In this post : How Do I Create Shortcuts in Windows PowerShell? Tell Me More About Try/Catch/Finally Blocks? Troubleshooting a VBScript Script How Can I Determine Drive Speed? Can I Use VBScript to List All Computers Encrypted with BitLocker? How Do I Create Shortcuts in Windows...
  • Blog Post: How Can I Extract Just the File Name from the Full Path to the File?

    Hey, Scripting Guy! How can I extract just the file name from the full path to the file? -- SD Hey, SD. As you might know, Ted Williams was the last major league baseball player to bat .400 for an entire season. Coming into the final day of the year, Williams was actually hitting something like .3997...
  • Blog Post: How Can I Add the Date a Picture Was Taken to the File Names of My Digital Photos?

    Hey, Scripting Guy! How can I rename all the .JPG files in a folder so that the date the picture was taken is included in the file name? -- NH Hey, NH. Welcome to Hey, Scripting Guy! , the only daily scripting column on TechNet that is written without the use of steroids, amphetamines, human growth...
  • Blog Post: Use PowerShell to Find and Change Read-Only Files

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to find read-only Microsoft Excel files and to change them to read-write. Hey, Scripting Guy! I have a problem that hopefully you can resolve. We recently restored a bunch of files from tape, and for some reason they...
  • Blog Post: Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (01/30/09)

    How Do I Compress Files? Hey, Scripting Guy! After some time without needing help, I've run into a problem about which I have been unable to discover any information. Perhaps you can aid me. Assume you have (1) a single file, and (2) a folder that contains a number of files of various types. Further...