This PowerShell script hibernates the local computer immediately.
PS> ./hibernate.ps1It's 5:04 PM, going to sleep now... 😴💤Author: Markus Fleschutz | License: CC0
This PowerShell script is a sample script writing "Hello World" to the console.
PS> ./hello-world.ps1Hello WorldAuthor: Markus Fleschutz | License: CC0
This PowerShell script fetches remote updates into a local Git repository (including submodules).
path Specifies the file path to the local Git repository (default is working directory).
PS> ./fetch-repo.ps1⏳ (1/3) Searching for Git executable... git version 2.41.0.windows.3⏳ (2/3) Checking local repository... C:\Repos\rust⏳ (3/3) Fetching updates (including submodules)...✅ Updates fetched into 📂rust repo in 2s.Author: Markus Fleschutz | License: CC0
This PowerShell script enables IPv6 on all network interfaces of the local computer.
PS> ./enable-ipv6.ps1✔ IPv6 is enabled now.Author: Markus Fleschutz | License: CC0
This PowerShell script enables the writing of crash dumps.
PS> ./enable-crash-dumps.ps1Author: Markus Fleschutz | License: CC0
This PowerShell script disables IPv6 on all network interfaces of the local computer (requires administrator rights).
PS> ./disable-ipv6.ps1✔ IPv6 is disabled now.Author: Markus Fleschutz | License: CC0
This PowerShell script counts the number of lines in text files (.txt/.md/.c/.h/.cpp/.hpp/.java/.py/.ps1/.bat) within a directory tree.
pathToDirTree Specifies the path to the directory tree.
PS> ./count-lines.ps1 C:\Repos\cmake✅ Found 639921 lines in 11411 text files within 📂cmake in 34 sec.Author: Markus Fleschutz | License: CC0
This PowerShell script counts the number of characters in the given string.
GivenString Specifies the given string.
PS> ./count-characters.ps1 "Hello World"✅ 11 characters counted in 'Hello World'.Author: Markus Fleschutz | License: CC0
This PowerShell script copies image files from to sorted by year and month.
sourceDir Specifies the path to the source folder
targetDir Specifies the path to the target folder
PS> ./copy-photos-sorted.ps1 D:\iPhone\DCIM C:\MyPhotos⏳ Copying IMG_20240903_134445.jpg to C:\MyPhotos\2024\09 SEP\...✅ Copied 1 photo to 📂C:\MyPhotos in 13s (0 skipped).Author: Markus Fleschutz | License: CC0
This PowerShell script converts text to a .WAV audio file.
text Specifies the text to use
WavFile Specifies the path to the resulting WAV file
PS> ./convert-txt2wav.ps1 "Hello World" spoken.wavAuthor: Markus Fleschutz | License: CC0