Scripting Blog

A place to learn about PowerShell and share stories of automation

Create a Custom File Extension by Using PowerShell

Summary: Learn how to use Windows PowerShell to create a custom file extension to store code snippets. Weekend Scripter: Creating a .snip file type Microsoft Scripting Guy, Ed Wilson, here. After I created the Get-CodeSnippet function yesterday, I decided that it might be useful to have my own file extension to keep track of code snippets. ...

Use Jobs to Run Parallel Queries or Remove Objects from Active Memory

   Summary: Learn how to use jobs to run parallel queries, remove objects from active memory, work with text files and use the Get-Member Cmdlet to go behind the scenes of PowerShell commands in this edition of Quick Hits Friday.   In this Post:   Use Jobs to Run Parallel Queries with Windows PowerShell Hey, ...

A Windows PowerShell Carol: Ebenezer Script Creates Text Files

Summary: A Windows PowerShell Carol in which Ebenezer Script learns how to create and to delete text files using PowerShell.   Hey, Scripting Guy! Will Ebenezer Script ever see how easy it is to use Windows PowerShell to work with text files? -- SK   Hello SK, Microsoft Scripting Guy Ed Wilson here. It is almost the end of the year...

Automatically Add Comments in PowerShell, Work with Text Files and Customize Office Communicator

   Summary: Learn how to automatically add multiline comments in the Windows PowerShell ISE, how to work with text files in VBScript, and how to customize Microsoft Office Communicator.   In this post:     Customize Sounds in Office Communicator Hey, Scripting Guy! How do I get my computer to play the Star Trek "...

Hey, Scripting Guy! How Can I Use Windows PowerShell 2.0 to Create a Text File of a Specific Size?

    Hey, Scripting Guy! I need to be able to use Windows PowerShell 2.0 to create a text file that is a specific size. I know that I can create a text file by using FSUTIL, but when I open the file, it is empty. Therefore, I would like a text file that contains a certain amount of data inside it. The reason for this request is I ...