With the NFL season upon us, Fantasy Football owners are starting to research and plan out which players they will draft. One of the hot topics is always the order of the draft, which if left to the commissioners, can be create a feeling of disapproval. There is no better tool to use to create a random and totally objective draft order than a computer. This will ensure that no player can complain that there was collusion in order to keep them at the back of the draft.

With this said, I emailed the commissioner of my league to let him know I will be doing the order in PowerShell, this way when I wind up inevitably missing the playoffs, I can only blame myself and PowerShell. I created a function this morning that will generate the order using the players in an array and Sort-Object {Get-Random} called New-FantasyDraftOrder.
To use the function, we just add the players in the -Players parameter and the order is created.
As you can see, I got the 7th pick in my draft. Even I, the creator of this draft cannot “fix” the outcome.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Technical

Restart multiple computers with the PowerShell PCSVDevice module

To restart multiple computers with PowerShell and without relying on functionality of the remote operating system, you can use the PCSVDevice module. The module contains several useful cmdlets for out-of-band management and supports the IPMI Read more…

Technical

Remotely migrate user data with USMT and PowerShell

USMT has been a staple for system administrators for years and has greatly reduced the time to migrate data between computers. USMT has the ability to migrate user files, OS settings, and application settings. It Read more…

Technical

Deploy VMware VMs with PowerCLI and MDT

If you are managing Windows servers, chances are you have a mix of physical and virtual servers in your data center. While VMware provides a method to create VMs from templates to simplify server deployments, Read more…