Category Archives: Uncategorized

Powershell Tip #137: Convert number to binary

Tip: You can convert a number (64) to binary (1000000).

You can see the overload defintions of the ToString method from the Convert class:

Powershell Tip #135: Read file as a byte array

Tip: You can read the content of a file as a byte array.

Powershell Tip #133: Set a title to Out-GridView window

Tip: You can set a title when using the Out-GridView cmdlet. It can be useful in cases you have multiples windows open to compare them.

Powershell Tip #132: Combine two paths using Join-Path cmdlet

Tip: You can combine two paths using the Join-Path cmdlet.

====== Documentation Join-Path

Powershell Tip #131: Add certificates to Personal, Root and Intermediate stores

Tip: You can add certificates to Personal, Root and Intermediate stores (LocalMachine) Personal

====== Root

====== Intermediate

====== MSDN StoreLocation Enumeration StoreName Enumeration

Powershell Tip #130: Convert ticks <> datetime

Tip: You can convert tickets to datetime and vice versa. Convert ticks to datetime

Convert datetime to ticks

Powershell Tip #129: Get midnight time

Tip: You can get the midnight time :