Chat with us, powered by LiveChat

Blog

Back

Make Rick Astley Dance: Three random things you can do with PowerShell

9 Nov 2017 by Emma Robinson

Register for our upcoming webinar: Office 365 Scripting Workshop – Tues 28th Nov 12PM EST/ 5PM GMT

PowerShell is an extremely useful tool. It’s a task-based, command-line shell, that enables developers, IT Admins, and anyone really, to script and run reports, collect information and do all kinds of things. It’s powerful, very flexible and widely used in the IT community – but why use it to run reports, or help with regular admin tasks when you could be using it for this?

  1. $voice: Speak PowerShell!
    Forget Cortana or Siri, make PowerShell your companion. You’ll need to use the cmdlet ‘Add-Type’, then instantiate the SpeechSynthesizer object which will turn your text into audio. You can even modify the speed of the speech, or add in a set of phrases to be pulled at random. There are some cool examples of this here, and here.
  2. Start-Prank: Pranking people using PowerShell is apparently a thing.
    Why not save this one for April 1st? We found this post with a script created to confuse a user by showing a message that make the user think their computer is about to reboot. Funny? Cruel? Satisfying procrastination? Give it a try and decide for yourself.
  3. Watch Rick Astley sing ‘Never Gonna Give You Up’ – yep, really.
    Another gem from the Internet. The creator of this one has written a whole book on PowerShell, and if this trick is anything to go by – he knows his stuff. You can find the full instructions here, but all you need to do is run the following cmdlet. It’s very entertaining: iex (New-Object Net.WebClient).DownloadString(“http://bit.ly/e0Mw9w”)

While these are all very silly examples of what you can do with the tool (and I can take no credit for any of them – thanks Internet), they do demonstrate just how powerful PowerShell is.
If you use the tool for more serious endeavours, like reporting, or IT management, we’re hosting a Scripting Workshop this month, so make sure you don’t miss it.
Hosted by Alan Byrne and Vasil Michev, two Microsoft MVPs with a variety of PowerShell experience between them, this workshop will be split into two sections. The first half will explore how to use PowerShell, and take a look at some popular scripts, as well as tips for using filters, and tricks to ensure your scripts run well against a large number of users. We will also talk about how the Graph can be used to pull information out of your environment too.
The second half will be more interactive, we would like to hear your feedback on using PowerShell, as well as the reports, scripts and actions you would like to be able to use. We will also try to answer any questions you have, as well as help with any issues you might be experiencing with the tool.
The workshop will take place on the 28th November at 12PM EST/ 5PM GMT. Join us by registering here.
Can’t make the session? Don’t worry – just register your details, and we’ll send you a recording of the webinar once it’s taken place, as well as a copy of a brand-new PowerShell Script Handbook we’re launching alongside this webinar!