Browse by Tags

Tagged Content List
  • Blog Post: Help Comparing Objects in PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, helps a reader compare two objects in Windows PowerShell. Hey, Scripting Guy! I am having a problem with a script. I wrote a function to compare virtual machines with virtual drives that I have on my hard drive, and it works just fine. But when I try to...
  • Blog Post: PowerTip: Create Array in PowerShell

    Summary : Use Windows PowerShell to easily create an array. Can I use Windows PowerShell to create an array of strings and avoid typing quotation marks around all the strings? Instead of creating an array, such as this: $array = “a”,”b”,”c”,”d”,”e”...
  • Blog Post: PowerShell Spotlight: Scripting Guys at Ignite

    Summary : Microsoft PowerShell MVP, Teresa Wilson, talks about plans for the Scripting Guys booth at Ignite in Chicago. Microsoft Scripting Guy, Ed Wilson, is here. Today we have Windows PowerShell MVP, Teresa Wilson (aka The Scripting Wife) with another edition of PowerShell Spotlight... It is...
  • Blog Post: Weekend Scripter: Special Charlotte PowerShell User Group Meeting

    Summary : On April 22, the Charlotte Windows PowerShell User Group will host Lee Holmes and Paul Higginbotham. Microsoft Scripting Guy, Ed Wilson, is here. Sometimes things just work out. The other day, I received an email from Lee Holmes. He is speaking at the Windows PowerShell Summit, which will...
  • Blog Post: PowerTip: Find PowerShell Sessions at Ignite

    Summary : See the scheduled Windows PowerShell sessions for Microsoft Ignite. I am planning to attend the Microsoft Ignite conference in Chicago this year! How can I find what Windows PowerShell sessions are on the schedule? Go to the Microsoft Ignite page, and filter on Windows PowerShell: Windows...
  • Blog Post: Use PowerShell to Detect if Hypervisor is Present

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to determine if a hypervisor is present Hey, Scripting Guy! I have been trying to use WMI to determine if a server has the hypervisor present. I found the WMI class, and even the properties I need. But alas, the WMI...
  • Blog Post: PowerTip: Use PowerShell to See if Media Center is Installed

    Summary : Use Windows PowerShell to determine if a Windows 8.1 has Media Center installed. How can I u se Windows PowerShell to determine if a version of Windows 8.1 has Media Center installed? Use WMI and look at the Caption property of the Win32_OperatingSystem WMI class, for example: (Get...
  • Blog Post: Use PowerShell to Remove Optional Features from Windows VHD

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to remove optional features from Windows virtual hard disks. Hey, Scripting Guy! I have a number of virtual machines that have optional features that they do not need, such as Windows Media Player. In fact, the virtual...
  • Blog Post: PowerTip: Use PowerShell to Find Installed Optional Features

    Summary : Learn how to use Windows PowerShell to find installed optional features in Windows. How can I use Windows PowerShell to see what optional features are installed in a copy of Windows? Use the Get-WindowsOptionalFeature cmdlet, and if you are looking at a version of Windows that is running...
  • Blog Post: Use PowerShell to Add Files to Offline Windows Image

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to add files to an offline Windows image. Hey, Scripting Guy! I have a number of VHDs that I need to add files to. I know that I can use File Manager to mount the VHD and then copy the files, but I am hoping that I...
  • Blog Post: PowerTip: Find DISM-Related PowerShell Cmdlets

    Summary : Learn how to find all Windows PowerShell cmdlets that work with DISM. How can I find all Windows PowerShell cmdlets that work with Deployment Image Servicing and Management (DISM)? Use the Get-Command cmdlet and specify the DISM module: Get-Command -Module dism
  • Blog Post: Use PowerShell to Explore Old Windows VHDs

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to explore old Windows VHDs. Hey, Scripting Guy! It is time for spring clean-up around our datacenter. I am not talking about chasing out dust bunnies, although that is part of it. What I am talking about is trying...
  • Blog Post: PowerTip: Use PowerShell to Find Virtual Hard Disks

    Summary : Use Windows PowerShell to find virtual hard disks on your system. I notice that my disk space appears to be disappearing at a rapid rate, and I suspect someone is creating virtual hard disks (VHDs) and forgetting about them. How can I use Windows PowerShell to find all the VHDs on my system...
  • Blog Post: Use PowerShell to Disable Wi-Fi

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to disable Wi-Fi if Ethernet is connected. Hey, Scripting Guy! When I have an Ethernet cable plugged in to my laptop and I am connected to a network, I want to ensure that everything else is disabled. How can I do that...
  • Blog Post: PowerTip: Use PowerShell to See Who Can Access Folder

    Summary : Use Windows PowerShell to see who has access to a folder. How can I use Windows PowerShell to see who has access rights to a folder? Use the Get-Acl cmdlet, specify the folder, and look at the access property, for example: (Get-Acl c:\fso).Access
  • Blog Post: Use PowerShell to Enable Wi-Fi

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to enable Wi-Fi if Ethernet is not connected. Hey, Scripting Guy! Most of the time when I use my laptop running Windows 8.1, I am plugged in to the Ethernet network at work. Occasionally, I unplug the laptop and take...
  • Blog Post: PowerTip: Use PowerShell to Disable All Network Adapters

    Summary : Use Windows PowerShell to disable all network adapters on your system. I often work in offline situations, and I would like to disable all network adapters on my laptop for security reasons and to help to extend battery life. How can I use Windows PowerShell to do this easily? Use the...
  • Blog Post: Weekend Scripter: Use PowerShell to Find Longest Cmdlet Name

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to find the longest cmdlet name. Microsoft Scripting Guy, Ed Wilson, is here. This is an exciting time of the year, as we get ready for the PowerShell Summit in Charlotte and for the Microsoft Ignite conference in Chicago...
  • Blog Post: PowerTip: Use PowerShell to Verify Hotfix

    Summary : Use Windows PowerShell to verify if a hotfix is installed. How can I use Windows PowerShell to verify that my workstation running Windows 8.1 has the November DSC rollup installed? Use the Get-Hotfix cmdlet and search for ID KB3000850: Get-HotFix -Id kb3000850
  • Blog Post: PSImaging Part 3: Group-ImageFile

    Summary : Guest blogger, Ben Vierck, talks about grouping similar images with Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Today we have Ben Vierck back for Part 3 in his series about images. Before you begin, you might like to read: PSImaging Part 1: Test-Image PSImaging...
  • Blog Post: PowerTip: Use PowerShell to Count Types of Images

    Summary : Use Windows PowerShell to count different types of image files. How can I use Windows PowerShell to see a count of the different types of image files on my computer? Use the Get-ChildItem cmdlet to find the image files and then pipe the results to the Group-Object cmdlet, for example...
  • Blog Post: PSImaging Part 2: Export-Text from Images

    Summary : Guest blogger, Ben Vierck, talks about using Windows PowerShell to export text from an image. Microsoft Scripting Guy, Ed Wilson, is here. Welcome back guest blogger Ben Vierck, for Part 2 of PSImaging. Read Part 1 before diving into today’s post: PSImaging Part 1: Test-Image . ...
  • Blog Post: PowerTip: Use PowerShell to Count Images

    Summary : Learn how to use Windows PowerShell to count images. How can I use Windows PowerShell to count images on a drive? Use the Get-ChildItem cmdlet, specify the path, and send the results to the Measure-Object cmdlet, for example: dir -Recurse -ea 0 -File -path e:\data -include "*...
  • Blog Post: PSImaging Part 1: Test-Image

    Summary : Guest blogger, Ben Vierck, talks about using Windows PowerShell to determine if a file is an image. Microsoft Scripting Guy, Ed Wilson, is here. I am happy to introduce a new guest blogger here at the Hey, Scripting Guy! Blog: Ben Vierck. Ben has been around for a while, using and supporting...
  • Blog Post: PowerTip: Read .exe Magic Number with PowerShell

    Summary : Learn how to use Windows PowerShell to see an .exe magic number. How can I use Windows PowerShell to see the "magic number" associated with an executable file in Windows? The term magic number refers to the bytes that occur at the beginning of every file and identify the format...