Showing archive results for August 2010

Aug 8, 2010
Post comments count0
Post likes count0

Weekend Scripter: Automatically Collecting Process Snapshots

ScriptingGuy1

  Microsoft Scripting Guy Ed Wilson here. It may seem like a “well duh” thing for a Scripting Guy to say, but I love writing scripts. In particular, I love writing Windows PowerShell scripts. One problem with sharing everything I write is that people always have a better idea about how to do things. But better can be relative. In m...

Scripting Guy!Windows PowerShellWeekend Scripter
Aug 7, 2010
Post comments count0
Post likes count0

Weekend Scripter: Boot Tracing with Windows PowerShell

ScriptingGuy1

Microsoft Scripting Guy Ed Wilson here. There used to be a really cool tool available in the Windows Driver Development Kit (DDK) that was called bootvis.exe. I used to use it to create a boot trace for my Windows XP computer. This tool was useful because it would let you know which drivers were taking a long time to load. Unfortunately, there is n...

Scripting Guy!Windows PowerShellWeekend Scripter
Aug 5, 2010
Post comments count0
Post likes count0

Manipulating Dates Returned by Windows Management Instrumentation (WMI)

ScriptingGuy1

  Hey, Scripting Guy! I need to understand how to work with dates that I receive from Windows Management Instrumentation (WMI). I remember in VBScript I had to use a function I got from the Scripting Guys that did string manipulation to convert the WMI date to a “normal” date. I guess that is okay, but I had no idea how that funct...

Scripting Guy!Windows PowerShellscripting techniques
Aug 4, 2010
Post comments count0
Post likes count0

Manipulating Date Ranges with Windows PowerShell

ScriptingGuy1

  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 up some examples of searching date range...

Scripting Guy!Windows PowerShellscripting techniques
Aug 3, 2010
Post comments count0
Post likes count0

How to Express Dates in Different Fashions with Windows PowerShell

ScriptingGuy1

  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 amount of monkeying around. Is this doab...

Scripting Guy!Windows PowerShellscripting techniques