Showing tag results for PowerTip

Aug 12, 2012
Post comments count0
Post likes count0

PowerTip: Define PowerShell in Thirty Words or Less

mredwilson
mredwilson

 Summary: Microsoft Scripting Guy, Ed Wilson, offers a quick thirty-word description of Windows PowerShell, and he proves it.   What is Windows PowerShell in thirty words or less?  Windows PowerShell is the next generation cmd prompt and scripting language from Microsoft. It can be a replacement for vbscript and for the cmd prom...

Scripting Guy!Windows PowerShellPowerTip
Aug 11, 2012
Post comments count0
Post likes count0

PowerTip: Displaying Only the Current Year in PowerShell

Doctor Scripto
Doctor Scripto

Summary: Learn how to display only the current year. How can I use Windows PowerShell to display only the current year?

Scripting Guy!Windows PowerShellPowerTip
Aug 10, 2012
Post comments count0
Post likes count0

PowerTip: Specifying PowerShell Error Actions

Doctor Scripto
Doctor Scripto

Summary: Specify Windows PowerShell error actions. Question: Which command when typed at the beginning of a script will cause Windows PowerShell to ignore errors and continue executing the code? Answer: $erroractionpreference=SilentlyContinue Question: How can I ignore errors for a single command instead of for the entire script? Answer: Use t...

Scripting Guy!Windows PowerShellPowerTip
Aug 9, 2012
Post comments count0
Post likes count0

PowerTip: Using Parameters with the Get-WmiObject PowerShell Cmdlet

Doctor Scripto
Doctor Scripto

Summary: Use parameters with the Get-WmiObject cmdlet Question: Which parameter of the Get-WMIObject cmdlet takes the place of a WQL where clause? Answer: The filter parameter takes the place of the WQL where clause as shown here: Get-wmiobject win32_logicaldisk –filter “drivetype  =  3” Que...

Scripting Guy!Windows PowerShellPowerTip
Aug 8, 2012
Post comments count0
Post likes count0

PowerTip: Creating a Custom Number Display

Doctor Scripto
Doctor Scripto

Summary: Learn how to create a custom number display.Question: How do I display a “calculated value” (megabytes instead of bytes) from a WMI query when piping data into a Format-Table cmdlet?Answer: Create a hash table where you want to display the data, and perform the calculation inside curly brackets, and then assign the re...

Scripting Guy!Windows PowerShellPowerTip