Showing archive results for 2010

Jul 28, 2010
Post comments count0
Post likes count0

Writing Double Quotation Marks to a Text File Using Windows PowerShell

ScriptingGuy1

  Hey, Scripting Guy! I need to be able to write double quotation marks to a text file using Windows PowerShell. I know that in VBScript it was really annoying to do this because the quotation marks ended up getting confused with the quotation mark that was used to indicate the start of a string; when the next quotation mark was seen, VBScri...

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

Deleting Extra Returns and Line Feeds from a Text File Using Windows PowerShell

ScriptingGuy1

  Hey, Scripting Guy! Is it possible to use Windows PowerShell to groom a text file by deleting extra returns and line feeds it may contain? Here is the deal. I have a file that we need to download each day. This file contains updated prices for commodities used in our manufacturing operation. We use the updated commodity pricing to determin...

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

Parsing an AuditPol.exe Report with Windows PowerShell 2.0

ScriptingGuy1

  Hey, Scripting Guy! I have been using AuditPol.exe to verify the audit policy that is configured on our network. The problem is that the report that is generated has a lot of text, and it is not easy to see exactly what is being audited or not. Is it possible to use Windows PowerShell 2.0 to parse the report generated by AuditPol.exe to mak...

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

Windows PowerShell, Invalid Certificates, and Automated Downloading

ScriptingGuy1

Summary: If a trusted website has an expired or self-signed certificate, you must ignore the error to use Windows PowerShell with the website.   Microsoft Scripting Guy Ed Wilson here. Years ago I used to teach MCSE training classes and one of my favorites was a course on troubleshooting. Because I was a consultant by day and instructor at nig...

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

Weekend Scripter: Where.exe—The What, Why, and How

ScriptingGuy1

Microsoft Scripting Guy Ed Wilson here. The sounds outside seems amplified by the inky darkness that grudgingly gives way to the early morning sun. I am sitting on the front porch sipping a cup of English Breakfast Tea, munching on a freshly baked cinnamon scone, and hanging out on Twitter via my laptop. Having wireless access throughout our house ...

Scripting Guy!Windows PowerShellscripting techniques