This PowerShell script measures the speed of the BubbleSort algorithm. BubbleSort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order. The pass through the list is repeated until the list is sorted. The algorithm, which is a comparison sort, is named for the way smaller or larger elements "bubble" to the top of the list.
numIntegers Specifies the number of integers to sort
PS> ./measure-BubbleSort.ps1🧭 0.729 sec to sort 1000 integers by BubbleSortAuthor: Markus Fleschutz | License: CC0
This PowerShell script logs off the current Windows user.
PS> ./log-off.ps1Author: Markus Fleschutz | License: CC0
This PowerShell script locks the local computer desktop immediately.
PS> ./lock-desktop.ps1Author: Markus Fleschutz | License: CC0
This PowerShell script prints the geographic location of the given IP address. .PARAMTER IPaddress Specifies the IP address
PS> ./locate-ipaddress.ps1 177.144.67.98Author: Markus Fleschutz | License: CC0
This PowerShell script lists installed/available Linux distributions for Windows Subsystem for Linux (WSL).
PS> ./list-wsl-distros.ps1NAME STATE VERSION* Ubuntu-24.04 Stopped 2...Author: Markus Fleschutz | License: CC0
This PowerShell script lists the path to current working directory (but not the content itself).
PS> ./list-workdir.ps1📂C:\Users\MarkusAuthor: Markus Fleschutz | License: CC0
This PowerShell script queries all main window titles and lists them as a table.
PS> ./list-window-titles.ps1Id ProcessName MainWindowTitle-- ----------- ---------------11556 Spotify Spotify Free...Author: Markus Fleschutz | License: CC0
This PowerShell script lists the WIFI networks.
PS> ./list-wifi.ps1Author: Markus Fleschutz | License: CC0
This PowerShell script queries the installed text-to-speech (TTS) voices and prints them to the console.
PS> ./list-voices.ps1Name Culture Gender Age---- ------- ------ ---Microsoft David Desktop en-US Male Adult...Author: Markus Fleschutz | License: CC0
This PowerShell script lists the user groups of the local computer.
PS> ./list-user-groups.ps1Name Description---- -----------Administrators Administrators have complete and unrestricted access to the computer/domain...Author: Markus Fleschutz | License: CC0