#PSTip CompareTo() method for comparing strings!
There are certainly many methods to compare strings in PowerShell. Today, I will show you one of the methods that I recently came across — a less known method, maybe.
Read MoreThere are certainly many methods to compare strings in PowerShell. Today, I will show you one of the methods that I recently came across — a less known method, maybe.
Read MoreConsider the following function: function test { $myNumbersCollection = 1..5 if($myNfunction test { $myNumbersCollection = 1..5umbersColection -contains 3) { "collection contains 3" } else { "collection doesn't contain 3" } } By …
Read MoreNote: This tip requires PowerShell 2.0 and above Generating a password usually consists of creating separate collections containing uppercase letters, lowercase letters, numbers and non-alphanumeric characters (@,%,$,^,&,*, etc…) and then …
Read MoreNote: This tip requires PowerShell 2.0 and above If you only like to know if a computer can be contacted across a network, you can use the Test-Connection cmdlet with the –Quiet parameter.
Read MoreWith the PowerStatus class we can quickly get the information status of the current system. The PowerStatus class represents information about the current AC line power status, battery charging status, and battery charge status.
Read MoreSometimes you need to wait for an executable to finish its job. The typical case is a Setup.exe, but this behavior is also ideal candidate for cleaning up temporary files after an application has been closed.
Read More