This PowerShell script synchronizes (mirrors) the content of 2 directory trees by using Robocopy. Typical use cases are backups: at first everything is copied (full backup), afterward only changes are copied (incremental backup). IMPORTANT NOTE: Make sure the target path is correct because the content gets replaced (DATA LOSS)!
sourcePath Specifies the path to the source dir (to be entered by default)
targetPath Specifies the path to the target dir (to be entered by default)
PS> ./sync-dir.ps1 C:\Photos D:\Backups\Photos⏳ Please wait while syncing content from 📂C:\Photos to 📂D:\Backups\Photos ...✅ Synced 📂C:\Photos to 📂D:\Backups\Photos in 32s.Author: Markus Fleschutz | License: CC0
This PowerShell script switches automatically from tab to tab every seconds (by pressing Ctrl + PageDown).
timeInterval Specifies the time interval in seconds (10sec per default)
PS> ./switch-tabs.ps1⏳ Switching from tab to tab automatically every 10 seconds...(click the Web browser to activate it - press <Ctrl C> here to stop it)Author: Markus Fleschutz / License: CC0
This PowerShell script switches a Shelly1 device in the local network.
host Specifies either the hostname or IP address of the Shelly1 device
turnMode Specifies either 'on', 'off', or 'toggle'
timer Specifies the timer in seconds (0 = infinite)
PS> ./switch-shelly1 192.168.100.100 toggle 10Author: Markus Fleschutz | License: CC0
This PowerShell script switches to the given branch in a Git repository and also updates the submodules.
branchName Specifies the Git branch name to switch to
pathToRepo Specifies the file path to the local Git repository
PS> ./switch-branch main⏳ (1/6) Searching for Git executable... git version 2.43.0.windows.1⏳ (2/6) Checking local repository... C:\Repos\rust⏳ (3/6) Fetching remote updates...⏳ (4/6) Switching to 'main' branch...⏳ (5/6) Pulling remote updates...⏳ (6/6) Updating submodules...✅ Switched repo 📂rust to 'main' branch in 22s.Author: Markus Fleschutz | License: CC0
This PowerShell script suspends the local computer immediately.
PS> ./suspendAuthor: Markus Fleschutz | License: CC0
This PowerShell script speaks the given text with a Ukrainian text-to-speech (TTS) voice.
text Specifies the Ukranian text to speak
PS> ./speak-ukrainian.ps1 "Привіт"Author: Markus Fleschutz | License: CC0
This PowerShell script speaks the given text with a Turkish text-to-speech (TTS) voice.
text Specifies the Turkish text to speak
PS> ./speak-turkish.ps1 MerhabaAuthor: Markus Fleschutz | License: CC0
This PowerShell script speaks the given text with a Thai text-to-speech (TTS) voice.
text Specifies the Thai text to speak
PS> ./speak-thai.ps1 "สวัสดี"Author: Markus Fleschutz | License: CC0
This PowerShell script speaks the given text by the default text-to-speech (TTS) voice.
text Specifies the text to read
PS> ./speak-text.ps1 HiAuthor: Markus Fleschutz | License: CC0
This PowerShell script performs a text-to-speech (TTS) test.
PS> ./speak-test.ps1📣 Let's begin with the default speed rate of 0 at the default volume of 100%....Author: Markus Fleschutz | License: CC0