Showing archive results for 2010

Aug 9, 2010
Post comments count0
Post likes count0

How Do I Use a Windows PowerShell Script Containing Functions?

ScriptingGuy1

  Summary: Using a script containing Windows PowerShell functions can be as simple as dot-sourcing the script.   Hey, Scripting Guy! I was looking in the Script Center Script Repository for Windows PowerShell scripts, and I found one that was really cool. Unfortunately, when I attempted to use it, it did not work. I know that scripts in...

Scripting Guy!Windows PowerShellscripting techniques
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