Just Power Down
  • Home
Sign in Subscribe

Powershell

A collection of 4 posts
Powershell

Lazy Random Password Generation in PowerShell

So, good passwords are pretty fashionable these days - with an eye towards the ever-relevant XKCD. [https://xkcd.com/936/] Sometimes you just want a short method to generate a random string, with some control over which characters are used. Here's a method I use when I need
02 Jan 2018 1 min read
Powershell

Bottles of Beer

function Write-BottlesOfBeer { param( [int]$bottles = 99 ) $b='bottles of beer' $w='on the wall' $n='no more' $bottles..1 | %{ "$_ $b $w, $_ $b.`r".Replace('bottles',"bottle$(if($_ -gt 1){'s'})") "Take one down and pass
21 Feb 2017 1 min read
Powershell

Active Directory - Storing Bitlocker Recovery Info

A recent quick project was to enable storage of Bitlocker recovery data within Active Directory, instead of our moderately secure encrypted drive of text-files. This is actually a really easy process (assuming you only have Windows 7 / 2008R2 and up on the domain), only needing to make a few adjustments
09 Jun 2014 1 min read
Powershell

PoSH Fun

I was browsing r/Powershell [http://powershell.reddit.com] (as you do), and noticed a chap complaining about the test at the end of a course, where he was asked to > Create a directory named "newdir" in every empty directory whose name is longer than 8 characters
13 May 2014 1 min read
Page 1 of 1
Just Power Down © 2025
Powered by Ghost