Browse by Tags

Tagged Content List
  • Blog Post: Scripting Wife Comments on Beginner Event 5

    Summary : The Scripting Wife reveals her impressions of 2013 Scripting Games Beginner Event 2. This event was tough—at least for me. You see, the thing is that I can read text files, and I can get listings of text files. And these log files are just text, after all. The trouble is the part about...
  • Blog Post: 2013 Scripting Games: Advanced Event 5

    Summary : Scripting Games Advanced Event 5: Dr. Scripto needs to create a tool to find client IP addresses from a bunch of IIS logs. Microsoft Scripting Guy, Ed Wilson, is here. Today is the release of Event 5 for the 2013 Scripting Games. Remember that they are being run and hosted at www.powershell...
  • Blog Post: 2013 Scripting Games: Beginner Event 5

    Summary : Scripting Games Beginner Event 5: Dr. Scripto needs to find client IP addresses from IIS logs. Microsoft Scripting Guy, Ed Wilson, is here. Today is the release of Event 5 for the 2013 Scripting Games. Remember that they are being run and hosted at www.powershell.org . You will need to go...
  • Blog Post: PowerTip: Find Format Data Used by Current PowerShell Session

    Summary : Find the Windows PowerShell format data files that are used in your current Windows PowerShell session. How can I find the format data files that are being used in my current Windows PowerShell session? Use the Get-FormatData cmdlet in Windows PowerShell 3.0, and to browse this information...
  • Blog Post: Variable Substitution in a PowerShell Script Block

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about performing variable substitution inside a Windows PowerShell script block. Hey, Scripting Guy! I am trying to create a command. The command contains variables that I would like to assign prior to creating the command. However, when I get to...
  • Blog Post: PowerTip: Create a PowerShell Script Block on the Fly

    Summary : Create a Windows PowerShell script block on the fly. How can I convert a string into a Windows PowerShell script block? Use the static Create method from the [scriptblock] class: PS C:\> [scriptblock]::Create("this is a string") | gm TypeName: System.Management.Automation.ScriptBlock...
  • Blog Post: PowerShell Hash Tables that Contain Keywords...hmm...

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about dealing with Windows PowerShell hash tables that contain keywords. Dude! Hey, Scripting Guy! I have a problem in that I want to create a hash table from an array. This is easy enough to do, but if the array contains keywords, then everything...
  • Blog Post: PowerTip: Create an XML Representation of a Registry Key with PowerShell

    Summary : Use Windows PowerShell to create an XML representation of a registry key. How can I easily create an XML representation of a registry key by using Windows PowerShell? Use the Get-ChildItem cmdllet and the registry provider to get the registry key, and pipe the results to the Export-CliXML...
  • Blog Post: Use PowerShell to Copy Only Folders that Contain Files

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to copy only folders that contain files. Microsoft Scripting Guy, Ed Wilson, is here. In some respects, it seems like I have been using Windows PowerShell for a long time. In other respects, it seems like the journey...
  • Blog Post: PowerTip: Toggle Outline View in the Windows PowerShell ISE

    Summary : Toggle the Outline view in the Windows PowerShell ISE. How can I easily toggle the Outline view in the Windows PowerShell ISE? Use the ToggleOutlineExpansion method from the editor object of the CurrentFile object from $psise : $psise.CurrentFile.Editor.ToggleOutliningExpansion()
  • Blog Post: Weekend Scripter: Add Power and Functionality to the PowerShell ISE Part 2

    Summary : Microsoft Scripting Guy, Ed Wilson, adds more power and functionality to the Windows PowerShell ISE with a modified module. Microsoft Scripting Guy, Ed Wilson, is here. This is Part 2 of a two part series where I edit my Windows PowerShell ISE module and add five new functions. The five...
  • Blog Post: PowerTip: Find the Path to a PowerShell Module

    Summary : Easily find the path to a Windows PowerShell module. How can I easily find the path to a Windows PowerShell module? Use the Get-Module cmdlet and a wildcard character for the name, and select the Path property. The following script finds the PowerShellISEModule (an optional module in...
  • Blog Post: Weekend Scripter: Add Power and Functionality to the PowerShell ISE Part 1

    Summary : Microsoft Scripting Guy, Ed Wilson, begins a revision of his Windows PowerShell ISE Module by adding five new functions. Microsoft Scripting Guy, Ed Wilson, is here. I decided to block off the weekend to work on my Windows PowerShell ISE module. There are several things that I want to add...
  • Blog Post: PowerTip: Use PowerShell to Get Virtual Machine Start Mode

    Summary : Sean Kearney shows how to determine virtual machine start mode by using Windows PowerShell. How can I tell which virtual machines will start automatically? Use the Get-VM cmdlet, and check the AutomaticStartAction property: Get-VM | Format-Table Name,AutomaticStartAction -autosize
  • Blog Post: Change Virtual Machine Network Configuration with PowerShell

    Summary : Learn how to use Windows PowerShell to change the virtual machine network configuration in Windows Server 2012. Microsoft Scripting Guy, Ed Wilson, is here. If you are a seasoned Hey, Scripting Guy! Blog reader, you know that the most frequent guest blogger is Sean Kearney. If you are new...
  • Blog Post: Scripting Wife Comments on Beginner Event 4

    Summary : The Scripting Wife reveals her impressions of 2013 Scripting Games Beginner Event 4. When I first read this, I thought, “Dude, this is going to take an entire script.” But as I began to read the Help information for the Get-Random cmdlet, it dawned on me that I could do this...
  • Blog Post: 2013 Scripting Games: Advanced Event 4

    Summary : Scripting Games Advanced Event 4: Dr. Scripto needs audit 20 random users from Active Directory. Microsoft Scripting Guy, Ed Wilson, is here. Once again it is time to reveal an event for the 2013 Scripting Games that are being hosted and run by www.powershell.org . Head on over to their...
  • Blog Post: PowerTip: Find All Required Assemblies for PowerShell Modules

    Summary : Find required assemblies for your Windows PowerShell modules. How can I use Windows PowerShell to show required assemblies for my Windows PowerShell modules? Use the ExpandProperty parameter of Select-Object and choose the RequiredAssemblies property from the Get-Module cmdlet after you...
  • Blog Post: I Found This Module—What Do I Do?

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about how to use a Windows PowerShell module. Hey, Scripting Guy! I found this module in the Scripting Guys Script Repository. Now what do I do? —SH Hello SH, Microsoft Scripting Guy, Ed Wilson, is here. This morning I have been busy...
  • Blog Post: PowerTip: Use PowerShell to Show Screensaver Info for Logged-on User

    Summary : Use Windows PowerShell to show screensaver info for a user who is logged on. How can I easily use Windows PowerShell to show screensaver information for the currently logged-on interactive user? Use WMI to query the Win32_Desktop class, and filter on the logged-on user’s name: ...
  • Blog Post: I Found this PowerShell Function—Now What Do I Do? Part 3

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about combining functions into a single function file, and using them in scripts. Microsoft Scripting Guy, Ed Wilson, is here. This morning is sort of mellow. It seems as if the clouds are touching the ground, and all sound is suppressed by a thick...
  • Blog Post: PowerTip: Use Set-Variable to Create a ReadOnly PowerShell Variable

    Summary : Use the Set-Variable cmdlet to create a ReadOnly Windows PowerShell variable. How can I create a ReadOnly variable in Windows PowerShell? Use the Set-Variable cmdlet to create a ReadOnly variable, and specify ReadOnly for the Option parameter, and you can specify a description for the...
  • Blog Post: I Found this PowerShell Function—Now What Do I Do? Part 2

    Summary : Microsoft Scripting Guy, Ed Wilson, continues his discussion about what to do with a Windows PowerShell function. Microsoft Scripting Guy, Ed Wilson, is here. Last week I did not get a chance to finish answering a question from JB about how to use a Windows PowerShell function. Note This...
  • Blog Post: PowerTip: Use PowerShell to List Top-Level WMI Namespaces

    Summary : Use Windows PowerShell to list top-level WMI namespaces. How can I use Windows PowerShell to list the top-level WMI namespaces? Use the Get-WmiObject cmdlet or the Get-CImInstance cmdlet and query for __NameSpace : Windows PowerShell 2.0 syntax: Get-WmiObject __NameSpace | select...
  • Blog Post: Security Series: Using PowerShell to Protect Your Private Cloud Infrastructure – Part 3

    Summary : Microsoft senior technical writer, Yuri Diogenes, and knowledge engineer, Tom Shinder, talk about using Windows PowerShell to protect a Windows Server 2012-based cloud infrastructure. Microsoft Scripting Guy, Ed Wilson, is here. Guest bloggers Yuri Diogenes and Tom Shinder are back with...
Page 1 of 79 (1,973 items) 12345»