Browse by Tags

Tagged Content List
  • Blog Post: PowerTip: Use PowerShell to Keep Servers Correctly Configured

    Summary : How do I keep my servers configured correctly? I can write Windows PowerShell scripts to configure my machines, but how do I enforce these configurations after the script has finished? This situation is called "configuration drift." You’ve set up your server properly,...
  • Blog Post: Number 1 Reason to Upgrade to PowerShell 4.0: Desired State Configuration

    Summary : Windows PowerShell MVP, Dave Wyatt, says the number 1 reason to upgrade to Windows PowerShell 4.0 is Desired State Configuration. Microsoft Scripting Guy, Ed Wilson, is here. Today, Dave Wyatt , is back to share his ideas about upgrading to Windows PowerShell 4.0. Dave is a Microsoft...
  • Blog Post: My Path to a PowerShell 4.0 Upgrade

    Summary : Microsoft IIS MVP, Terri Donahue, talks about her path to upgrading to Windows PowerShell 4.0. Microsoft Scripting Guy, Ed Wilson, is here. Welcome new guest blogger, Terri Donahue. Microsoft IIS MVP, Terri Donahue is a systems administrator who has been supporting Internet Information...
  • Blog Post: PowerTip: Find If PowerShell DSC Resource is Available

    Summary : Learn to find if a Windows PowerShell DSC resource is available. How can I find if the Desired State Configuration resource that I need for a script I found on the Internet is available on my computer? Use the Get-DSCResource cmdlet and specify the name of the provider. Here is an example...
  • Blog Post: Use PowerShell DSC to Configure Internet Explorer

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Desired State Configuration to configure Internet Explorer on servers. Microsoft Scripting Guy, Ed Wilson, is here. This morning I decided to use my single-cup tea infuser to make a cup of Orange Cream tea using some leaves I brought...
  • Blog Post: PowerTip: Change the PowerShell Prompt

    Summary : Learn how to shorten the Windows PowerShell prompt. I am concerned that the Windows PowerShell prompt is becoming too long when working with the registry or the file system, and I would like to shorten it. Change the prompt with the following one-liner (remember to add a space at the...
  • Blog Post: Use PowerShell and DSC to Enable Logging

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and the Desired State Configuration Resource Kit to enable logging. Microsoft Scripting Guy, Ed Wilson, is here. Dude, a pumpkin patch sprung up across the street from us. On my walk to the university, I passed at least...
  • Blog Post: PowerTip: Use PowerShell to Remove Characters in a String

    Summary : Learn how to use Windows PowerShell to remove specific characters in a string. I have a string that includes braces: $a = '{Abcde}' I want to remove the braces, but keep the text string inside the braces. How can I do this by using Windows PowerShell? Use the –Replace...
  • Blog Post: Use PowerShell DSC to Check Pending Reboot

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and DSC to check a pending reboot. Microsoft Scripting Guy, Ed Wilson, is here. The Scripting Wife and I started the week by heading to the Microsoft office to get our flu shots. Luckily, the flu shot did not require...
  • Blog Post: PowerTip: Check Status of PowerShell Help Files on Remote Computers

    Summary : Use Windows PowerShell to check the status of Help file updates on remote computers. How can I easily see if the Windows PowerShell Help files are up-to-date on my remote computers? Use the Invoke-Command cmdlet, target the remote computers, use Get-Help to look for help, and then use...
  • Blog Post: Use DSC to Install Windows PowerShell DSC Resource Kit Bits

    Summary : Learn how to use DSC to install Windows PowerShell Desired State Configuration Resource Kit bits. Microsoft Scripting Guy, Ed Wilson, is here. Fall has definitely arrived here in Charlotte, North Carolina in the southern portion of the United States. The mornings are cool, the evenings are...
  • Blog Post: PowerTip: Use PowerShell to See If WinRM Is Running on Remote Computer

    Summary : Learn how to easily use Windows PowerShell to check if WinRM is running on a remote computer. How can I use Windows PowerShell to ensure that WinRM is running and configured on my three remote computers? Create an array of computer names, and pipe them to the Test-WsMan cmdlet, for example...
  • Blog Post: Practical Reasons for Upgrading to PowerShell 4.0

    Summary : Guest blogger and Windows PowerShell MVP, Jeff Wouters, provides several practical reasons for upgrading to Windows PowerShell 4.0. Microsoft Scripting Guy, Ed Wilson, is here. Today we continue our “Why Upgrade to Windows PowerShell 4.0” series with a guest blog post written...
  • Blog Post: PowerTip: Use PowerShell 4.0 Where Operator to Filter

    Summary : Use Windows PowerShell 4.0 Where operator to filter results. How can I use a Where operator in Windows PowerShell (without using the pipeline or Where-Object ) to filter through processes? Use Get-Process to group the processes into a collection, then use the Where operator and filter...
  • Blog Post: Upgrade to PowerShell 4.0 Because It Is Easier to Use

    Summary : Microsoft PowerShell MVP, Teresa Wilson (aka Scripting Wife), talks about upgrading to Windows PowerShell 4.0 because it is easier to use. Microsoft Scripting Guy, Ed Wilson, is here. Today I continue my series of posts about upgrading to Windows PowerShell 4.0 by turning over the keyboard...
  • Blog Post: PowerTip: Replace Characters in String that Is Not Part of Group

    Summary : Use Windows PowerShell to replace all characters in a string that is not part of a group. How can I use Windows PowerShell to remove all the non-alphabetic characters in the following string? (The single quotation marks are not part of the string.) '({Abcde})' Create a regular...
  • Blog Post: Use PowerShell to Download and Install DSC Resource Kit

    Summary : Microsoft Scripting Guy, Ed Wilson, writes a Windows PowerShell script to download and install the Desired State Configuration Resource Kit. Microsoft Scripting Guy, Ed Wilson, is here. Today I want to talk a little bit about downloading and installing the latest wave of the Windows PowerShell...
  • Blog Post: PowerTip: Check Version of PowerShell

    Summary : Learn how to check your version of Windows PowerShell. How can I find what version of Windows PowerShell my computer is running? Use the automatic $PSVersionTable variable, and check the PSVersion property, for example: $PSVersionTable.PSVersion
  • Blog Post: Weekend Scripter: Why Upgrade to PowerShell 4.0?

    Summary : Microsoft Scripting Guy Ed Wilson talks about why to upgrade to Windows PowerShell 4.0 Microsoft Scripting Guy, Ed Wilson, is here. I am kicking off a week of posts that are written by Windows PowerShell MVPs, a member of the product group, and myself, in which we are going to talk about...
  • Blog Post: PowerTip: Get PowerShell Module by Using –FullyQualifiedName Parameter

    Summary : Learn how to get a specific Windows PowerShell module by using the –FullyQualifiedName parameter. How can I look at the specific version of a Windows PowerShell module? In Windows PowerShell 4.0, you can do this by using the –FullyQualifiedName parameter of the Get-Module...
  • Blog Post: Weekend Scripter: Glimpse into the PowerShell Future

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about the future of Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. I don’t know about you, but I “got into IT” because I am easily bored. I don’t mean that I have a short attention span, because I don’t...
  • Blog Post: PowerTip: Find Name of PowerShell Host

    Summary : Learn to find the name of the Windows PowerShell host. How can I determine if I am running a Windows PowerShell script in the Windows PowerShell console? Use the Get-Host cmdlet. Here is how to check: if((Get-Host).name -ne "consolehost") {"Take appropriate action here"...
  • Blog Post: Weekend Scripter: Use PowerShell to Calculate and Display Percentages

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to calculate and display percentages. Microsoft Scripting Guy, Ed Wilson, is here. This morning, I am sipping a cup of red berry tea. It is tangy and refreshing. I will admit that I cheated. I used our machine. Boom...
  • Blog Post: PowerTip: Use PowerShell to Display Number Grouping and Control Decimal Places

    Summary : Use Windows PowerShell to display number grouping and control the number of displayed decimal places. How can I use Windows PowerShell to group digits and control the number of decimal places in a large number? Use the Numeric Format Specifier , and specify the number of required decimal...
  • Blog Post: Use PowerShell to Identify When Hotfixes Are Installed

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to list when hotfixes are installed. Hey, Scripting Guy! Our corporate security person has tasked my manager with finding out about the number of hotfixes released by Microsoft each month. My manager, of course, passed...