powertips

Working With Generics

Generic types can use placeholders for actual types, and you may be wondering why that can be exciting. There are a number of data types, for...

read more

Show or Hide Windows

PowerShell can call internal Windows API functions, and in this example, we’d like to show how you can change the show state of an application...

read more

Checking Host

In the past, Microsoft shipped two PowerShell hosts: the basic PowerShell console, and the more sophisticated PowerShell ISE. Some users used code...

read more

Checking Execution Policy

Execution policy determines what kind of scripts PowerShell will execute. You need to set execution policy to something other than Undefined,...

read more

Determining Person Age

How do you calculate the age of a person, based on birthday? You can subtract the current time delivered by Get-Date from the birthday, but the...

read more
1 38 39 40 41 42 122