The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
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...
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...
Summary: Use Windows PowerShell to find the temporary user directory.
(image) How can I use Windows PowerShell to find location of my temporary user directory?
(image) Use the GetTempPath static method from the System.IO.Path .NET Framework class:
[System.IO.Path]::GetTempPath()
(image...
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 ...
Summary: Use Windows PowerShell to generate a random file name.
(image) How can I use Windows PowerShell to generate a random file name so I can ensure that a file I create does not have a naming conflict?
(image) Use the GetRandomFileName static method from the System.IO.Path .NET...