Browse by Tags

Tagged Content List
  • 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: 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: 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: Use PowerShell to Archive a Folder and Copy to Server

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to create a .zip archive folder and copy it to a server. Hey, Scripting Guy! I have a folder that contains scripts. I update these scripts from time-to-time. I like to store the scripts on a central shared server. To...
  • Blog Post: PowerTip: Easily Find PowerShell DSC Resources

    Summary : Use Windows PowerShell to easily find DSC resources. How can I find what Desired State Configuration (DSC) resources are installed on my local system? Use the Get-DSCResource cmdlet.
  • Blog Post: Optimize PowerShell Code?

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about optimizing Windows PowerShell code. Microsoft Scripting Guy, Ed Wilson, is here. I was looking at my Windows Phone this morning and I noticed that today is Friday the 13 th . What seemed a bit strange to me is that I thought there was also...
  • Blog Post: PowerTip: Find Day of the Week with PowerShell

    Summary : Find the day of the week by using Windows PowerShell. How can I use Windows PowerShell to find what day of the week a particular date falls on? Access the DayOfWeek property from the DateTime object: (get-date).dayofweek
  • Blog Post: Use PowerShell to Create Archive and Send Email

    Summary : Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to create a .zip archive and email it. Hey, Scripting Guy! I have a number of files that I would like to archive on a regular basis to a .zip file. I need to email that .zip file as an attachment. I do this every week...
  • Blog Post: Weekend Scripter: Use PowerShell to Create Folder

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to create folders. Microsoft Scripting Guy, Ed Wilson, is here. I am not a huge fan of using a mouse. In fact, the more things I can do from Windows PowerShell the better. It is a huge waste of time for me when I have...
  • Blog Post: Weekend Scripter: Avoid PowerShell Scripting—Use GUI Tools

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about exporting queries from the event log tool. Microsoft Scripting Guy, Ed Wilson, is here. It has long been a truism (at least with things related to computers): powerful is opposite of simple. I can have a tool that is powerful, but with that...
  • Blog Post: Don’t Script: Create PowerShell Snippets

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about creating custom Windows PowerShell snippets. Hey, Scripting Guy! Thank you for yesterday's blog post, Don’t Write Scripts: Use Snippets . I like the idea of having access to Windows PowerShell script snippets. But I used to create...
  • Blog Post: Don’t Write Scripts: Use Snippets

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell snippets to avoid scripting demands. Hey, Scripting Guy! One of the things that I find myself having to do from time-to-time is write scripts. I really don’t like to write scripts, but sometimes I cannot find...
  • Blog Post: Don’t Script: Edit PowerShell Command History

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about editing the Windows PowerShell command history. Hey, Scripting Guy! I liked your ideas in Avoid Scripting: Use PowerShell Command History . My problem is that I seldom (if ever) type commands perfectly the first time—often, not even the...
  • Blog Post: Avoid Scripting: Use PowerShell Command History

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about avoiding Windows PowerShell scripting by using command history. Hey, Scripting Guy! I used to have a program that I could use to keep track of commands I typed at the command prompt. It permitted me to use macros to replay those commands or...
  • Blog Post: Write and Run PowerShell Script Without Scripting

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about writing and running a Windows PowerShell script without scripting. Hey, Scripting Guy! I like using the Windows PowerShell ISE, but I do not have rights to run a script. I am stuck using a twenty year-old command prompt with Windows PowerShell...
  • Blog Post: Get Process Owner and Other Info with WMI and PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and WMI to retrieve process owner and other information. Microsoft Scripting Guy, Ed Wilson, is here. We were supposed to receive seven inches of snow the other day. They closed schools and businesses, and the roads...
  • Blog Post: Use WMI and PowerShell to Work with Services

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and WMI to work with services. Microsoft Scripting Guy, Ed Wilson, is here. It is that time of the year. I just spent the last couple of hours uninstalling useless software from my laptop. This includes stuff that I...
  • Blog Post: Comparing WMI and Native PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about comparing WMI and using native Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. When Windows PowerShell was still in beta, there was a saying (song?) that said there must be 50 ways to stop a process. Actually, I am not certain...
  • Blog Post: When to Use WMI and PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about when to use WMI. Microsoft Scripting Guy, Ed Wilson, is here. One of the things that Windows PowerShell has done is make WMI very easy to use. Beginning with Windows PowerShell 1.0 and the Get-WmiObject cmdlet, WMI information has become much...
  • Blog Post: PowerTip: Get Row from CSV File Based On Value

    Summary : Use Windows PowerShell to get a row from a CSV file based on a specific value. How can I use Windows PowerShell 4.0 to look up a specific row from a CSV file I imported into a variable? Use the Where method, and use a match pattern to search on a specific column and value, for example...
  • Blog Post: Use PowerShell to Create Documents from Template

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to create Word documents from a template. Hey, Scripting Guy! I often need to create a bunch of Word documents. These documents have a number of standard features. Right now, I basically paste the last document I was...
  • Blog Post: Use PowerShell DSC to Configure the Registry

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and Desired State Configuration to configure the registry. Microsoft Scripting Guy, Ed Wilson, is here. I thought I would piggy-back a bit on the excellent posts that Windows PowerShell MVP, Richard Siddaway, wrote...
  • Blog Post: Create Custom Date Formats with PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about creating custom date formats with Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about working with Windows PowerShell is that it is highly configurable. In short, if there is something that I do not...