With the upcoming release of the next Star Wars movie, I thought I would revisit my PowerShell script that generates your Star Wars universe name. Sure, it is contrived and completely impractical, but I’m betting you are curious nonetheless. My previous version as a simple script with hard coded values which meant you had to…
Tag: strings
Friday Fun PowerShell Crypto
I’m a big fan of codes, ciphers and secret messages. I obviously am a big PowerShell fan as well. So why not mash these things together? Today’s Friday Fun is a PowerShell module I call PSCode. The module contains a few functions for encoding and decoding text. Now, before you get too excited, these won’t…
Friday Fun Randomness Abounds
I find it a little ironic that although I like efficiency, structure and order I’m fascinated with randomness. In today’s Friday Fun I want to explore a few ways you might incorporate randomness into your PowerShell scripting. Perhaps you need a random number between 100 and 500. Or a string for file name. There are…
PowerShell ISE Case Closed
When writing a PowerShell script or function, things like indentations, white space and case make a big difference in how easy it is to read and understand your code. Sometimes it can be helpful to have a word or sentence in all upper case so that it stands out. Here is a simple set of…
Friday Fun Playing with Strings
While I was busy working, it turned into Friday which means time for a little PowerShell fun. I can’t say you’ll find any deep, meaningful, production use from today’s post, but you might pick up a few techniques, which is really the point. Today we’re going to have some fun with strings and arrays.