Skip to content
Menu Home
  • Twitter
  • LinkedIn
  • Github
  • Google+
Close

Communary

  • Home
  • PowerShell
    • Custom Functions
    • Quick tips
  • About

Top Posts & Pages

  • Grep, the PowerShell way
  • How to add a progress bar to your PowerShell script
  • Quick tip: Dynamically create and use variables
  • The quest for speed - Finding files
  • The Luhn Algorithm
  • Creating demo users in Active Directory
  • Calculate CRC32 in PowerShell
  • About
  • AWS EC2: Monitoring Memory in CloudWatch
  • Quick tip: ConvertTo-Json and line breaks in strings

Blogs I Follow

  • IT Pro PowerShell experience
  • A Power Knight's journey
  • Xenoprimate's Dev Blog
  • Mike F Robbins
  • pshirwin
  • RY Nami Test
  • Tech, Automation, Life
  • Jaap Brasser's Blog
  • psjjw.wordpress.com/
  • PowerShellize
  • >_
  • Learn Powershell | Achieve More
  • ConfigmgrDistrict
  • Rohn's Blog
  • Tech thoughts
  • Salisbury and Stonehenge
  • powershelldistrict
  • Dave Wyatt's Blog
  • Keith Hill's Blog
  • Poshoholic

Archives

  • May 2018 (1)
  • March 2018 (2)
  • February 2018 (3)
  • August 2017 (2)
  • May 2017 (1)
  • April 2017 (3)
  • February 2017 (1)
  • January 2017 (3)
  • October 2016 (2)
  • September 2016 (4)
  • August 2016 (1)
  • July 2016 (1)
  • May 2016 (2)
  • April 2016 (4)
  • February 2016 (8)
  • January 2016 (6)
  • December 2015 (2)
  • November 2015 (4)
  • October 2015 (2)
  • September 2015 (3)
  • May 2015 (8)
  • April 2015 (10)
  • February 2015 (5)
  • January 2015 (7)
  • December 2014 (12)
  • November 2014 (14)
  • October 2014 (21)
  • October 2012 (9)

Tag: Custom Function

Test-PasswordStrength

Posted on September 24, 2015September 24, 2015 by Øyvind Kallstad in PowerShell

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.

(more…)

New-Password

Posted on September 19, 2015September 23, 2015 by Øyvind Kallstad in PowerShell

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

Posted on September 18, 2015September 18, 2015 by Øyvind Kallstad in PowerShell

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.

(more…)

Convert-Temperature

Posted on May 23, 2015May 23, 2015 by Øyvind Kallstad in PowerShell

This function lets you convert between different units of temperature. (more…)

Getting the data types of elements in an array

Posted on May 21, 2015 by Øyvind Kallstad in PowerShell

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

Posted on May 20, 2015 by Øyvind Kallstad in PowerShell

Convert an integer into an array of bytes of its individual digits. (more…)

Adding SizeOnDisk to FileInfo

Posted on May 18, 2015May 18, 2015 by Øyvind Kallstad in PowerShell

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

Posted on May 16, 2015May 16, 2015 by Øyvind Kallstad in PowerShell

[UPDATE 16.05.2015] Made the code more robust and simplified.

This is the function I mention in this post, which wraps the DOS dir command.  (more…)

Convert TimeZone to DateTime

Posted on May 3, 2015May 3, 2015 by Øyvind Kallstad in PowerShell

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

Posted on April 29, 2015 by Øyvind Kallstad in PowerShell

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…)

Posts navigation

Older
Newer
Blog at WordPress.com.
IT Pro PowerShell experience

Share what I know or discovered when working with Windows PowerShell.

A Power Knight's journey

Xenoprimate's Dev Blog

C#, Game Design, Performant Programming, .NET, Vulkan, Multithreading

Mike F Robbins

pshirwin

Spreading the gospel of powershell scripting

RY Nami Test

Tech, Automation, Life

Flynn Bundy

Jaap Brasser's Blog

psjjw.wordpress.com/

psjjw - een opbergkast meer niet

PowerShellize

Automate, Accelerate, Accurate

>_

de parvis grandis acervus erit

Learn Powershell | Achieve More

What is this Powershell of which you speak?

ConfigmgrDistrict

Rohn's Blog

Just Another PowerShell Blog

Tech thoughts

up in the trees

Salisbury and Stonehenge

powershelldistrict

My WordPress Blog

Dave Wyatt's Blog

Keith Hill's Blog

Just another WordPress.com site

Poshoholic

Totally addicted to PowerShell

  • Subscribe Subscribed
    • Communary
    • Join 27 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Communary
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...