[I updated this article to reflect minor changes in the code and the release of PowerShell 7. This article was originally published 28 October, 2019].
ManageEngine ADManager Plus - Download Free Trial
Exclusive offer on ADManager Plus for US and UK regions. Claim now!
Last year I shared some PowerShell code on Twitter about this time of year. I have a short script that uses Windows Presentation Foundation (WPF) to create a spooky graphical prompt that allows you to ask questions of a Magic 8 Ball (this name may be trademarked or otherwise protected). For those of you who may not be familiar with it, this is a toy shaped like a giant 8 ball from a billiards game. You ask a question aloud, shake the ball, and look at the bottom to get an answer. I did the same thing with PowerShell.
Nothing more than a little harmless fun. Although the code demonstrates how easy it is to put together a simple WPF form. The script will also run in PowerShell Core on a Windows platform
You can find the code on my GitHub account as a gist.
Trick or Treat!
1 thought on “The PowerShell Magic 8 Ball”
Comments are closed.