Powershell

Testing for Valid Date

If you need to test whether some information resembles a valid date format, here is a test function: function Test-Date { param (...

read more

Pinging Computers

There are multiple ways how you can ping computers. Here is a simple approach that uses the traditional ping.exe but can be easily integrated into...

read more

Launching Any Excel Version

Microsoft Excel is an example of a program that is not easy to launch directly: the path to Excel may be different, depending on Office version and...

read more

Unblocking Download Files

Any file you download from the Internet or receive via email get marked by Windows as potentially unsafe. If the file contains executables or...

read more

Eliminating Empty Results

To exclude results that have empty properties, you can easily use Where-Object. For example, when you run Get-Hotfix, and you only want to see...

read more
1 77 78 79 80 81 130