Browse by Tags

Tagged Content List
  • 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...
  • Blog Post: Adding and Subtracting Dates with PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about adding and subtracting dates with Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. One of the things I really like about Windows PowerShell is the way it simplifies adding and subtracting from dates. For example, if I want to...
  • Blog Post: PowerTip: Use PowerShell to Display Format for Short Date

    Summary : Use Windows PowerShell to display the culture-specific format for a short date. How can I use Windows PowerShell to display the format of a short date that is specific to the culture settings of my system? Use the Get-Culture cmdlet and select the DateTimeFormat and ShortDatePattern properties...
  • Blog Post: Use PowerShell to Work with Individual Dates

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to work with dates. Microsoft Scripting Guy, Ed Wilson, is here. I don’t know about you, but one thing about my life as the Scripting Guy is that it keeps me busy. "Keeping busy" is a slang expression...
  • Blog Post: PowerTip: Use PowerShell to Find Day of Week

    Summary : Learn how to use Windows PowerShell to find the day of the week. How can I use Windows PowerShell to find which day of the week a specific date will occur? Use the Get-Date cmdlet, and specify day, month, and year parameters, for example: Get-Date -Month 2 -Day 14 -Year 2015
  • Blog Post: Working with Dates in PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about the fundamentals of working with dates in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. For as long as I can remember, I have pretty much always hated working with dates and times. Back on my Osborne One, it was no fun. The...
  • Blog Post: PowerTip: Use PowerShell to Show Time

    Summary : Use Windows PowerShell to show the current time. How can I use Windows PowerShell to easily display only the current time? Use the Get-Date cmdlet and choose the Time display hint: Get-Date -DisplayHint Time
  • Blog Post: Weekend Scripter: Use PowerShell to Remotely Create Scheduled Task and Folder

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to remotely create a scheduled task and folder. Microsoft Scripting Guy, Ed Wilson, is here. On Friday in Use PowerShell to Create Scheduled Task in New Folder , I created a pretty long Windows PowerShell script that...
  • Blog Post: Weekend Scripter: Run a Scheduled Task to Check DSC

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about running a scheduled task to perform a consistency check for DSC. Microsoft Scripting Guy, Ed Wilson, is here. One of the things I love to do is to automate things. Not only scripts. Not only Windows PowerShell. I also like to automate scheduled...
  • Blog Post: Weekend Scripter: Where Is the DSC Documentation?

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about where to find documentation for Windows PowerShell Desired State Configuration (DSC). Microsoft Scripting Guy, Ed Wilson, is here. One of the things that sometimes surprises me, is when I am talking to IT pros and I hear something like, “I...
  • Blog Post: Configure System Restore by Using PowerShell DSC

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell Desired State Configuration to configure a system restore. Microsoft Scripting Guy, Ed Wilson, is here. It is nearly the weekend in Charlotte, North Carolina. I decided to arise early, grab my Surface Pro 3, and head...
  • Blog Post: Use Desired State Configuration to Create System Restore Point

    Summary : Microsoft Scripting Guy Ed Wilson talks about using Windows PowerShell Desired State Configuration to create a system restore point. Microsoft Scripting Guy, Ed Wilson, is here. It is cold outside again. I nearly froze this morning when I headed to the gym for an easy walk on the treadmill...
  • Blog Post: Use PowerShell Desired State Configuration to Set Time Zone

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell Desired State Configuration to set the time zone. Microsoft Scripting Guy, Ed Wilson, is here. The weather is cold today in Charlotte. Not exactly freezing, but cold enough to merit a nice cup of English Breakfast tea...
  • Blog Post: Use DSC Resource to Configure PowerShell Execution Policy

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using a DSC resource to configure the Windows PowerShell execution policy. Microsoft Scripting Guy, Ed Wilson, is here. I am sipping a cup of mint tea and munching on a piece of fruitcake. I may be one of the few people in the world who actually...