Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

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

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

PowerTip: Find information about .NET Framework method with PowerShell

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

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

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

PowerTip: Return remainder after dividing two numbers

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