Showing results for February 2013 - Page 3 of 11 - Scripting Blog [archived]

Feb 23, 2013
Post comments count0
Post likes count0

PowerTip: Easily Send Output to Both the PowerShell Console and a Variable

Doctor Scripto
Doctor Scripto

Summary: Learn how to send output to both the Windows PowerShell console and to a variable.  How can I easily send Windows PowerShell output to both the console and to a variable?  Use the Tee-Object cmdlet and specify a variable name, as shown here. PS C:\> gps | select name -Last 1 | Tee-Object -Variable a Name ---- Ze...

Scripting Guy!Windows PowerShellPowerTip
Feb 23, 2013
Post comments count0
Post likes count0

Weekend Scripter: Creating a Sample Log File by Using PowerShell

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to create sample textual log output by using Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Well, it is the weekend. It seems like it has been a rather long week, but I guess in reality it was no longer than any other week. I did get a cool book that finally showed up by the p...

Scripting Guy!Windows PowerShellscripting techniques
Feb 22, 2013
Post comments count0
Post likes count0

PowerTip: Find Dynamic Parameters for Certain PowerShell Providers

Doctor Scripto
Doctor Scripto

Summary: Learn how to find out about dynamic parameters for certain Windows PowerShell providers.  How can I easily find out about parameters that are added to cmdlets when they are used with a specific Windows PowerShell provider?  Use the Get-Help cmdlet and look for the Help topic related to the provider. Near the bottom...

Scripting Guy!Windows PowerShellPowerTip
Feb 22, 2013
Post comments count0
Post likes count0

Use PowerShell to Find Installed Video Codecs on Windows 8

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to find installed video codecs on Windows 8.  Hey, Scripting Guy! Dude, I am in trouble. Big time! Last week, I installed Windows 8 on the laptops used by all our department heads and front-line supervisors. I thought the responsiveness and the apps wou...

Scripting Guy!Windows PowerShellscripting techniques
Feb 21, 2013
Post comments count0
Post likes count0

PowerTip: Count the Number of Commands Exposed by Imported Modules

Doctor Scripto
Doctor Scripto

Summary: Learn how to count the number of commands exposed by imported Windows PowerShell modules.  I want to know how many commands are available through the modules I have imported into my current Windows PowerShell session. How can I do this?  Use the Get-Module cmdlet and pipe the results to the Foreach-Object ...

Scripting Guy!Windows PowerShellPowerTip