Browse by Tags

Tagged Content List
  • Blog Post: A PowerShell Script Is…

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about creating and using a Windows PowerShell script. Microsoft Scripting Guy, Ed Wilson, is here. This afternoon, it is raining—actually more like a thunderstorm because there is lightning and thunder. In the afternoon in central Florida,...
  • Blog Post: PowerShell Scripting: The Terms

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about Windows PowerShell scripting terminology. Hey, Scripting Guy! So I am confused, and I am not afraid to admit that I am confused. In the old fashioned VBScript days, I wrote scripts. I could also write subroutines or functions. And that was...
  • Blog Post: Weekend Scripter: When to Write a PowerShell Script

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about when to write a Windows PowerShell script. Microsoft Scripting Guy, Ed Wilson, is here. I am enjoying a beautiful sunny morning in central Florida. The sun is shining, there is hardly a cloud in the sky, and a gentle ocean breeze tickles my...
  • Blog Post: PowerTip: Determine What Character a String Starts With

    Summary : Use Windows PowerShell to determine what character a string starts with. How can I use Windows PowerShell to show me if a string starts with a particular letter (this also needs to be case sensitive)? Use the StartsWith method from the String class, and supply the character to the method...
  • Blog Post: Weekend Scripter: Welcome to the PowerShell Information Stream

    Summary : Learn about the Windows PowerShell information stream in this guest post by June Blender. Microsoft Scripting Guy, Ed Wilson, is here. Today we have another guest blog post by Honorary Scripting Guy, Windows PowerShell MVP, and Sapien technical evangelist, June Blender. Take it away June...
  • Blog Post: PowerTip: Multiply Value in Variable and Store Results

    Summary : Use Windows PowerShell to multiply the value stored in a variable and store the results. How can I use Windows PowerShell to multiply the value of a variable and store the results in the same variable? Use the *= operator, for example: PS C:\> $a = 2 PS C:\> $a *= 3 PS...
  • Blog Post: Weekend Scripter: Fun with Number Ranges and PowerShell

    Summary : Use Windows PowerShell to split arrays of numbers into contiguous ranges. Microsoft Scripting Guy, Ed Wilson, is here. Today I have a cool post from guest blogger, Zachary Loeber. Here is a little bit about Zachary: Zachary Loeber is a solution architect with PSC Group. Zachary is...
  • Blog Post: PowerTip: Select Two Random Numbers from 20 Possibilities

    Summary : Use Windows PowerShell to select two random numbers from twenty possible numbers. How can I use Windows PowerShell to select two of twenty attendees at user group to receive prizes? Create a range of input numbers with the Get-Random cmdlet, then use the –Count parameter to retrieve...
  • Blog Post: Five Best PowerShell Cmdlets

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about the five best Windows PowerShell cmdlets. Microsoft Scripting Guy, Ed Wilson, is here. OK, I will admit that this post is completely arbitrary. What do I mean when I talk about the five best Windows PowerShell cmdlets (commands)? Well, I am...
  • Blog Post: Table of Basic PowerShell Commands

    Summary : Ed Wilson, Microsoft Scripting Guy, provides a table of basic Windows PowerShell commands. Microsoft Scripting Guy, Ed Wilson, is here. Some questions are simply confusing, and other questions can be misleading, or even wrong. What do I mean? Well, I recently received a question from a person...
  • Blog Post: Help: It Says Run a PowerShell Script

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about running a Windows PowerShell script. Microsoft Scripting Guy, Ed Wilson, is here. Ninety two degrees Fahrenheit and sunny—that is what the weather is supposed to be this Saturday in Jacksonville when Teresa and I will be speaking at the...
  • Blog Post: Weekend Scripter: Understanding Quotation Marks in PowerShell

    Summary : Guest blogger, Don Walker, explores using single and double quotation marks in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Welcome new guest blogger, Don Walker. Don is a coworker of guest blogger, Tim Bolton, and he worked with Tim on a project that Tim blogged about...
  • Blog Post: PowerTip: Line Continuation in PowerShell

    Summary : Ensure a line continuation in Windows PowerShell. What the line continuation character should use to ensure my Windows PowerShell code continues to the next line? The line continuation character in Windows PowerShell is the backtick. Type a <space>, the backtick, and then press...
  • Blog Post: PowerShell Code Breaks: Break Line, Not Code

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about line continuation without breaking Windows PowerShell code. Hey, Scripting Guy! I have a problem sometimes when I copy code from the Hey, Scripting Guy! Blog. It does not seem to work. I try to take out spaces, but it still doesn’t...
  • Blog Post: Using PowerShell Grid View for User Info

    Summary : Learn how to use the Windows PowerShell grid view to display user information in this guest post by Tim Bolton and Don Walker. Microsoft Scripting Guy, Ed Wilson, is here. Welcome back guest blogger, Tim Bolton ... Hi all, This project was a joint effort with my coworker, Don Walker...
  • Blog Post: PowerTip: Find Specific PowerShell Cmdlet Help

    Summary : Learn how to find help for a specific Windows PowerShell cmdlet parameter. How can I find more information about a specific Windows PowerShell parameter that I saw a presenter use? Use the Get-Help cmdlet, and specify the Windows PowerShell cmdlet and parameter names. This example returns...
  • Blog Post: PowerTip: Find All PowerShell Cmdlets Except…

    Summary : Learn how to find all Windows PowerShell cmdlets except those from a specific module. How can I find all Windows PowerShell cmdlets that begin with the verb "get" but are not contained in the Windows PowerShell module named “PowerShellCookbook”? Use the Get-Command...
  • Blog Post: Weekend Scripter: Deciphering Windows PowerShell Shorthand

    Summary : Learn how to decipher Windows PowerShell shorthand notation in this guest post written by Tim Warner. Microsoft Scripting Guy, Ed Wilson, is here. Welcome a new guest blogger today, Timothy Warner. Tim is an author and evangelist for Pluralsight, a premier online IT pro and development training...
  • Blog Post: Help! It Says PowerShell…Now What?

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about how to run a Windows PowerShell command. Hey, Scripting Guy! Help! I am reading through TechNet, and I found this command that seems like it will solve my problem, but I do not know how to do it. It says something about Windows PowerShell,...
  • Blog Post: Find PowerShell Reference Documentation

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about where to find Windows PowerShell reference documentation. Microsoft Scripting Guy, Ed Wilson, is here. I am eagerly anticipating Saturday because Saturday is the Jacksonville IT Pro Camp , and the Scripting Wife and I will be speaking. I believe...
  • Blog Post: PowerTip: Use PowerShell to Add Content to File

    Summary : Learn how to use Windows PowerShell to add content to a file. How can I use Windows PowerShell to add content to a file? Use the Add-Content cmdlet, and specify the path to the file and the value of the content, for example: Add-Content C:\fso\AnEmptyFile.txt -Value "This is content"
  • Blog Post: Weekend Scripter: Best PowerShell Resources on the Web

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about the best fundamental resources on the web for Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. One of the great things about the Microsoft Ignite conference in Chicago was getting to see and talk with so many people. Previously...
  • Blog Post: PowerTip: Use PowerShell to Create New File

    Summary : Create a new file with Windows PowerShell. How can I use Windows PowerShell to create a new text file that will be empty until I add content? Use the New-Item cmdlet and specify a path, name, and type, for example: New-Item c:\fso\AnEmptyFile.txt -ItemType file
  • Blog Post: Weekend Scripter: Find Coolest PowerShell Parameter Names

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about finding the coolest Windows PowerShell parameter names. Microsoft Scripting Guy, Ed Wilson, is here. This morning, my friend and colleague, Dr. Thomas Shinder, posted on Facebook that his favorite Windows PowerShell parameter name is –NoClobber...
  • Blog Post: Weekend Scripter: What to Include in a PowerShell Comment Block

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about what to include in a Windows PowerShell comment block. Microsoft Scripting Guy, Ed Wilson, is here. Something that tends to confuse new scripters, regardless of the language, is what to include in a comment block at the beginning of a script...