Showing results for August 2012 - Page 3 of 13 - Scripting Blog [archived]

Aug 26, 2012
0
0

PowerTip: Check to See if a Command Completes Properly

Doctor Scripto
Doctor Scripto

Summary:  Learn how to check for proper completion of a Windows PowerShell command.  How can I tell if a Windows PowerShell command completes successfully?                   a. Query the $error automatic variable. If $error[0] reports no in...

Scripting Guy!Windows PowerShellPowerTip
Aug 26, 2012
0
0

Weekend Scripter: Automate Formatting Portable USB Drives with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to automate formatting and copying data to USB drives. Microsoft Scripting Guy, Ed Wilson, is here. Today we leave the mystery writers conference in Nashville, Tennessee and head to northern Kentucky. I will be teaching a Windows PowerShell workshop to a group of Micro...

Scripting Guy!Windows PowerShellWeekend Scripter
Aug 25, 2012
0
0

PowerTip: Use PowerShell to Create Color Output from Commands

Doctor Scripto
Doctor Scripto

Summary: Learn to use the Write-Host PowerShell cmdlet to create color output from commands.  Someone told me the Write-Host cmdlet could create color output. Can you give me some samples of acceptable syntax? a. Write-Host -ForegroundColor 12 "hi" b. Write-Host -ForegroundColor 12 "hi" -BackgroundColor white c. Write-Host...

Scripting Guy!Windows PowerShellPowerTip
Aug 25, 2012
0
0

Weekend Scripter: Use PowerShell and BITS to Simplify Downloading Large Files

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using the Windows PowerShell BITS module to download large files. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about my job—OK, so there are many cool things about my job—but one of the things that I just geek out on, is access to the daily builds of Windows...

Scripting Guy!Windows PowerShellWeekend Scripter
Aug 24, 2012
0
0

PowerTip: Create an ASCII File from Inside PowerShell

Doctor Scripto
Doctor Scripto

Summary: Learn how to create an ASCII file from inside Windows PowerShell.  I want to create an ASCII text file to hold the results of the Get-Process cmdlet. How can this be done?                 a. Pipe the results to the Out-File cmdlet and use the -encoding parameter to ...

Scripting Guy!Windows PowerShellPowerTip