Showing results for August 2013 - Scripting Blog [archived]

Aug 31, 2013
0
0

PowerTip: Use PowerShell to Parse Text Files

Doctor Scripto
Doctor Scripto

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: Select-St...

Scripting Guy!Windows PowerShellPowerTip
Aug 31, 2013
0
0

Weekend Scripter: Creating ACLs for Windows Azure Endpoints—Part 1 of 2

Doctor Scripto
Doctor Scripto

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 Networking ...

Scripting Guy!Windows PowerShellguest blogger
Aug 30, 2013
0
0

PowerTip: Capture Console Application Data with PowerShell

Doctor Scripto
Doctor Scripto

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=(Drive...

Windows PowerShellPowerTipguest blogger
Aug 30, 2013
0
0

Automating DiskPart with Windows PowerShell: Part 5

Doctor Scripto
Doctor Scripto

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 (and a...

Scripting Guy!scripting techniquesguest blogger
Aug 29, 2013
0
0

PowerTip: List Physical Drives with PowerShell

Doctor Scripto
Doctor Scripto

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 drives on ...

Windows PowerShellPowerTipguest blogger