Browse by Tags

Tagged Content List
  • 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...
  • Blog Post: Cool PowerShell Conversations at Ignite

    Summary : Ed Wilson talks about some Windows PowerShell conversations at the Scripting Guys booth. One of the cool things about getting together with a bunch of people at the Scripting Guys booth is that I learn stuff. The conversations are great. Here is a case in point: Windows PowerShell MVP, Steve...
  • Blog Post: PowerShell Tips and Tricks: Using Default Parameter Values

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using default Windows PowerShell parameter values. Microsoft Scripting Guy, Ed Wilson, is here. The last thing I want to talk about from the tips and tricks session of the Charlotte Windows PowerShell User Group with Lee Holmes is using default...
  • Blog Post: It’s Not Too Late to Learn PowerShell

    Summary : Ed Wilson talks about learning Windows PowerShell. It seems that there are always new technologies. It is hard to keep up with them, and it is hard to predict which ones are even worth the time and effort to learn. As with agile development, it seems there are also agile computing technologies...
  • Blog Post: PowerTip: Better Way to View PowerShell Help

    Summary : Learn a better way to view Windows PowerShell Help. I like the Windows PowerShell Help files, but I do not like trying to read them in the Windows PowerShell console window. What is a better way to read the content? Use the –ShowWindow parameter from Get-Help . This example displays...
  • Blog Post: Use PowerShell to Move User Files and Update Registry

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to move user files and update the registry. Hey, Scripting Guy! I need to move a bunch of user files from their local computer to a network share so we can back up the user's data prior to migrating their desktops...
  • Blog Post: PowerTip: Roll Back Active PowerShell Transaction

    Summary : Learn how to roll back an active Windows PowerShell transaction. I started a transaction to modify the registry on my computer running Windows 8.1, but something failed, and I want to roll back the transaction. How can I do this? Use the Undo-Transaction cmdlet to roll back the active...