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: Quickly search files for text with Windows PowerShell.
(image) How can I use Windows PowerShell to quickly search text files for a string?
(image) Use the Select-String cmdlet and supply a path and a pattern. In the following example, I search the current folder for the computer...
Summary: Windows networking engineer, James Kehr, discusses using Windows Azure cmdlets to create endpoint ACLs.
Microsoft Scripting Guy, Ed Wilson, is here. This weekend we have a two-part series from guest blogger, James Kehr. It is really cool. Take it away, James…
Greetings my fellow netizens. James Kehr here with the Windows ...
Summary: Use Windows PowerShell to capture console application data.
(image) How can I parse the output from a console application by using Windows PowerShell?
(image) Run the application as normal, but assign it to a Windows PowerShell object—for example, DriverQuery.exe will display output to the...
Summary: Use Windows PowerShell to build scripts to automate DiskPart.
(image) Hey, Scripting Guy! Can we build a DISKPART script to automatically format USB drives as bootable?
—SH
(image) Hello SH,
Honorary Scripting Guy, Sean Kearney, here. I’m filling in for our good friend, Ed Wilson. It’s Friday and Ed has ...
Summary: Use Windows PowerShell to list physical drives.
(image) How can I use Windows PowerShell to get a list of physical drives?
(image) Use Get-WMIObject, query win32_logicaldisk, and filter with the DriveType property:
GET-WMIOBJECT –query “SELECT * from win32_logicaldisk where DriveType = ‘3’”
To...