Showing archive results for 2010

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
Aug 2, 2010
Post comments count0
Post likes count0

Using Windows PowerShell to Work with Dates

ScriptingGuy1

  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 something similar for Windows PowerShell...

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

Using Windows PowerShell to Work with Numbers

ScriptingGuy1

Microsoft Scripting Guy Ed Wilson here, the hotel we are using this weekend has free wireless access points setup throughout the facility. I decided to take my laptop with me as I headed downstairs to get some breakfast. The horse show does not begin until 10:00 A.M., and that gives me some time to catch up on email sent to scripter@microsoft.com. ...

Scripting Guy!Windows PowerShellscripting techniques
Jul 31, 2010
Post comments count0
Post likes count2

Using Windows PowerShell to Determine if a Laptop Is on Battery Power

ScriptingGuy1

  Microsoft Scripting Guy Ed Wilson here. It is time for another road trip. This time we are heading to Asheville, North Carolina for the Blue Ridge Classic Horse Show. Somewhere deep in my Scripting Guy lineage is an association with Kentucky, which is considered a horse state. Horse shows are really cool. My significant other and I went to a...

Scripting Guy!Windows PowerShellWeekend Scripter
Jul 29, 2010
Post comments count0
Post likes count0

How to Add Data to an XML File Using Windows PowerShell

ScriptingGuy1

Hey, Scripting Guy! I need to be able to use Windows PowerShell to add data to an XML file. Unfortunately, there is no Add-XML cmdlet available. I thought about using the Windows PowerShell Add-Content cmdlet and trying to write my data to the file, but it never worked correctly. I never could get all of those angle thingies to line up properly. Th...

Scripting Guy!Windows PowerShellscripting techniques