In my last post I showed you a function to generate secure and complex passwords. This time I have written a small function you can use to test password strength similar to the strength bar you sometimes see in password fields on websites.
Tag: Custom Function
New-Password
There is an ocean of password generators out there, and even quite a few written in PowerShell, but there were some features I wanted in a password generator that made me create my own. (more…)
PowerShell Prime
Prime numbers will always have a special place in every mathematicians (or cryptographers) heart. The usefulness for the standard PowerShell user is questionable, but just for the fun of it I have created/translated a couple of functions for working with Primes.
Convert-Temperature
This function lets you convert between different units of temperature. (more…)
Getting the data types of elements in an array
Arrays in PowerShell are quite forgiving. They are easy to declare, and they can contain elements of different types if you want to. You can quite easily check to see if an object is an array or not, but have you ever needed to check the types of the elements inside the array itself? (more…)
ConvertTo-Digits
Convert an integer into an array of bytes of its individual digits. (more…)
Adding SizeOnDisk to FileInfo
The FileInfo object is great, with lots of useful information. But there is one piece of information I miss, and that is the SizeOnDisk information that we are used to from Windows Explorer. Well, let’s do something about that, shall we? (more…)
Invoke-DosDir
Convert TimeZone to DateTime
These two small functions can be used to convert a specific Time Zone into a DateTime object. The returned DateTime object represents the current time in the specified Time Zone. This can be useful if you need to know what time time is right now in a different Time Zone. (more…)
Out-File2: Improving Out-File with automatic file backup
Have you ever needed to write some file, but the need for making sure the file size didn’t get out of hand made you have to write a ton of extra code? This is a very typical scenario when writing log files for instance. Out-File2 got you covered! (more…)