Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

PowerTip: Use PowerShell to Identify Files Without an Extension

Summary: Use Windows PowerShell to identify files that do not have an extension. (image)  How can I use Windows PowerShell to easily identify files that do not have an extension? (image)  Use the HasExtension static method from the System.IO.Path .NET Framework class, for example: [System.IO.Path]::hasExtension("C:\fso...

Don’t Write Scripts: Use Snippets

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell snippets to avoid scripting demands. (image)  Hey, Scripting Guy! One of the things that I find myself having to do from time-to-time is write scripts. I really don’t like to write scripts, but sometimes I cannot find what I need to, and I cannot avoid...

Don’t Script: Edit PowerShell Command History

Summary: Microsoft Scripting Guy, Ed Wilson, talks about editing the Windows PowerShell command history. (image)  Hey, Scripting Guy! I liked your ideas in Avoid Scripting: Use PowerShell Command History. My problem is that I seldom (if ever) type commands perfectly the first time—often, not even the second time. This means that I ...