powertips

Export-Csv with Append

Finally, in PowerShell v3 the cmdlet Export-Csv got a new parameter called -Append! Now you can easily append information to an existing CSV file....

read more

New Alias in PowerShell v3

Since Select-String is such a useful cmdlet, the PowerShell decided to add an alias to it in PowerShell v3. The alias is called sls. Try this:...

read more

Out-GridView Grows Up

In PowerShell v2, Out-GridView was a useful way of displaying information in a separate window but its functionality was limited because you could...

read more

Getting Relative Dates

Here's a quick and fast way of generating relative dates in any format: (Get-Date).AddDays(-1).ToString('yyyy-MM-dd') This would return...

read more

Identifying PowerShell Host

If your script requires a real console, or if your script requires PowerShell ISE features, it may be a wise thing to check which host is actually...

read more
1 80 81 82 83 84 122