List/Grid Tag Archives: PowerShell 2.0
#PSTip Quickly generate a password
Note: 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 randomizing…
#PSTip How to speed up the Test-Connection command
Note: 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…
#PSTip How to remove the first line from a text file
There are a lot of ways to remove the first line from a text file. I hope you will find a multiple assignment technique interesting. Here is what you need…
#PSTip Get old files based on LastWriteTime
Note: This tip requires PowerShell 2.0 and above There are many ways to get the age of a file. The most common way is to subtract the file’s LastWriteTime from…
#PSTip Find all PowerShell Profiles from $PROFILE
Note: This tip requires PowerShell 2.0 and above I have always wanted to see what all PowerShell profiles are defined and in-use on a system. Sometimes, this is very crucial…
#PSTip Displaying all possible combinations of a flagged enumeration
In the last tip, I showed you how to create an enumeration object on which we can do bitwise operations to derive combinational values. Now, in this tip, let us…
