Browse by Tags

Tagged Content List
  • Blog Post: Let Sleeping VBScript Scripts Lie

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about when to replace a VBScript script and when not to. Microsoft Scripting Guy, Ed Wilson, is here. One of the really awesome things about the Microsoft Ignite conference in Chicago this year was the chance to talk to literally thousands of people...
  • Blog Post: Write TargetResource Functions for PowerShell DSC

    Summary : Guest blogger and Microsoft PFE, Jason Walker, talks about writing Get , Set , and Test TargetResource functions for DSC. Microsoft Scripting Guy, Ed Wilson, is here. Microsoft PFE and Honorary Scripting Guy, Jason Walker , is back with us today for Part 2 of his two-part series. Yesterday...
  • Blog Post: Anatomy of a PowerShell DSC Resource

    Summary : Guest blogger and Microsoft PFE, Jason Walker, talks about the anatomy of a Windows PowerShell DSC resource. Microsoft Scripting Guy, Ed Wilson, is here. Today is Part 1 of a two-part series written by Microsoft PFE and Honorary Scripting Guy, Jason Walker . The majority of my "PowerShelling"...
  • 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: Select History Via PowerShell Out-Gridview

    Summary : Microsoft Scripting Guy, Ed Wilson, continues his tips and tricks series by talking about select Windows PowerShell commands via Out-GridView . Microsoft Scripting Guy, Ed Wilson, is here. One of the great things about getting a bunch of Windows PowerShell people together is that they begin...
  • 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: PowerShell Tips and Tricks: Extended History

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about a module that provides extended command history. Microsoft Scripting Guy, Ed Wilson, is here. One of the things that came up during the Charlotte Windows PowerShell User Group meeting was the HistoryPx module that was written by Windows PowerShell...
  • Blog Post: Use PSReadLine for More Efficient PowerShell Console

    Summary : Microsoft Scripting Guy, Ed Wilson, presents a tip from the Charlotte User Group meeting about using PSReadLine. Microsoft Scripting Guy, Ed Wilson, is here. One really big tip that came out during the Charlotte User Group meeting was to use the PSReadLine module. It provides is syntax highlighting...
  • Blog Post: Favorite PowerShell Tips and Tricks

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about Windows PowerShell tips and tricks from the Charlotte User Group meeting. Microsoft Scripting Guy, Ed Wilson, is here. Last week was a special meeting at the Charlotte Windows PowerShell User Group. It followed immediately after the Windows...
  • Blog Post: PowerTip: Determine if Property is Member of Object

    Summary : Determine if a property is a member of an object in Windows PowerShell. How can I determine if a specific property is actually a member of an object in my Windows PowerShell script? Use the Get-Member cmdlet, and cast the response into a Boolean data type by using the [bool] type accelerator...
  • 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...
  • Blog Post: Using Transactions with PowerShell Registry Provider

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using transactions with the Windows PowerShell Registry provider. Hey, Scripting Guy! I was looking at the various providers and their capabilities (see Find and Use Windows PowerShell Providers ). I see that the Registry provider says it does...
  • Blog Post: PowerTip: Set Default Location Stack with PowerShell

    Summary : Use Windows PowerShell to set your default location stack. How can I use Windows PowerShell to set the default for some named location stacks that I created? Use the Set-Location cmdlet and specify the stack name, for example: Set-Location -StackName REG
  • Blog Post: Using Named Location Stacks in PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using named location stacks in Windows PowerShell. Hey, Scripting Guy! If I need to move around in two types of locations, how would I do it? Suppose I need to look in various places in my profile, and then I need to do some work in data locations...
  • Blog Post: PowerTip: Display Locations Stored on Stack

    Summary : Use Windows PowerShell to display locations stored on the default stack. How can I use Windows PowerShell to see the locations that are stored on my default location stack? Use the –Stack parameter of Get-Location : Get-Location -Stack
  • Blog Post: Location, Location, Location in PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about managing locations in Windows PowerShell. Hey, Scripting Guy! I don’t understand what is the big deal with Get-Location . I mean, I can look and see where I am at, so why do I need Get-Location ? For that matter, what are a PushD and...
  • Blog Post: PowerTip: Find PowerShell Cmdlets and Synopsis

    Summary : Use Windows PowerShell to find cmdlets and their associated synopsis. How can I easily find a list of specific Windows PowerShell cmdlets and their associated meanings? Use the Get-Command cmdlet, pipe the results to the Foreach-Object and Get-Help cmdlets, then select the name and synopsis...
  • Blog Post: Find and Use Windows PowerShell Providers

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about finding and using Windows PowerShell providers. Hey, Scripting Guy! I recently heard a Windows PowerShell MVP say that understanding the Windows PowerShell provider system is fundamental to understanding Windows PowerShell. I think I am in...
  • Blog Post: PowerTip: Find PowerShell Providers

    Summary : Learn how to find Windows PowerShell providers and their capabilities. How can I find what Windows PowerShell providers I have on my system? Use the Get-PSProvider cmdlet. Note Beginning with Windows PowerShell 3.0, some providers load on-demand, and therefore, they do not appear unless...
  • Blog Post: Weekend Scripter: Use PowerShell to Create Users in Active Directory

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to read a CSV file and create users in Active Directory. Microsoft Scripting Guy, Ed Wilson, is here. Yesterday in Oh No! Oh Wait...PowerShell for the Win! , I created a CSV file from a Word document that I had been...
  • Blog Post: Weekend Scripter: Oh No! Oh Wait...PowerShell for the Win!

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to clean up an impossible document. Microsoft Scripting Guy, Ed Wilson, is here. Sometimes I just cringe. It is a reflex reaction born from many long (and at times, torturous) years in the IT field. I know, I should...
  • Blog Post: Combine PowerShell Remoting and CIM

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about combining Windows PowerShell remoting and CIM. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about Windows PowerShell is remoting. It is not a new feature. In fact, it was introduced in Windows PowerShell 2.0—a time...
  • Blog Post: PowerTip: Use PowerShell to Remove All CIM Sessions

    Summary : Learn how to use Windows PowerShell to remove all CIM sessions. How can I use Windows PowerShell to delete all the CIM sessions I have created? Use the Get-CIMSession cmdlet to retrieve all CIM sessions, and pipe the results to the Remove-CIMSession cmdlet: Get-CimSession | Remove...
  • Blog Post: Look at Schema of WMI Class with PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to look at the schema of a WMI class. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about WMI is that it is largely self-describing. This means that I can use WMI and look at WMI. With the CIM...