Windows PowerShell Features from Microsoft

Windows PowerShell Features from Microsoft This topic lists the Windows PowerShell features that are offered by Microsoft and provides links to descriptions of the features and to information about how to install them. These features enable you to use Windows PowerShell to administer, maintain, configure, and develop new features for Windows. Technology Description Links Windows PowerShell Core Describes the cmdlets, functions, and providers that are installed with Windows PowerShell. Includes Getting Started, User Guide, and About topics on features and the Windows PowerShell language. http://go.microsoft.com/fwlink/?linkid=108518 Windows PowerShell Cmdlets Gallery in Bing Visual Search A visual display of Windows PowerShell core […]

Read more

PS 1.0 Comparison and Containment Operators

Windows PowerShell Comparison Operators These operators work both with string and number based values assuming that you are comparing like with like (it is not meaningful, for example, to compare a string with numerical value). In terms of working with strings and characters, both case-sensitive and insensitive operators are supported.   Operator Description -eq Equal to (case insensitive) -ieq Equal to (case insensitive) -ceq Equal to (case sensitive) -ne Not equal to (case insensitive) -ine Not equal to (case insensitive) -cne Not equal to (case sensitive) -gt Greater than (case insensitive) -igt Greater than (case insensitive) -cgt Greater than (case […]

Read more

PS: Three Things You Might Not Know About Windows PowerShell Functions

You can set default values for function parameters As a general rule, any time you call a function you pass it the appropriate number of parameters. For example, suppose we have the following function, a function that multiplies two numbers: Copy function test ($x, $y) { $x * $y } To use this function, you typically provide values for the variables $x and $y at the time you call the function: Copy test 33 22 That’s fine; that’s exactly what you should do when you call a function. However, consider the following function, one that reports back the day of […]

Read more