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: Determine the source of a particular Windows PowerShell cmdlet.
(image) How can I tell if a Windows PowerShell cmdlet comes from one module or from another module?
(image) Use the Get-Command cmdlet, and select the module property:
Get-Command unblock-file | select name, module
(image...
Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to unblock all files in a directory.
Microsoft Scripting Guy, Ed Wilson, is here. Today is the day. As those of you who have been reading the Hey, Scripting Guy! Blog on a regular basis know, today is the speaker’s dinner (and scripting slumber party) for ...
Summary: Use the [xml] type accelerator to greatly simplify reading XML documents.
(image) How can I easily read an XML file?
(image) Use the [XML] type accelerator to convert results from Get-Content into an XML document, and then use dotted notation to access the nodes:
[xml]$books = Get-Content C:\fso\Books.XML
$...
Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell 3.0 to read XML files.
Microsoft Scripting Guy, Ed Wilson, is here. Tomorrow, we have the speaker’s dinner at the house that script built. The Scripting Wife and I have invited all the Windows PowerShell Saturday speakers for the Charlotte Windows...
Summary: Use a one-line command to obtain WMI class schema (MOF) information.
(image) How can I use Windows PowerShell to display the MOF of a WMI class?
(image) Use the WMIClass type accelerator, and then call the static GetText method whilst supplying the word MOF:
&...