Summary: Quickly search files for text with Windows PowerShell.
How can I use Windows PowerShell to quickly search text files for a string?
Use the Select-String cmdlet and supply a path and a pattern. In the following example, I search the current folder for the computer name dc13:
Sele
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 Networ
Summary: Use Windows PowerShell to capture console application data.
How can I parse the output from a console application by using Windows PowerShell?
Run the application as normal, but assign it to a Windows PowerShell object—for example, DriverQuery.exe will display output to the screen:
$INFO=(
Summary: Use Windows PowerShell to build scripts to automate DiskPart.
Hey, Scripting Guy! Can we build a DISKPART script to automatically format USB drives as bootable?
—SH
Hello SH,
Honorary Scripting Guy, Sean Kearney, here. I’m filling in for our good friend, Ed Wilson. It’s Friday and Ed has had a long week (
Summary: Use Windows PowerShell to list physical drives.
How can I use Windows PowerShell to get a list of physical drives?
Use Get-WMIObject, query win32_logicaldisk, and filter with the DriveType property:
GET-WMIOBJECT –query “SELECT * from win32_logicaldisk where DriveType = ‘3’”
To check the drive