Browse by Tags

Tagged Content List
  • 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: 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: Formatting Date Strings with PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about formatting date strings with Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. It seems that different ways to display dates and times are in great supply. In fact, there are dozens of ways to do this. If I decide 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 Explore Dates

    Summary : Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to explore dates in the future. Microsoft Scripting Guy, Ed Wilson, is here. This afternoon, I am sipping a nice cup of Kwai Flower Organic Oolong tea. It is a slightly sweet, mild tea that goes well with jasmine blossoms...
  • Blog Post: Create a Proxy Function to Display Registry Key Time Stamps

    Summary : Guest blogger, Rohn Edwards, discusses creating a Windows PowerShell proxy function to display registry key time stamps. Microsoft Scripting Guy, Ed Wilson, is here. Happy New Year to you all. Guest blogger, Rohn Edwards, is back with us today to continue his series about retrieving registry...
  • Blog Post: Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (02/06/09)

    How Can I Pipe Over a Variable for Use in a File Name? Hey, Scripting Guy! Sorry to bother you but I have been looking for an answer to this for a few hours now. I’ve also been experimenting but have had no luck figuring it out yet. How do you get a variable to pipe over to use in a file name?...
  • Blog Post: Expert Solution for 2011 Scripting Games Beginner Event 7: Use PowerShell to Get the Number of Days Between Dates

    Summary : Microsoft PFE, Michael Frommhold, uses Windows PowerShell to get the number of days between two dates as he solves Beginner Event 7 in one line of code. Microsoft Scripting Guy, Ed Wilson, here. Michael Frommhold is the author for the expert commentary on Beginner Event 7. Michael has been...
  • Blog Post: Use PowerShell to Convert Date Formats Easily

    Summary : Microsoft Scripting Guy Ed Wilson discusses four different techniques for using Windows PowerShell to convert date formats. Hey, Scripting Guy! I have a problem. Although I am sure you hear this a lot, this problem is causing me a major problem at work. Here is the deal. We are a large...
  • Blog Post: Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (10/16/09)

    In this post : Has the WMI Problem with Dates and Daylight Saving Time Been Resolved? How Can I Change the Color of Error Messages in the Windows PowerShell Console? How Can I Read a Text File and Update 2,000 User Accounts? Can I Use a WildCard Character for File Names with the FileSystemObject...
  • Blog Post: The 2011 Scripting Games Beginner Event 9: Use PowerShell to Create a File Name Based on a Date

    Summary : Beginner Event 9 in 2011 Scripting Games uses Windows PowerShell to create a file with a name that is based on a date. About this event Division Beginner Date of Event 4/14/2011 12:01 AM Due Date 4/21/2011 12:01 AM ...
  • Blog Post: Beware the Ides of March—But by Who's PowerShell Calendar?

    Summary : Learn about using Windows PowerShell and specifying different calendar types to use with dates. Microsoft Scripting Guy, Ed Wilson, is here. Today is day four of my PowerShell Essentials for the Busy Admin series of webcasts. The series has been a lot of fun, and the feedback so far has...
  • Blog Post: Manipulating Date Ranges with Windows PowerShell

    Hey, Scripting Guy! I need to be able to add and subtract dates so that I can use the results in custom queries for various Windows event logs using Windows PowerShell . Is doing this type of date manipulation easy or hard to do with Windows PowerShell? If it is not too difficult to do, could you whip...
  • Blog Post: How to Express Dates in Different Fashions with Windows PowerShell

      Hey, Scripting Guy! I need to use Windows PowerShell to be able to parse dates. We have dates that are displayed in different ways. Some are day/month/year, others are month/day/year, and still others are year/month/day. I need to be able to express these different date configurations with a minimal...
  • Blog Post: Using Windows PowerShell to Work with Dates

    Hey, Scripting Guy! I need to be able to use Windows PowerShell to work with dates. Dates have always been a difficult thing to work with, and I just dread scripting anything that has to do with dates. It seemed that VBScript had a dozen functions that were used to work with dates and times. Is there...
  • Blog Post: Hey, Scripting Guy! How Can I Create File Names Based on Their Time Stamp?

    Hey, Scripting Guy! How can I create a file name from the date? I have this application that creates a log file, and every hour I would like to save that log file as a file whose name is generated from the current time stamp. Can this be done? - RH Hi RH, Ever since I read your e-mail message,...
  • Blog Post: Expert Solution for 2011 Scripting Games Beginner Event 10: Use Easy PowerShell Code to Time Script Operations

    Summary : Microsoft PowerShell MVP Marco Shaw solves beginner event 10 in the 2011 Scripting Games and shows how to time script operations Microsoft Scripting Guy, Ed Wilson, here. Marco Shaw is the author of the expert commentary for Beginner Event 10 . Marco is a consultant with CGI in...
  • Blog Post: The 2011 Scripting Games Beginner Event 7: Easily Determine Days Between Dates by Using PowerShell

    Summary : Beginner Event 7 uses Windows PowerShell to determine the number of days between dates. About this event Division Beginner Date of Event 4/12/2011 12:01 AM Due Date 4/19/2011 12:01 AM Event scenario ...
  • Blog Post: Hey, Scripting Guy! When Will We Land?

    Hey, Scripting Guy! I am writing to you offline because I am stuck in an airplane somewhere over the Atlantic Ocean. It seems like I have been flying for two weeks, and I am really getting tired of looking at the bald spot on the head in front of me. Do you know when we will land? -- DS Hi DS, ...
  • Blog Post: 2012 Scripting Games Beginner Event 6: Compute Uptime for Local Computer

    Summary : In Beginner Event 6, you are required to compute the uptime for the local computer. About this event Division Beginner Date of Event 4/9/2012 12:01 AM Due Date 4/16/2012 12:01 AM Event scenario You...