Showing results for January 2016 - Scripting Blog [archived]

Jan 31, 2016
0
0

PowerTip: Use PowerShell to view properties and their values for a .NET Framework class

Doctor Scripto
Doctor Scripto

Summary: Learn how to view properties and the associated values of those properties of .NET Framework classes with Windows PowerShell.  How can I use Windows PowerShell to view the properties and their values from a .NET Framework class,            such as System.String?  Use the Type accelerator [string], ...

Scripting Guy!Windows PowerShellPowerTip
Jan 31, 2016
0
0

PowerTip: Find properties of .NET Framework class with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to display properties of a .NET Framework class.  How can I use Windows PowerShell to easily display properties of a .NET Framework class?  Pipe the type accelerator to the Get-Member cmdlet and specify the MemberType property,            for example: [string] | gm...

Scripting Guy!Windows PowerShellPowerTip
Jan 30, 2016
0
0

PowerTip: Find information about .NET Framework method with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to find information about a .NET framework method.  How can I use Windows PowerShell to find basic information about a particular .NET Framework method?  Use the GetMethod method from the class, for example:  [math].GetMethod("Tan") Note  The method name is case sensitive ...

Scripting Guy!Windows PowerShellPowerTip
Jan 30, 2016
0
0

PowerTip: Use PowerShell to find all methods from .NET Framework class

Doctor Scripto
Doctor Scripto

Summary: Learn how to find all methods from a .NET Framework class by using Windows PowerShell.  How can I use Windows PowerShell to show both static and dynamic methods for a .NET Framework class?  Use the GetMethods method from the class. This example uses the System.Math class to return the            ...

Jan 29, 2016
0
0

PowerTip: Return remainder after dividing two numbers

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to return the remainder after dividing two numbers.  How can use Windows PowerShell to divide two numbers and only return the remainder (called a modulo operation)?  In Windows PowerShell, the modulo operator is the % sign. Here are a few examples of how to use it: PS C:\> 3 % 2 ...

Scripting Guy!Windows PowerShellPowerTip