Showing tag results for PowerTip

Feb 23, 2013
Post comments count0
Post likes count0

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

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 22, 2013
Post comments count0
Post likes count0

PowerTip: Find Dynamic Parameters for Certain PowerShell Providers

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 21, 2013
Post comments count0
Post likes count0

PowerTip: Count the Number of Commands Exposed by Imported Modules

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
Feb 20, 2013
Post comments count0
Post likes count0

PowerTip: Turn Off PowerShell Module Autoload

Doctor Scripto

Summary: Learn how to turn off Windows PowerShell module auto-loading.  I want to disable the Windows PowerShell 3.0 module automatic loading of modules. How do I do this?  Set the value of the $PSModuleAutoloadingPreference automatic variable to none, as shown here. $PSModuleAutoloadingPreference = "none" Note&nb...

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

PowerTip: Change PowerShell to Display More Info by Default

Doctor Scripto

Summary: Change Windows PowerShell so that it will display more information by default.  I pipe information and select certain properties, but the information in my table is truncated. Using Autosize or Wrap does not help. How can I change Windows PowerShell so that it displays the information contained in the property?  You are runn...

Scripting Guy!Windows PowerShellPowerTip