From 6df37962583f7af47e015b6f82a62dd499541638 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sun, 4 Dec 2022 10:40:18 +0100 Subject: [PATCH] Update the manuals --- Docs/add-firewall-rules.md | 2 +- Docs/add-memo.md | 2 +- Docs/alert.md | 2 +- Docs/build-repo.md | 2 +- Docs/build-repos.md | 2 +- Docs/cd-autostart.md | 2 +- Docs/cd-desktop.md | 2 +- Docs/cd-docs.md | 2 +- Docs/cd-downloads.md | 2 +- Docs/cd-dropbox.md | 2 +- Docs/cd-fonts.md | 2 +- Docs/cd-home.md | 2 +- Docs/cd-music.md | 2 +- Docs/cd-onedrive.md | 2 +- Docs/cd-pics.md | 2 +- Docs/cd-recycle-bin.md | 2 +- Docs/cd-repos.md | 38 ++- Docs/cd-root.md | 2 +- Docs/cd-screenshots.md | 2 +- Docs/cd-scripts.md | 2 +- Docs/cd-ssh.md | 2 +- Docs/cd-temp.md | 2 +- Docs/cd-up.md | 2 +- Docs/cd-up2.md | 2 +- Docs/cd-up3.md | 2 +- Docs/cd-up4.md | 2 +- Docs/cd-users.md | 2 +- Docs/cd-videos.md | 2 +- Docs/cd-windows.md | 2 +- Docs/change-wallpaper.md | 2 +- Docs/check-apps.md | 57 ++++ Docs/check-battery.md | 67 ++++ Docs/check-bios.md | 9 +- Docs/check-cpu.md | 26 +- Docs/check-day.md | 2 +- Docs/check-dns-server.md | 2 +- Docs/check-dns.md | 4 +- Docs/check-drive-space.md | 2 +- Docs/check-drives.md | 8 +- Docs/check-dusk.md | 2 +- Docs/check-easter-sunday.md | 2 +- Docs/check-file-system.md | 2 +- Docs/check-gpu.md | 4 +- Docs/check-health.md | 19 +- Docs/check-independence-day.md | 2 +- Docs/check-ipv4-address.md | 2 +- Docs/check-ipv6-address.md | 2 +- Docs/check-iss-position.md | 2 +- Docs/check-mac-address.md | 2 +- Docs/check-midnight.md | 2 +- Docs/check-month.md | 2 +- Docs/check-moon-phase.md | 2 +- Docs/check-new-year.md | 2 +- Docs/check-noon.md | 2 +- Docs/check-os.md | 64 ++++ Docs/check-outlook.md | 2 +- Docs/check-pending-reboot.md | 6 +- Docs/check-ping.md | 4 +- Docs/check-powershell.md | 59 ++++ Docs/check-ram.md | 4 +- Docs/check-repo.md | 2 +- Docs/check-santa.md | 2 +- Docs/check-smart-devices.md | 2 +- Docs/check-subnet-mask.md | 2 +- Docs/check-swap-space.md | 12 +- Docs/check-symlinks.md | 2 +- Docs/check-time-zone.md | 2 +- Docs/check-uptime.md | 2 +- Docs/check-vpn.md | 6 +- Docs/check-weather.md | 2 +- Docs/check-week.md | 2 +- Docs/check-wind.md | 2 +- Docs/check-windows-system-files.md | 2 +- Docs/check-xml-file.md | 2 +- Docs/clean-repo.md | 6 +- Docs/clean-repos.md | 30 +- Docs/clear-dns-cache.md | 2 +- Docs/clear-recycle-bin.md | 2 +- Docs/clone-repos.md | 31 +- Docs/close-calculator.md | 2 +- Docs/close-chrome.md | 2 +- Docs/close-cortana.md | 2 +- Docs/close-edge.md | 2 +- Docs/close-file-explorer.md | 2 +- Docs/close-firefox.md | 2 +- Docs/close-git-extensions.md | 2 +- Docs/close-magnifier.md | 2 +- Docs/close-microsoft-paint.md | 2 +- Docs/close-microsoft-store.md | 2 +- Docs/close-netflix.md | 2 +- Docs/close-note-pad.md | 2 +- Docs/close-obs-studio.md | 2 +- Docs/close-one-calendar.md | 2 +- Docs/close-outlook.md | 2 +- Docs/close-paint-three-d.md | 2 +- Docs/close-program.md | 2 +- Docs/close-serenade.md | 2 +- Docs/close-snipping-tool.md | 2 +- Docs/close-spotify.md | 2 +- Docs/close-task-manager.md | 2 +- Docs/close-three-d-viewer.md | 2 +- Docs/close-thunderbird.md | 2 +- Docs/close-visual-studio.md | 2 +- Docs/close-vlc.md | 2 +- Docs/close-windows-terminal.md | 2 +- Docs/configure-git.md | 2 +- Docs/connect-vpn.md | 2 +- Docs/convert-csv2txt.md | 2 +- Docs/convert-image2ascii.md | 2 +- Docs/convert-mysql2csv.md | 2 +- Docs/convert-ps2bat.md | 2 +- Docs/convert-ps2md.md | 6 +- Docs/convert-sql2csv.md | 2 +- Docs/convert-txt2wav.md | 2 +- Docs/copy-photos-sorted.md | 2 +- Docs/count-lines-of-code.md | 2 +- Docs/decrypt-file.md | 2 +- Docs/disconnect-vpn.md | 2 +- Docs/display-time.md | 2 +- Docs/download-dir.md | 2 +- Docs/download-file.md | 2 +- Docs/edit.md | 2 +- Docs/enable-crash-dumps.md | 2 +- Docs/enable-god-mode.md | 2 +- Docs/encrypt-file.md | 2 +- Docs/enter-chat.md | 2 +- Docs/export-to-manuals.md | 17 +- Docs/fetch-repo.md | 20 +- Docs/fetch-repos.md | 11 +- Docs/get-md5.md | 2 +- Docs/get-sha1.md | 2 +- Docs/get-sha256.md | 2 +- Docs/hibernate.md | 2 +- Docs/inspect-exe.md | 2 +- Docs/install-audacity.md | 2 +- Docs/install-basic-apps.md | 2 +- Docs/install-chocolatey.md | 2 +- Docs/install-chrome-browser.md | 2 +- Docs/install-chrome.md | 2 +- Docs/install-crystal-disk-info.md | 2 +- Docs/install-crystal-disk-mark.md | 2 +- Docs/install-discord.md | 2 +- Docs/install-edge.md | 2 +- Docs/install-firefox.md | 2 +- Docs/install-git-extensions.md | 2 +- Docs/install-git-for-windows.md | 2 +- Docs/install-github-cli.md | 2 +- Docs/install-irfanview.md | 2 +- Docs/install-knot-resolver.md | 2 +- Docs/install-microsoft-teams.md | 2 +- Docs/install-netflix.md | 2 +- Docs/install-nine-zip.md | 2 +- Docs/install-obs-studio.md | 2 +- Docs/install-one-calendar.md | 2 +- Docs/install-opera-browser.md | 2 +- Docs/install-opera-gx.md | 2 +- Docs/install-paint-3d.md | 2 +- Docs/install-power-toys.md | 2 +- Docs/install-powershell.md | 2 +- Docs/install-rufus.md | 2 +- Docs/install-signal-cli.md | 2 +- Docs/install-skype.md | 2 +- Docs/install-spotify.md | 2 +- Docs/install-ssh-client.md | 2 +- Docs/install-ssh-server.md | 2 +- Docs/install-thunderbird.md | 2 +- Docs/install-twitter.md | 2 +- Docs/install-unbound.md | 2 +- Docs/install-updates.md | 10 +- Docs/install-visual-studio-code.md | 2 +- Docs/install-vivaldi.md | 2 +- Docs/install-vlc.md | 2 +- Docs/install-windows-terminal.md | 2 +- Docs/install-wsl.md | 2 +- Docs/install-zoom.md | 2 +- Docs/introduce-powershell.md | 28 +- Docs/list-aliases.md | 4 +- Docs/list-anagrams.md | 2 +- Docs/list-apps.md | 2 +- Docs/list-automatic-variables.md | 2 +- Docs/list-battery-status.md | 51 +++ Docs/list-bios.md | 2 +- Docs/list-bluetooth-devices.md | 2 +- Docs/list-branches.md | 2 +- Docs/list-calendar.md | 2 +- Docs/list-cheat-sheet.md | 2 +- Docs/list-city-weather.md | 2 +- Docs/list-cli-tools.md | 464 +++++++++++++-------------- Docs/list-clipboard.md | 2 +- Docs/list-cmdlets.md | 2 +- Docs/list-commit-statistics.md | 2 +- Docs/list-commits.md | 2 +- Docs/list-console-colors.md | 2 +- Docs/list-countries.md | 2 +- Docs/list-cpu.md | 2 +- Docs/list-credits.md | 2 +- Docs/list-crypto-rates.md | 2 +- Docs/list-dir-tree.md | 2 +- Docs/list-drives.md | 2 +- Docs/list-earthquakes.md | 2 +- Docs/list-emojis.md | 2 +- Docs/list-empty-dirs.md | 2 +- Docs/list-empty-files.md | 2 +- Docs/list-environment-variables.md | 2 +- Docs/list-exchange-rates.md | 2 +- Docs/list-fibonacci.md | 2 +- Docs/list-files.md | 2 +- Docs/list-folder.md | 2 +- Docs/list-fritzbox-calls.md | 2 +- Docs/list-fritzbox-devices.md | 2 +- Docs/list-headlines.md | 2 +- Docs/list-hidden-files.md | 2 +- Docs/list-installed-languages.md | 2 +- Docs/list-installed-software.md | 2 +- Docs/list-latest-tag.md | 2 +- Docs/list-latest-tags.md | 2 +- Docs/list-memos.md | 2 +- Docs/list-modules.md | 2 +- Docs/list-motherboard.md | 2 +- Docs/list-mysql-tables.md | 2 +- Docs/list-network-connections.md | 50 +++ Docs/list-network-routes.md | 2 +- Docs/list-network-shares.md | 2 +- Docs/list-news.md | 33 +- Docs/list-nic.md | 2 +- Docs/list-os-releases.md | 2 +- Docs/list-os-updates.md | 2 +- Docs/list-os.md | 2 +- Docs/list-outlook-inbox.md | 2 +- Docs/list-outlook-sent.md | 2 +- Docs/list-passwords.md | 2 +- Docs/list-pi.md | 114 +++++++ Docs/list-pins.md | 2 +- Docs/list-print-jobs.md | 2 +- Docs/list-printers.md | 2 +- Docs/list-processes.md | 2 +- Docs/list-profiles.md | 2 +- Docs/list-ram.md | 2 +- Docs/list-recycle-bin.md | 2 +- Docs/list-repos.md | 32 +- Docs/list-scripts.md | 2 +- Docs/list-services.md | 2 +- Docs/list-special-folders.md | 2 +- Docs/list-sql-tables.md | 2 +- Docs/list-submodules.md | 2 +- Docs/list-suggestions.md | 2 +- Docs/list-system-info.md | 2 +- Docs/list-tags.md | 2 +- Docs/list-tasks.md | 2 +- Docs/list-timezone.md | 2 +- Docs/list-timezones.md | 2 +- Docs/list-tiobe-index.md | 2 +- Docs/list-unused-files.md | 2 +- Docs/list-user-accounts.md | 2 +- Docs/list-user-groups.md | 2 +- Docs/list-voices.md | 2 +- Docs/list-weather.md | 74 +++-- Docs/list-wifi.md | 2 +- Docs/list-workdir.md | 2 +- Docs/locate-city.md | 2 +- Docs/locate-ipaddress.md | 2 +- Docs/locate-my-phone.md | 2 +- Docs/locate-zip-code.md | 2 +- Docs/lock-desktop.md | 2 +- Docs/log-off.md | 2 +- Docs/make-install.md | 2 +- Docs/merry-christmas.md | 2 +- Docs/minimize-all-windows.md | 2 +- Docs/moon.md | 2 +- Docs/my-profile.md | 2 +- Docs/new-branch.md | 6 +- Docs/new-email.md | 2 +- Docs/new-qrcode.md | 2 +- Docs/new-script.md | 2 +- Docs/new-shortcut.md | 2 +- Docs/new-symlink.md | 2 +- Docs/new-tag.md | 2 +- Docs/new-user.md | 2 +- Docs/new-zipfile.md | 2 +- Docs/open-accu-weather.md | 2 +- Docs/open-air-b-n-b.md | 2 +- Docs/open-apps-folder.md | 2 +- Docs/open-auto-start-folder.md | 2 +- Docs/open-bing-maps.md | 2 +- Docs/open-booking-com.md | 2 +- Docs/open-c-drive.md | 2 +- Docs/open-calculator.md | 2 +- Docs/open-chrome.md | 2 +- Docs/open-clock.md | 2 +- Docs/open-cortana.md | 2 +- Docs/open-d-drive.md | 2 +- Docs/open-deep-l-translator.md | 2 +- Docs/open-default-browser.md | 2 +- Docs/open-desktop-folder.md | 2 +- Docs/open-documents-folder.md | 2 +- Docs/open-downloads-folder.md | 2 +- Docs/open-dropbox-folder.md | 2 +- Docs/open-duck-duck-go.md | 2 +- Docs/open-e-drive.md | 2 +- Docs/open-edge.md | 2 +- Docs/open-egg-timer.md | 2 +- Docs/open-email-client.md | 2 +- Docs/open-f-drive.md | 2 +- Docs/open-file-explorer.md | 2 +- Docs/open-fire-place.md | 2 +- Docs/open-firefox.md | 2 +- Docs/open-flight-radar.md | 2 +- Docs/open-g-drive.md | 2 +- Docs/open-git-extensions.md | 2 +- Docs/open-google-books.md | 2 +- Docs/open-google-calendar.md | 2 +- Docs/open-google-contacts.md | 2 +- Docs/open-google-docs.md | 2 +- Docs/open-google-earth.md | 2 +- Docs/open-google-mail.md | 2 +- Docs/open-google-maps.md | 2 +- Docs/open-google-news.md | 2 +- Docs/open-google-photos.md | 2 +- Docs/open-google-play.md | 2 +- Docs/open-google-search.md | 2 +- Docs/open-google-stadia.md | 2 +- Docs/open-google-translate.md | 2 +- Docs/open-home-folder.md | 2 +- Docs/open-internet-archive.md | 2 +- Docs/open-jitsi-meet.md | 2 +- Docs/open-m-drive.md | 2 +- Docs/open-magnifier.md | 2 +- Docs/open-microsoft-paint.md | 2 +- Docs/open-microsoft-solitaire.md | 2 +- Docs/open-microsoft-store.md | 2 +- Docs/open-microsoft-teams.md | 2 +- Docs/open-microsoft-weather.md | 2 +- Docs/open-music-folder.md | 2 +- Docs/open-netflix.md | 2 +- Docs/open-note-pad.md | 2 +- Docs/open-obs-studio.md | 2 +- Docs/open-office-365.md | 2 +- Docs/open-one-drive-folder.md | 2 +- Docs/open-outlook.md | 2 +- Docs/open-paint-three-d.md | 2 +- Docs/open-pictures-folder.md | 2 +- Docs/open-recycle-bin-folder.md | 2 +- Docs/open-remote-desktop.md | 2 +- Docs/open-repos-folder.md | 2 +- Docs/open-screen-clip.md | 2 +- Docs/open-screen-sketch.md | 2 +- Docs/open-skype.md | 2 +- Docs/open-snipping-tool.md | 2 +- Docs/open-space-weather.md | 2 +- Docs/open-speed-test.md | 2 +- Docs/open-spotify.md | 2 +- Docs/open-stack-overflow.md | 2 +- Docs/open-start-page.md | 2 +- Docs/open-street-map.md | 2 +- Docs/open-task-manager.md | 2 +- Docs/open-temporary-folder.md | 2 +- Docs/open-three-d-viewer.md | 2 +- Docs/open-thunderbird.md | 2 +- Docs/open-videos-folders.md | 2 +- Docs/open-visual-studio.md | 2 +- Docs/open-vpn-settings.md | 2 +- Docs/open-windows-defender.md | 2 +- Docs/open-windows-terminal.md | 2 +- Docs/open-xing.md | 2 +- Docs/pick-commit.md | 2 +- Docs/ping-weather.md | 2 +- Docs/play-bee-sound.md | 2 +- Docs/play-beep-sound.md | 2 +- Docs/play-cat-sound.md | 2 +- Docs/play-cow-sound.md | 2 +- Docs/play-dog-sound.md | 2 +- Docs/play-donkey-sound.md | 2 +- Docs/play-elephant-sound.md | 2 +- Docs/play-elk-sound.md | 2 +- Docs/play-files.md | 2 +- Docs/play-frog-sound.md | 2 +- Docs/play-goat-sound.md | 2 +- Docs/play-gorilla-sound.md | 2 +- Docs/play-happy-birthday.md | 2 +- Docs/play-horse-sound.md | 2 +- Docs/play-imperial-march.md | 2 +- Docs/play-jingle-bells.md | 2 +- Docs/play-lion-sound.md | 2 +- Docs/play-m3u.md | 2 +- Docs/play-mission-impossible.md | 2 +- Docs/play-mp3.md | 2 +- Docs/play-parrot-sound.md | 2 +- Docs/play-pig-sound.md | 2 +- Docs/play-rattlesnake-sound.md | 2 +- Docs/play-super-mario.md | 2 +- Docs/play-tetris-melody.md | 2 +- Docs/play-vulture-sound.md | 2 +- Docs/play-wolf-sound.md | 2 +- Docs/poweroff.md | 2 +- Docs/print-image.md | 2 +- Docs/publish-to-ipfs.md | 2 +- Docs/pull-repo.md | 2 +- Docs/pull-repos.md | 2 +- Docs/query-smart-data.md | 2 +- Docs/reboot-fritzbox.md | 2 +- Docs/reboot.md | 2 +- Docs/remind-me.md | 2 +- Docs/remove-empty-dirs.md | 2 +- Docs/remove-print-jobs.md | 2 +- Docs/remove-tag.md | 2 +- Docs/replace-in-files.md | 2 +- Docs/restart-network-adapters.md | 2 +- Docs/roll-a-dice.md | 2 +- Docs/save-screenshot.md | 2 +- Docs/scan-ports.md | 2 +- Docs/search-filename.md | 2 +- Docs/search-files.md | 2 +- Docs/send-email.md | 2 +- Docs/send-tcp.md | 2 +- Docs/send-udp.md | 2 +- Docs/set-profile.md | 2 +- Docs/set-timer.md | 2 +- Docs/set-volume.md | 2 +- Docs/set-wallpaper.md | 2 +- Docs/show-lightnings.md | 2 +- Docs/show-notification.md | 2 +- Docs/show-traffic.md | 2 +- Docs/simulate-presence.md | 2 +- Docs/smart-data2csv.md | 2 +- Docs/speak-arabic.md | 2 +- Docs/speak-checklist.md | 2 +- Docs/speak-countdown.md | 2 +- Docs/speak-danish.md | 2 +- Docs/speak-dutch.md | 2 +- Docs/speak-english.md | 2 +- Docs/speak-epub.md | 2 +- Docs/speak-file.md | 2 +- Docs/speak-french.md | 2 +- Docs/speak-german.md | 2 +- Docs/speak-greek.md | 2 +- Docs/speak-hindi.md | 2 +- Docs/speak-italian.md | 2 +- Docs/speak-japanese.md | 2 +- Docs/speak-latin.md | 2 +- Docs/speak-mandarin.md | 2 +- Docs/speak-polish.md | 2 +- Docs/speak-portuguese.md | 2 +- Docs/speak-spanish.md | 2 +- Docs/speak-swedish.md | 2 +- Docs/speak-test.md | 2 +- Docs/speak-text.md | 2 +- Docs/speak-ukrainian.md | 2 +- Docs/spell-word.md | 2 +- Docs/start-calibre-server.md | 2 +- Docs/start-ipfs-server.md | 2 +- Docs/suspend.md | 2 +- Docs/switch-branch.md | 14 +- Docs/switch-shelly1.md | 2 +- Docs/sync-repo.md | 2 +- Docs/tell-joke.md | 2 +- Docs/tell-quote.md | 11 +- Docs/toggle-caps-lock.md | 2 +- Docs/toggle-num-lock.md | 2 +- Docs/toggle-scroll-lock.md | 2 +- Docs/translate-file.md | 2 +- Docs/translate-files.md | 2 +- Docs/translate-text.md | 2 +- Docs/turn-volume-down.md | 2 +- Docs/turn-volume-fully-up.md | 2 +- Docs/turn-volume-off.md | 2 +- Docs/turn-volume-on.md | 2 +- Docs/turn-volume-up.md | 2 +- Docs/uninstall-crystal-disk-info.md | 2 +- Docs/uninstall-crystal-disk-mark.md | 2 +- Docs/uninstall-discord.md | 2 +- Docs/uninstall-edge.md | 2 +- Docs/uninstall-firefox.md | 2 +- Docs/uninstall-git-extensions.md | 2 +- Docs/uninstall-irfanview.md | 2 +- Docs/uninstall-microsoft-teams.md | 2 +- Docs/uninstall-netflix.md | 2 +- Docs/uninstall-nine-zip.md | 2 +- Docs/uninstall-one-calendar.md | 2 +- Docs/uninstall-opera-browser.md | 2 +- Docs/uninstall-opera-gx.md | 2 +- Docs/uninstall-paint-3d.md | 2 +- Docs/uninstall-rufus.md | 2 +- Docs/uninstall-skype.md | 2 +- Docs/uninstall-spotify.md | 2 +- Docs/uninstall-twitter.md | 2 +- Docs/uninstall-visual-studio-code.md | 2 +- Docs/uninstall-vlc.md | 2 +- Docs/uninstall-windows-terminal.md | 2 +- Docs/upgrade-ubuntu.md | 2 +- Docs/upload-file.md | 2 +- Docs/upload-to-dropbox.md | 2 +- Docs/wakeup.md | 2 +- Docs/weather-report.md | 2 +- Docs/weather.md | 2 +- Docs/what-is.md | 2 +- Docs/write-animated.md | 5 +- Docs/write-big.md | 2 +- Docs/write-blue.md | 2 +- Docs/write-braille.md | 2 +- Docs/write-chart.md | 2 +- Docs/write-code.md | 2 +- Docs/write-date.md | 2 +- Docs/write-fractal.md | 2 +- Docs/write-green.md | 2 +- Docs/write-joke.md | 2 +- Docs/write-lowercase.md | 2 +- Docs/write-marquee.md | 2 +- Docs/write-matrix.md | 2 +- Docs/write-morse-code.md | 2 +- Docs/write-motd.md | 2 +- Docs/write-quote.md | 15 +- Docs/write-red.md | 2 +- Docs/write-rot13.md | 2 +- Docs/write-sine-curves.md | 2 +- Docs/write-time.md | 2 +- Docs/write-typewriter.md | 2 +- Docs/write-uppercase.md | 2 +- Docs/write-vertical.md | 2 +- Scripts/convert-ps2md.ps1 | 4 +- Scripts/export-to-manuals.ps1 | 10 +- 520 files changed, 1470 insertions(+), 923 deletions(-) create mode 100644 Docs/check-apps.md create mode 100644 Docs/check-battery.md create mode 100644 Docs/check-os.md create mode 100644 Docs/check-powershell.md create mode 100644 Docs/list-battery-status.md create mode 100644 Docs/list-network-connections.md create mode 100644 Docs/list-pi.md diff --git a/Docs/add-firewall-rules.md b/Docs/add-firewall-rules.md index 1220c467..4b99591c 100644 --- a/Docs/add-firewall-rules.md +++ b/Docs/add-firewall-rules.md @@ -1,4 +1,4 @@ -## The *add-firewall-rules.ps1* PowerShell Script +## The *add-firewall-rules.ps1* Script This PowerShell script adds firewall rules for the given executable. Administrator rights are required. diff --git a/Docs/add-memo.md b/Docs/add-memo.md index a88c3cff..462cd4a7 100644 --- a/Docs/add-memo.md +++ b/Docs/add-memo.md @@ -1,4 +1,4 @@ -## The *add-memo.ps1* PowerShell Script +## The *add-memo.ps1* Script This PowerShell script adds the given memo text to $HOME/Memos.csv. diff --git a/Docs/alert.md b/Docs/alert.md index bceefeab..7099c5f3 100644 --- a/Docs/alert.md +++ b/Docs/alert.md @@ -1,4 +1,4 @@ -## The *alert.ps1* PowerShell Script +## The *alert.ps1* Script This PowerShell script handles and escalates the given alert message. diff --git a/Docs/build-repo.md b/Docs/build-repo.md index b4b1f4f7..5aa92132 100644 --- a/Docs/build-repo.md +++ b/Docs/build-repo.md @@ -1,4 +1,4 @@ -## The *build-repo.ps1* PowerShell Script +## The *build-repo.ps1* Script This PowerShell script supports building with cmake, configure, autogen, Imakefile and Makefile. diff --git a/Docs/build-repos.md b/Docs/build-repos.md index 6010bac7..74a6b43b 100644 --- a/Docs/build-repos.md +++ b/Docs/build-repos.md @@ -1,4 +1,4 @@ -## The *build-repos.ps1* PowerShell Script +## The *build-repos.ps1* Script This PowerShell script builds all Git repositories in a folder. diff --git a/Docs/cd-autostart.md b/Docs/cd-autostart.md index 1ef5804a..b4dbc7f2 100644 --- a/Docs/cd-autostart.md +++ b/Docs/cd-autostart.md @@ -1,4 +1,4 @@ -## The *cd-autostart.ps1* PowerShell Script +## The *cd-autostart.ps1* Script This PowerShell script changes the working directory to the user's autostart folder. diff --git a/Docs/cd-desktop.md b/Docs/cd-desktop.md index 287cc081..0da168b3 100644 --- a/Docs/cd-desktop.md +++ b/Docs/cd-desktop.md @@ -1,4 +1,4 @@ -## The *cd-desktop.ps1* PowerShell Script +## The *cd-desktop.ps1* Script This PowerShell script changes the working directory to the user's desktop folder. diff --git a/Docs/cd-docs.md b/Docs/cd-docs.md index a7bcc0dd..20d1b825 100644 --- a/Docs/cd-docs.md +++ b/Docs/cd-docs.md @@ -1,4 +1,4 @@ -## The *cd-docs.ps1* PowerShell Script +## The *cd-docs.ps1* Script This PowerShell script changes the working directory to the documents folder. diff --git a/Docs/cd-downloads.md b/Docs/cd-downloads.md index 513e4a7a..5f63bb07 100644 --- a/Docs/cd-downloads.md +++ b/Docs/cd-downloads.md @@ -1,4 +1,4 @@ -## The *cd-downloads.ps1* PowerShell Script +## The *cd-downloads.ps1* Script This PowerShell script changes the working directory to the user's downloads folder. diff --git a/Docs/cd-dropbox.md b/Docs/cd-dropbox.md index 0b1153ab..8e376792 100644 --- a/Docs/cd-dropbox.md +++ b/Docs/cd-dropbox.md @@ -1,4 +1,4 @@ -## The *cd-dropbox.ps1* PowerShell Script +## The *cd-dropbox.ps1* Script This PowerShell script changes the working directory to the user's Dropbox folder. diff --git a/Docs/cd-fonts.md b/Docs/cd-fonts.md index 330fda58..9dbcb589 100644 --- a/Docs/cd-fonts.md +++ b/Docs/cd-fonts.md @@ -1,4 +1,4 @@ -## The *cd-fonts.ps1* PowerShell Script +## The *cd-fonts.ps1* Script This PowerShell script changes the working directory to the fonts folder. diff --git a/Docs/cd-home.md b/Docs/cd-home.md index ad464724..29adbdcd 100644 --- a/Docs/cd-home.md +++ b/Docs/cd-home.md @@ -1,4 +1,4 @@ -## The *cd-home.ps1* PowerShell Script +## The *cd-home.ps1* Script This PowerShell script changes the working directory to the user's home directory. diff --git a/Docs/cd-music.md b/Docs/cd-music.md index 6ad7b1a0..9acea0c4 100644 --- a/Docs/cd-music.md +++ b/Docs/cd-music.md @@ -1,4 +1,4 @@ -## The *cd-music.ps1* PowerShell Script +## The *cd-music.ps1* Script This PowerShell script changes the working directory to the user's music folder. diff --git a/Docs/cd-onedrive.md b/Docs/cd-onedrive.md index 3a45c355..29f7f5e4 100644 --- a/Docs/cd-onedrive.md +++ b/Docs/cd-onedrive.md @@ -1,4 +1,4 @@ -## The *cd-onedrive.ps1* PowerShell Script +## The *cd-onedrive.ps1* Script This PowerShell script changes the working directory to the user's OneDrive folder. diff --git a/Docs/cd-pics.md b/Docs/cd-pics.md index 2a6bcbd8..7a64d103 100644 --- a/Docs/cd-pics.md +++ b/Docs/cd-pics.md @@ -1,4 +1,4 @@ -## The *cd-pics.ps1* PowerShell Script +## The *cd-pics.ps1* Script This PowerShell script changes the working directory to the user's pictures folder. diff --git a/Docs/cd-recycle-bin.md b/Docs/cd-recycle-bin.md index 89dc2a8f..4ab45d54 100644 --- a/Docs/cd-recycle-bin.md +++ b/Docs/cd-recycle-bin.md @@ -1,4 +1,4 @@ -## The *cd-recycle-bin.ps1* PowerShell Script +## The *cd-recycle-bin.ps1* Script cd-recycle-bin.ps1 diff --git a/Docs/cd-repos.md b/Docs/cd-repos.md index 4124f04e..a7ccca64 100644 --- a/Docs/cd-repos.md +++ b/Docs/cd-repos.md @@ -1,10 +1,19 @@ -## The *cd-repos.ps1* PowerShell Script +## The *cd-repos.ps1* Script This PowerShell script changes the working directory to the user's Git repositories folder. ## Parameters ```powershell -cd-repos.ps1 [] +cd-repos.ps1 [[-Subpath] ] [] + +-Subpath + Specifies an additional relative subpath (optional) + + Required? false + Position? 1 + Default value + Accept pipeline input? false + Accept wildcard characters? false [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -31,6 +40,8 @@ https://github.com/fleschutz/PowerShell Sets the working directory to the user's repos folder .DESCRIPTION This PowerShell script changes the working directory to the user's Git repositories folder. +.PARAMETER Subpath + Specifies an additional relative subpath (optional) .EXAMPLE PS> ./cd-repos 📂C:\Users\Markus\Repos @@ -40,22 +51,27 @@ https://github.com/fleschutz/PowerShell Author: Markus Fleschutz | License: CC0 #> +param([string]$Subpath = "") + try { - if (Test-Path "$HOME/Repos" -pathType Container) { - $Path = Resolve-Path "$HOME/Repos" # short form - } elseif (Test-Path "$HOME/Repositories" -pathType Container) { - $Path = Resolve-Path "$HOME/Repositories" # long form - } elseif (Test-Path "$HOME/source/repos" -pathType Container) { - $Path = Resolve-Path "$HOME/source/repos" # default by Visual Studio + if (Test-Path "$HOME/Repos" -pathType Container) { # try short name + $Path = "$HOME/Repos/$Subpath" + } elseif (Test-Path "$HOME/Repositories" -pathType Container) { # try long name + $Path = "$HOME/Repositories/$Subpath" + } elseif (Test-Path "$HOME/source/repos" -pathType Container) { # try Visual Studio default + $Path = "$HOME/source/repos/$Subpath" } else { - $Path = "$HOME/Repos" - throw "Folder for Git repositories at 📂$Path doesn't exist (yet)" + throw "The folder for Git repositories at 📂$HOME/Reposh doesn't exist (yet)." } + if (-not(Test-Path "$Path" -pathType Container)) { + throw "The path to 📂$Path doesn't exist (yet)." + } + $Path = Resolve-Path "$Path" Set-Location "$Path" "📂$Path" exit 0 # success } catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + "⚠️ Error: $($Error[0])" exit 1 } ``` diff --git a/Docs/cd-root.md b/Docs/cd-root.md index 25e8cbeb..0b843ef0 100644 --- a/Docs/cd-root.md +++ b/Docs/cd-root.md @@ -1,4 +1,4 @@ -## The *cd-root.ps1* PowerShell Script +## The *cd-root.ps1* Script This PowerShell script changes the current working directory to the root directory (C:\ on Windows). diff --git a/Docs/cd-screenshots.md b/Docs/cd-screenshots.md index bb78dd78..108594ca 100644 --- a/Docs/cd-screenshots.md +++ b/Docs/cd-screenshots.md @@ -1,4 +1,4 @@ -## The *cd-screenshots.ps1* PowerShell Script +## The *cd-screenshots.ps1* Script This PowerShell script changes the working directory to the user's screenshots folder. diff --git a/Docs/cd-scripts.md b/Docs/cd-scripts.md index 7e42d8ab..34ee0a61 100644 --- a/Docs/cd-scripts.md +++ b/Docs/cd-scripts.md @@ -1,4 +1,4 @@ -## The *cd-scripts.ps1* PowerShell Script +## The *cd-scripts.ps1* Script This PowerShell script changes the working directory to the PowerShell scripts folder. diff --git a/Docs/cd-ssh.md b/Docs/cd-ssh.md index 9c162cf0..d20a3d27 100644 --- a/Docs/cd-ssh.md +++ b/Docs/cd-ssh.md @@ -1,4 +1,4 @@ -## The *cd-ssh.ps1* PowerShell Script +## The *cd-ssh.ps1* Script This PowerShell script changes the working directory to the user's SSH folder. diff --git a/Docs/cd-temp.md b/Docs/cd-temp.md index 33f60c8a..76ebe006 100644 --- a/Docs/cd-temp.md +++ b/Docs/cd-temp.md @@ -1,4 +1,4 @@ -## The *cd-temp.ps1* PowerShell Script +## The *cd-temp.ps1* Script cd-temp.ps1 diff --git a/Docs/cd-up.md b/Docs/cd-up.md index 59846505..21f50c31 100644 --- a/Docs/cd-up.md +++ b/Docs/cd-up.md @@ -1,4 +1,4 @@ -## The *cd-up.ps1* PowerShell Script +## The *cd-up.ps1* Script This PowerShell script changes the working directory to one directory level up. diff --git a/Docs/cd-up2.md b/Docs/cd-up2.md index a2b3cbae..72acad12 100644 --- a/Docs/cd-up2.md +++ b/Docs/cd-up2.md @@ -1,4 +1,4 @@ -## The *cd-up2.ps1* PowerShell Script +## The *cd-up2.ps1* Script This PowerShell script changes the working directory to two directory level up. diff --git a/Docs/cd-up3.md b/Docs/cd-up3.md index 08a1bb91..0d089a67 100644 --- a/Docs/cd-up3.md +++ b/Docs/cd-up3.md @@ -1,4 +1,4 @@ -## The *cd-up3.ps1* PowerShell Script +## The *cd-up3.ps1* Script This PowerShell script changes the working directory to three directory levels up. diff --git a/Docs/cd-up4.md b/Docs/cd-up4.md index e3b97f5e..ecb61bd3 100644 --- a/Docs/cd-up4.md +++ b/Docs/cd-up4.md @@ -1,4 +1,4 @@ -## The *cd-up4.ps1* PowerShell Script +## The *cd-up4.ps1* Script This PowerShell script changes the working directory to four directory levels up. diff --git a/Docs/cd-users.md b/Docs/cd-users.md index c70cd8af..8e6fa732 100644 --- a/Docs/cd-users.md +++ b/Docs/cd-users.md @@ -1,4 +1,4 @@ -## The *cd-users.ps1* PowerShell Script +## The *cd-users.ps1* Script This PowerShell script changes the working directory to the users directory. diff --git a/Docs/cd-videos.md b/Docs/cd-videos.md index a50ef7bd..a14b5731 100644 --- a/Docs/cd-videos.md +++ b/Docs/cd-videos.md @@ -1,4 +1,4 @@ -## The *cd-videos.ps1* PowerShell Script +## The *cd-videos.ps1* Script This PowerShell script changes the working directory to the user's videos folder. diff --git a/Docs/cd-windows.md b/Docs/cd-windows.md index c2ba40c7..e9b6fb7a 100644 --- a/Docs/cd-windows.md +++ b/Docs/cd-windows.md @@ -1,4 +1,4 @@ -## The *cd-windows.ps1* PowerShell Script +## The *cd-windows.ps1* Script This PowerShell script changes the working directory to the Windows directory. diff --git a/Docs/change-wallpaper.md b/Docs/change-wallpaper.md index 66affdd2..f512515a 100644 --- a/Docs/change-wallpaper.md +++ b/Docs/change-wallpaper.md @@ -1,4 +1,4 @@ -## The *change-wallpaper.ps1* PowerShell Script +## The *change-wallpaper.ps1* Script This PowerShell script downloads a random photo from Unsplash and sets it as desktop background. diff --git a/Docs/check-apps.md b/Docs/check-apps.md new file mode 100644 index 00000000..e4337883 --- /dev/null +++ b/Docs/check-apps.md @@ -0,0 +1,57 @@ +## The *check-apps.ps1* Script + +This PowerShell script queries application details and list it. + +## Parameters +```powershell +check-apps.ps1 [] + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +## Example +```powershell +PS> ./check-apps + +``` + +## Notes +Author: Markus Fleschutz | License: CC0 + +## Related Links +https://github.com/fleschutz/PowerShell + +## Source Code +```powershell +<# +.SYNOPSIS + Query application details +.DESCRIPTION + This PowerShell script queries application details and list it. +.EXAMPLE + PS> ./check-apps +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +try { + if ($IsLinux) { + # TODO + } else { + Write-Progress "Querying installed apps and available updates..." + $NumAppsInstalled = (Get-AppxPackage).Count + $NumUpdates = (winget upgrade).Count - 5 + "✅ $NumAppsInstalled apps installed, $NumUpdates updates available" + } + exit 0 # success +} catch { + "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 +} +``` + +*Generated by convert-ps2md.ps1 using the comment-based help of check-apps.ps1* diff --git a/Docs/check-battery.md b/Docs/check-battery.md new file mode 100644 index 00000000..86dd8689 --- /dev/null +++ b/Docs/check-battery.md @@ -0,0 +1,67 @@ +## The *check-battery.ps1* Script + +This PowerShell script checks and prints the battery status. + +## Parameters +```powershell +check-battery.ps1 [] + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +## Example +```powershell +PS> ./check-battery + +``` + +## Notes +Author: Markus Fleschutz | License: CC0 + +## Related Links +https://github.com/fleschutz/PowerShell + +## Source Code +```powershell +<# +.SYNOPSIS + Checks the battery status +.DESCRIPTION + This PowerShell script checks and prints the battery status. +.EXAMPLE + PS> ./check-battery +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +try { + if ($IsLinux) { + # TODO + } else { + Add-Type -Assembly System.Windows.Forms + $Details = [System.Windows.Forms.SystemInformation]::PowerStatus + if ($Details.BatteryChargeStatus -eq "NoSystemBattery") { + $BatteryStatus = "No battery" + } else { + [int]$Percent = 100*$Details.BatteryLifePercent + [int]$Remaining = $Details.BatteryLifeRemaining / 60 + $BatteryStatus = "Battery $Percent%, $Remaining min left" + } + switch ($Details.PowerLineStatus) { + "Online" { $PowerStatus = "plugged in to AC power" } + "Offline" { $PowerStatus = "disconnected from AC power" } + } + "✅ $BatteryStatus, $PowerStatus" + } + exit 0 # success +} catch { + "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 +} +``` + +*Generated by convert-ps2md.ps1 using the comment-based help of check-battery.ps1* diff --git a/Docs/check-bios.md b/Docs/check-bios.md index 370dcbed..68c1e310 100644 --- a/Docs/check-bios.md +++ b/Docs/check-bios.md @@ -1,4 +1,4 @@ -## The *check-bios.ps1* PowerShell Script +## The *check-bios.ps1* Script This PowerShell script queries BIOS details and prints it. @@ -14,6 +14,7 @@ check-bios.ps1 [] ## Example ```powershell PS> ./check-bios +✅ BIOS V1.10 by INSYDE Corp. (S/N NXA82EV0EBB07600, version ACRSYS - 2) ``` @@ -32,6 +33,7 @@ https://github.com/fleschutz/PowerShell This PowerShell script queries BIOS details and prints it. .EXAMPLE PS> ./check-bios + ✅ BIOS V1.10 by INSYDE Corp. (S/N NXA82EV0EBB07600, version ACRSYS - 2) .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -39,15 +41,16 @@ https://github.com/fleschutz/PowerShell #> try { + Write-Progress "Querying BIOS details..." if ($IsLinux) { # TODO } else { $BIOS = Get-CimInstance -ClassName Win32_BIOS $Manufacturer = $BIOS.Manufacturer $Model = $BIOS.Name - $SerialNumber = $BIOS.SerialNumber + $Serial = $BIOS.SerialNumber $Version = $BIOS.Version - "✅ $Manufacturer BIOS $($Model): S/N $SerialNumber, version $Version" + "✅ BIOS $Model by $Manufacturer (S/N $Serial, version $Version)" } exit 0 # success } catch { diff --git a/Docs/check-cpu.md b/Docs/check-cpu.md index 99129f08..e04d715b 100644 --- a/Docs/check-cpu.md +++ b/Docs/check-cpu.md @@ -1,4 +1,4 @@ -## The *check-cpu.ps1* PowerShell Script +## The *check-cpu.ps1* Script check-cpu.ps1 @@ -16,12 +16,12 @@ check-cpu.ps1 ```powershell <# .SYNOPSIS - Checks the CPU temperature + Queries and prints CPU details .DESCRIPTION - This PowerShell script queries the CPU temperature and returns it. + This PowerShell script queries CPU details (name, type, speed, temperature, etc.) and prints it. .EXAMPLE PS> ./check-cpu - CPU is 30.3°C warm. + ✅ CPU AMD Ryzen 5 5500U with Radeon Graphics (CPU0, 2100MHz, 31.3°C) .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -46,23 +46,27 @@ function GetCPUTemperatureInCelsius { } try { + Write-Progress "Querying CPU details ..." $Celsius = GetCPUTemperatureInCelsius if ($Celsius -eq 99999.9) { $Temp = "no temp" } elseif ($Celsius -gt 50) { - $Temp = "$($Celsius)°C hot" - } elseif ($Celsius -gt 0) { - $Temp = "$($Celsius)°C warm" + $Temp = "⚠️$($Celsius)°C" + } elseif ($Celsius -lt 0) { + $Temp = "⚠️$($Celsius)°C" } else { - $Temp = "$($Celsius)°C cold" + $Temp = "$($Celsius)°C" } if ($IsLinux) { - "✅ CPU is $Temp." + "✅ CPU has $Temp" } else { $Details = Get-WmiObject -Class Win32_Processor - $DeviceName = $Details.Name.trim() - "✅ $($DeviceName): $($Details.DeviceID), $($Details.MaxClockSpeed)MHz, $Temp" + $CPUName = $Details.Name.trim() + $DeviceID = $Details.DeviceID + $Speed = "$($Details.MaxClockSpeed)MHz" + $Socket = $Details.SocketDesignation + "✅ CPU $CPUName ($DeviceID, $Speed, socket $Socket, $Temp)" } exit 0 # success } catch { diff --git a/Docs/check-day.md b/Docs/check-day.md index 45e10933..bd543dec 100644 --- a/Docs/check-day.md +++ b/Docs/check-day.md @@ -1,4 +1,4 @@ -## The *check-day.ps1* PowerShell Script +## The *check-day.ps1* Script This PowerShell script determines and speaks the current day by text-to-speech (TTS). diff --git a/Docs/check-dns-server.md b/Docs/check-dns-server.md index ecea36a1..e3288131 100644 --- a/Docs/check-dns-server.md +++ b/Docs/check-dns-server.md @@ -1,4 +1,4 @@ -## The *check-dns-server.ps1* PowerShell Script +## The *check-dns-server.ps1* Script check-dns-server.ps1 diff --git a/Docs/check-dns.md b/Docs/check-dns.md index 6606c9ac..d3c587df 100644 --- a/Docs/check-dns.md +++ b/Docs/check-dns.md @@ -1,4 +1,4 @@ -## The *check-dns.ps1* PowerShell Script +## The *check-dns.ps1* Script This PowerShell script measures and prints the DNS resolution speed by using 200 frequently used domain names. @@ -55,7 +55,7 @@ try { $Average = [math]::round($NumRows / $Elapsed, 1) if ($Average -gt 10.0) { - "✅ DNS resolves $Average domains per second." + "✅ DNS resolves $Average domains per second" } else { "⚠️ DNS resolves only $Average domains per second!" } diff --git a/Docs/check-drive-space.md b/Docs/check-drive-space.md index 4578a12a..0367bbbf 100644 --- a/Docs/check-drive-space.md +++ b/Docs/check-drive-space.md @@ -1,4 +1,4 @@ -## The *check-drive-space.ps1* PowerShell Script +## The *check-drive-space.ps1* Script This PowerShell script checks a drive for free space left (20 GB by default). diff --git a/Docs/check-drives.md b/Docs/check-drives.md index 78793adc..a69a8b0b 100644 --- a/Docs/check-drives.md +++ b/Docs/check-drives.md @@ -1,4 +1,4 @@ -## The *check-drives.ps1* PowerShell Script +## The *check-drives.ps1* Script This PowerShell script checks all drives for free space left. @@ -77,13 +77,13 @@ try { [int64]$Total = ($Used + $Free) if ($Total -eq 0) { - "✅ Drive $ID is empty." + "✅ Drive $ID is empty" } elseif ($Free -lt $MinLevel) { "⚠️ Drive $ID has only $(Bytes2String $Free) of $(Bytes2String $Total) left to use!" } elseif ($Used -lt $Free) { - "✅ Drive $ID uses $(Bytes2String $Used) of $(Bytes2String $Total)." + "✅ Drive $ID uses $(Bytes2String $Used) of $(Bytes2String $Total)" } else { - "✅ Drive $ID has $(Bytes2String $Free) of $(Bytes2String $Total) left." + "✅ Drive $ID has $(Bytes2String $Free) free of $(Bytes2String $Total)" } } exit 0 # success diff --git a/Docs/check-dusk.md b/Docs/check-dusk.md index 3c26b83d..99663e54 100644 --- a/Docs/check-dusk.md +++ b/Docs/check-dusk.md @@ -1,4 +1,4 @@ -## The *check-dusk.ps1* PowerShell Script +## The *check-dusk.ps1* Script check-dusk.ps1 diff --git a/Docs/check-easter-sunday.md b/Docs/check-easter-sunday.md index 995662ad..7bfec2ce 100644 --- a/Docs/check-easter-sunday.md +++ b/Docs/check-easter-sunday.md @@ -1,4 +1,4 @@ -## The *check-easter-sunday.ps1* PowerShell Script +## The *check-easter-sunday.ps1* Script This PowerShell script checks the time until Easter Sunday and replies by text-to-speech (TTS). diff --git a/Docs/check-file-system.md b/Docs/check-file-system.md index e8530aa2..cb51a03f 100644 --- a/Docs/check-file-system.md +++ b/Docs/check-file-system.md @@ -1,4 +1,4 @@ -## The *check-file-system.ps1* PowerShell Script +## The *check-file-system.ps1* Script This PowerShell script checks the file system of a drive. It needs admin rights. diff --git a/Docs/check-gpu.md b/Docs/check-gpu.md index 266039e6..1d794227 100644 --- a/Docs/check-gpu.md +++ b/Docs/check-gpu.md @@ -1,4 +1,4 @@ -## The *check-gpu.ps1* PowerShell Script +## The *check-gpu.ps1* Script check-gpu.ps1 @@ -52,7 +52,7 @@ try { $RefreshRate = $Details.CurrentRefreshRate $DriverVersion = $Details.DriverVersion $Status = $Details.Status - "✅ $($Model): $(Bytes2String $RAMSize) RAM, $($ResWidth)x$($ResHeight) pixels, $BitsPerPixel bit, $RefreshRate Hz, driver $DriverVersion, status $Status" + "✅ GPU $($Model) ($(Bytes2String $RAMSize) RAM, $($ResWidth)x$($ResHeight) pixels, $BitsPerPixel bit, $RefreshRate Hz, driver $DriverVersion, status $Status)" } } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/check-health.md b/Docs/check-health.md index 94bb2a46..3d1198eb 100644 --- a/Docs/check-health.md +++ b/Docs/check-health.md @@ -1,4 +1,4 @@ -## The *check-health.ps1* PowerShell Script +## The *check-health.ps1* Script This PowerShell script checks some health parameter of the local computer. @@ -38,16 +38,23 @@ https://github.com/fleschutz/PowerShell Author: Markus Fleschutz | License: CC0 #> -& "$PSScriptRoot/check-operating-system.ps1" -& "$PSScriptRoot/check-uptime.ps1" -& "$PSScriptRoot/check-time-zone.ps1" -& "$PSScriptRoot/check-bios.ps1" +" " +& "$PSScriptRoot/write-green.ps1" " H A R D W A R E" & "$PSScriptRoot/check-cpu.ps1" & "$PSScriptRoot/check-ram.ps1" & "$PSScriptRoot/check-gpu.ps1" +& "$PSScriptRoot/check-bios.ps1" & "$PSScriptRoot/check-smart-devices.ps1" -& "$PSScriptRoot/check-swap-space.ps1" & "$PSScriptRoot/check-drives.ps1" +& "$PSScriptRoot/check-battery.ps1" +" " +& "$PSScriptRoot/write-green.ps1" " S O F T W A R E" +& "$PSScriptRoot/check-os.ps1" +& "$PSScriptRoot/check-powershell.ps1" +& "$PSScriptRoot/check-apps.ps1" +& "$PSScriptRoot/check-uptime.ps1" +& "$PSScriptRoot/check-time-zone.ps1" +& "$PSScriptRoot/check-swap-space.ps1" & "$PSScriptRoot/check-dns.ps1" & "$PSScriptRoot/check-ping.ps1" & "$PSScriptRoot/check-vpn.ps1" diff --git a/Docs/check-independence-day.md b/Docs/check-independence-day.md index 2e312e3c..af59753d 100644 --- a/Docs/check-independence-day.md +++ b/Docs/check-independence-day.md @@ -1,4 +1,4 @@ -## The *check-independence-day.ps1* PowerShell Script +## The *check-independence-day.ps1* Script This PowerShell script checks the time until Indepence Day and replies by text-to-speech (TTS). diff --git a/Docs/check-ipv4-address.md b/Docs/check-ipv4-address.md index f55b36de..a9b3f9c3 100644 --- a/Docs/check-ipv4-address.md +++ b/Docs/check-ipv4-address.md @@ -1,4 +1,4 @@ -## The *check-ipv4-address.ps1* PowerShell Script +## The *check-ipv4-address.ps1* Script This PowerShell script checks the given IPv4 address for validity. diff --git a/Docs/check-ipv6-address.md b/Docs/check-ipv6-address.md index 8098371a..22aa0260 100644 --- a/Docs/check-ipv6-address.md +++ b/Docs/check-ipv6-address.md @@ -1,4 +1,4 @@ -## The *check-ipv6-address.ps1* PowerShell Script +## The *check-ipv6-address.ps1* Script This PowerShell script checks the given IPv6 address for validity diff --git a/Docs/check-iss-position.md b/Docs/check-iss-position.md index eb7ff2d8..080344c1 100644 --- a/Docs/check-iss-position.md +++ b/Docs/check-iss-position.md @@ -1,4 +1,4 @@ -## The *check-iss-position.ps1* PowerShell Script +## The *check-iss-position.ps1* Script This PowerShell script queries the position of the International Space Station (ISS) and replies by text-to-speech (TTS). diff --git a/Docs/check-mac-address.md b/Docs/check-mac-address.md index 7512ce8a..2e84f2ff 100644 --- a/Docs/check-mac-address.md +++ b/Docs/check-mac-address.md @@ -1,4 +1,4 @@ -## The *check-mac-address.ps1* PowerShell Script +## The *check-mac-address.ps1* Script This PowerShell script checks the given MAC address for validity Supported MAC address formats are: 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000000000000. diff --git a/Docs/check-midnight.md b/Docs/check-midnight.md index 22cae1b1..d8d06d8b 100644 --- a/Docs/check-midnight.md +++ b/Docs/check-midnight.md @@ -1,4 +1,4 @@ -## The *check-midnight.ps1* PowerShell Script +## The *check-midnight.ps1* Script check-midnight.ps1 diff --git a/Docs/check-month.md b/Docs/check-month.md index f8d4e917..2ef14195 100644 --- a/Docs/check-month.md +++ b/Docs/check-month.md @@ -1,4 +1,4 @@ -## The *check-month.ps1* PowerShell Script +## The *check-month.ps1* Script This PowerShell script determines and speaks the current month name by text-to-speech (TTS). diff --git a/Docs/check-moon-phase.md b/Docs/check-moon-phase.md index efc177f2..3611100c 100644 --- a/Docs/check-moon-phase.md +++ b/Docs/check-moon-phase.md @@ -1,4 +1,4 @@ -## The *check-moon-phase.ps1* PowerShell Script +## The *check-moon-phase.ps1* Script This PowerShell script determines the Moon phase and answers by text-to-speech (TTS). diff --git a/Docs/check-new-year.md b/Docs/check-new-year.md index 13129c65..f9dd8e17 100644 --- a/Docs/check-new-year.md +++ b/Docs/check-new-year.md @@ -1,4 +1,4 @@ -## The *check-new-year.ps1* PowerShell Script +## The *check-new-year.ps1* Script This PowerShell script checks the time until New Year and replies by text-to-speech (TTS). diff --git a/Docs/check-noon.md b/Docs/check-noon.md index f6629491..af19102c 100644 --- a/Docs/check-noon.md +++ b/Docs/check-noon.md @@ -1,4 +1,4 @@ -## The *check-noon.ps1* PowerShell Script +## The *check-noon.ps1* Script check-noon.ps1 diff --git a/Docs/check-os.md b/Docs/check-os.md new file mode 100644 index 00000000..453378de --- /dev/null +++ b/Docs/check-os.md @@ -0,0 +1,64 @@ +## The *check-os.ps1* Script + +This PowerShell script queries and lists operating system details. + +## Parameters +```powershell +check-os.ps1 [] + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +## Example +```powershell +PS> ./check-os + +``` + +## Notes +Author: Markus Fleschutz | License: CC0 + +## Related Links +https://github.com/fleschutz/PowerShell + +## Source Code +```powershell +<# +.SYNOPSIS + Query OS details +.DESCRIPTION + This PowerShell script queries and lists operating system details. +.EXAMPLE + PS> ./check-os +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +try { + if ($IsLinux) { + "✅ $(uname -sr)" + } else { + $OS = Get-WmiObject -class Win32_OperatingSystem + $Name = $OS.Caption + $Arch = $OS.OSArchitecture + $Version = $OS.Version + + [system.threading.thread]::currentthread.currentculture = [system.globalization.cultureinfo]"en-US" + $OSDetails = Get-CimInstance Win32_OperatingSystem + $BuildNo = $OSDetails.BuildNumber + $Serial = $OSDetails.SerialNumber + $InstallDate = $OSDetails.InstallDate + "✅ $($Name) ($Arch, v$Version, S/N $Serial) installed on $($InstallDate.ToShortDateString())" + } + exit 0 # success +} catch { + "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 +} +``` + +*Generated by convert-ps2md.ps1 using the comment-based help of check-os.ps1* diff --git a/Docs/check-outlook.md b/Docs/check-outlook.md index 96c1f776..bf076501 100644 --- a/Docs/check-outlook.md +++ b/Docs/check-outlook.md @@ -1,4 +1,4 @@ -## The *check-outlook.ps1* PowerShell Script +## The *check-outlook.ps1* Script This PowerShell script checks the inbox of Outlook for new/unread mails. diff --git a/Docs/check-pending-reboot.md b/Docs/check-pending-reboot.md index fdf31d57..252237fb 100644 --- a/Docs/check-pending-reboot.md +++ b/Docs/check-pending-reboot.md @@ -1,4 +1,4 @@ -## The *check-pending-reboot.ps1* PowerShell Script +## The *check-pending-reboot.ps1* Script check-pending-reboot.ps1 @@ -72,9 +72,9 @@ if (Test-RegistryValue -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netlogon" $Reason += ", found registry entry '...\CurrentControlSet\Services\Netlogon' with 'AvoidSpnSet'" } if ($Reason -ne "") { - "⚠️ Pending reboot ($($Reason.substring(2)))." + "⚠️ Pending reboot ($($Reason.substring(2)))" } else { - "✅ No pending reboot." + "✅ No pending reboot" } exit 0 # success ``` diff --git a/Docs/check-ping.md b/Docs/check-ping.md index 9ded8e18..554f9039 100644 --- a/Docs/check-ping.md +++ b/Docs/check-ping.md @@ -1,4 +1,4 @@ -## The *check-ping.ps1* PowerShell Script +## The *check-ping.ps1* Script This PowerShell script checks the ping latency from the local computer to some Internet hosts. @@ -67,7 +67,7 @@ try { $Avg += $Latency } $Avg /= $Pings.count - "✅ Ping is $($Avg)ms average, $($Min)ms min, $($Max)ms max." + "✅ Ping is $($Avg)ms average, $($Min)ms min, $($Max)ms max" exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/check-powershell.md b/Docs/check-powershell.md new file mode 100644 index 00000000..421479bb --- /dev/null +++ b/Docs/check-powershell.md @@ -0,0 +1,59 @@ +## The *check-powershell.ps1* Script + +This PowerShell script queries and lists details of PowerShell. + +## Parameters +```powershell +check-powershell.ps1 [] + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +## Example +```powershell +PS> ./check-powershell + +``` + +## Notes +Author: Markus Fleschutz | License: CC0 + +## Related Links +https://github.com/fleschutz/PowerShell + +## Source Code +```powershell +<# +.SYNOPSIS + Query PowerShell details +.DESCRIPTION + This PowerShell script queries and lists details of PowerShell. +.EXAMPLE + PS> ./check-powershell +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +try { + $Version = $PSVersionTable.PSVersion + $Edition = $PSVersionTable.PSEdition + $NumModules = (Get-Module).Count + $NumAliases = (Get-Alias).Count + if ($IsLinux) { + "✅ PowerShell $Version ($Edition edition) with $NumModules modules and $NumAliases aliases" + } else { + $NumCmdlets = (Get-Command -Command-Type cmdlet).Count + "✅ PowerShell $Version ($Edition edition) with $NumModules modules, $NumCmdlets cmdlets and $NumAliases aliases" + } + exit 0 # success +} catch { + "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 +} +``` + +*Generated by convert-ps2md.ps1 using the comment-based help of check-powershell.ps1* diff --git a/Docs/check-ram.md b/Docs/check-ram.md index 00b62b95..d85e0082 100644 --- a/Docs/check-ram.md +++ b/Docs/check-ram.md @@ -1,4 +1,4 @@ -## The *check-ram.ps1* PowerShell Script +## The *check-ram.ps1* Script check-ram.ps1 @@ -68,7 +68,7 @@ try { [float]$Voltage = $Bank.ConfiguredVoltage / 1000.0 $Manufacturer = $Bank.Manufacturer $Location = "$($Bank.BankLabel)/$($Bank.DeviceLocator)" - "✅ $($Capacity)GB $($Type) by $($Manufacturer): $($Speed)MHz, $($Voltage)V at $Location" + "✅ $($Capacity)GB $($Type) at $($Location) ($($Speed)MHz, $($Voltage)V by $Manufacturer)" } } exit 0 # success diff --git a/Docs/check-repo.md b/Docs/check-repo.md index 70367780..b33a7b3b 100644 --- a/Docs/check-repo.md +++ b/Docs/check-repo.md @@ -1,4 +1,4 @@ -## The *check-repo.ps1* PowerShell Script +## The *check-repo.ps1* Script This PowerShell script verifies the integrity of a local Git repository. diff --git a/Docs/check-santa.md b/Docs/check-santa.md index b0a4e7a1..292ffb9f 100644 --- a/Docs/check-santa.md +++ b/Docs/check-santa.md @@ -1,4 +1,4 @@ -## The *check-santa.ps1* PowerShell Script +## The *check-santa.ps1* Script This PowerShell script checks the time until Saint Nicholas Day and replies by text-to-speech (TTS). diff --git a/Docs/check-smart-devices.md b/Docs/check-smart-devices.md index 0ade6f4e..5fe583eb 100644 --- a/Docs/check-smart-devices.md +++ b/Docs/check-smart-devices.md @@ -1,4 +1,4 @@ -## The *check-smart-devices.ps1* PowerShell Script +## The *check-smart-devices.ps1* Script check-smart-devices.ps1 diff --git a/Docs/check-subnet-mask.md b/Docs/check-subnet-mask.md index 6ae35924..19357432 100644 --- a/Docs/check-subnet-mask.md +++ b/Docs/check-subnet-mask.md @@ -1,4 +1,4 @@ -## The *check-subnet-mask.ps1* PowerShell Script +## The *check-subnet-mask.ps1* Script This PowerShell script checks the given subnet mask for validity. diff --git a/Docs/check-swap-space.md b/Docs/check-swap-space.md index 034d4ccb..9804b07a 100644 --- a/Docs/check-swap-space.md +++ b/Docs/check-swap-space.md @@ -1,4 +1,4 @@ -## The *check-swap-space.ps1* PowerShell Script +## The *check-swap-space.ps1* Script This PowerShell script checks the free swap space. @@ -81,15 +81,15 @@ try { } } if ($Total -eq 0) { - "⚠️ No swap space!" + "⚠️ No swap space configured!" } elseif ($Free -lt $MinLevel) { - "⚠️ Swap space has only $(MB2String $Free) of $(MB2String $Total) left to use!" + "⚠️ Only $(MB2String $Free) of $(MB2String $Total) swap space left to use!" } elseif ($Used -eq 0) { - "✅ Swap space of $(MB2String $Total) is unused." + "✅ Swap space with $(MB2String $Total) reserved" } elseif ($Used -lt $Free) { - "✅ Swap space uses $(MB2String $Used) of $(MB2String $Total)." + "✅ Swap space uses $(MB2String $Used) of $(MB2String $Total)" } else { - "✅ Swap space has $(MB2String $Free) of $(MB2String $Total) left." + "✅ Swap space has $(MB2String $Free) of $(MB2String $Total) left to use" } exit 0 # success } catch { diff --git a/Docs/check-symlinks.md b/Docs/check-symlinks.md index b5bf6bea..49cc9dc2 100644 --- a/Docs/check-symlinks.md +++ b/Docs/check-symlinks.md @@ -1,4 +1,4 @@ -## The *check-symlinks.ps1* PowerShell Script +## The *check-symlinks.ps1* Script This PowerShell script checks every symbolic link in a folder (including subfolders). It returns the number of broken symlinks as exit value. diff --git a/Docs/check-time-zone.md b/Docs/check-time-zone.md index afbc1b42..4c107baa 100644 --- a/Docs/check-time-zone.md +++ b/Docs/check-time-zone.md @@ -1,4 +1,4 @@ -## The *check-time-zone.ps1* PowerShell Script +## The *check-time-zone.ps1* Script This PowerShell script determines and prints the current time zone. diff --git a/Docs/check-uptime.md b/Docs/check-uptime.md index a073555d..9b3c385a 100644 --- a/Docs/check-uptime.md +++ b/Docs/check-uptime.md @@ -1,4 +1,4 @@ -## The *check-uptime.ps1* PowerShell Script +## The *check-uptime.ps1* Script This PowerShell script queries and prints the uptime. diff --git a/Docs/check-vpn.md b/Docs/check-vpn.md index c383ca4b..39248bb6 100644 --- a/Docs/check-vpn.md +++ b/Docs/check-vpn.md @@ -1,4 +1,4 @@ -## The *check-vpn.ps1* PowerShell Script +## The *check-vpn.ps1* Script This PowerShell script queries and prints the status of any VPN connection. @@ -45,11 +45,11 @@ try { } else { $Connections = (Get-VPNConnection) foreach($Connection in $Connections) { - "✅ VPN '$($Connection.Name)' is $($Connection.ConnectionStatus)." + "✅ VPN '$($Connection.Name)' is $($Connection.ConnectionStatus)" $NoVPN = $false } } - if ($NoVPN) { "⚠️ No VPN connection." } + if ($NoVPN) { "⚠️ No VPN connection" } exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/check-weather.md b/Docs/check-weather.md index 94b5b982..5b47a3c9 100644 --- a/Docs/check-weather.md +++ b/Docs/check-weather.md @@ -1,4 +1,4 @@ -## The *check-weather.ps1* PowerShell Script +## The *check-weather.ps1* Script This PowerShell script checks the current weather report. diff --git a/Docs/check-week.md b/Docs/check-week.md index e4d7f388..42a3a752 100644 --- a/Docs/check-week.md +++ b/Docs/check-week.md @@ -1,4 +1,4 @@ -## The *check-week.ps1* PowerShell Script +## The *check-week.ps1* Script This PowerShell script determines and speaks the current week number by text-to-speech (TTS). diff --git a/Docs/check-wind.md b/Docs/check-wind.md index cf1803d1..25f40976 100644 --- a/Docs/check-wind.md +++ b/Docs/check-wind.md @@ -1,4 +1,4 @@ -## The *check-wind.ps1* PowerShell Script +## The *check-wind.ps1* Script This PowerShell script determines the current wind conditions and replies by text-to-speech (TTS). diff --git a/Docs/check-windows-system-files.md b/Docs/check-windows-system-files.md index eb0ff13b..d40bb0f9 100644 --- a/Docs/check-windows-system-files.md +++ b/Docs/check-windows-system-files.md @@ -1,4 +1,4 @@ -## The *check-windows-system-files.ps1* PowerShell Script +## The *check-windows-system-files.ps1* Script This PowerShell script checks the validity of the Windows system files. It requires admin rights. diff --git a/Docs/check-xml-file.md b/Docs/check-xml-file.md index 2d4986ce..7624352d 100644 --- a/Docs/check-xml-file.md +++ b/Docs/check-xml-file.md @@ -1,4 +1,4 @@ -## The *check-xml-file.ps1* PowerShell Script +## The *check-xml-file.ps1* Script This PowerShell script checks the given XML file for validity. diff --git a/Docs/clean-repo.md b/Docs/clean-repo.md index 07858063..125c22a8 100644 --- a/Docs/clean-repo.md +++ b/Docs/clean-repo.md @@ -1,4 +1,4 @@ -## The *clean-repo.ps1* PowerShell Script +## The *clean-repo.ps1* Script This PowerShell script deletes all untracked files and folders in a Git repository (including submodules). NOTE: To be used with care! This cannot be undone! @@ -61,7 +61,7 @@ try { if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" } $RepoDirName = (Get-Item "$RepoDir").Name - "⏳ (2/4) Checking folder 📂$RepoDirName..." + "⏳ (2/4) Checking Git repository 📂$RepoDirName..." if (-not(Test-Path "$RepoDir" -pathType container)) { throw "Can't access folder '$RepoDir' - maybe a typo or missing folder permissions?" } "⏳ (3/4) Removing untracked files in repository..." @@ -77,7 +77,7 @@ try { if ($lastExitCode -ne "0") { throw "'git clean' in the submodules failed with exit code $lastExitCode" } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ cleaned 📂$RepoDirName repo in $Elapsed sec" + "✔️ cleaned Git repository 📂$RepoDirName in $Elapsed sec" exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/clean-repos.md b/Docs/clean-repos.md index d413505d..140e02d6 100644 --- a/Docs/clean-repos.md +++ b/Docs/clean-repos.md @@ -1,4 +1,4 @@ -## The *clean-repos.ps1* PowerShell Script +## The *clean-repos.ps1* Script This PowerShell script cleans all Git repositories in a folder from untracked files (including submodules). @@ -54,31 +54,31 @@ param([string]$ParentDir = "$PWD") try { $StopWatch = [system.diagnostics.stopwatch]::startNew() - if (-not(test-path "$ParentDir" -pathType container)) { throw "Can't access directory: $ParentDir" } + Write-Host "⏳ (1) Searching for Git executable... " -noNewline + & git --version + if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" } - $Null = (git --version) - if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" } + $ParentDirName = (Get-Item "$ParentDir").Name + Write-Host "⏳ (2) Checking parent folder 📂$ParentDirName... " -noNewline + if (-not(Test-Path "$ParentDir" -pathType container)) { throw "Can't access folder: $ParentDir" } + $Folders = (Get-ChildItem "$ParentDir" -attributes Directory) + $NumFolders = $Folders.Count + Write-Host "$NumFolders subfolders found" - $Folders = (get-childItem "$ParentDir" -attributes Directory) - $FolderCount = $Folders.Count - $ParentDirName = (get-item "$ParentDir").Name - "Found $FolderCount subfolders in 📂$ParentDirName, cleaning them from untracked files..." - - [int]$Step = 1 + [int]$Step = 2 foreach ($Folder in $Folders) { - $FolderName = (get-item "$Folder").Name - "⏳ Step $Step/$($FolderCount): Cleaning 📂$FolderName..." + $FolderName = (Get-Item "$Folder").Name + $Step++ + "⏳ ($Step/$($NumFolders + 2)) Cleaning 📂$FolderName..." & git -C "$Folder" clean -xfd -f # force + recurse into dirs + don't use the standard ignore rules if ($lastExitCode -ne "0") { throw "'git clean -xfd -f' failed with exit code $lastExitCode" } & git -C "$Folder" submodule foreach --recursive git clean -xfd -f if ($lastExitCode -ne "0") { throw "'git clean -xfd -f' in submodules failed with exit code $lastExitCode" } - - $Step++ } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ cleaned $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec" + "✔️ cleaned $NumFolders Git repositories at 📂$ParentDirName in $Elapsed sec." exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/clear-dns-cache.md b/Docs/clear-dns-cache.md index dc984da6..3239f7c8 100644 --- a/Docs/clear-dns-cache.md +++ b/Docs/clear-dns-cache.md @@ -1,4 +1,4 @@ -## The *clear-dns-cache.ps1* PowerShell Script +## The *clear-dns-cache.ps1* Script This PowerShell script clears the DNS client cache of the local computer. diff --git a/Docs/clear-recycle-bin.md b/Docs/clear-recycle-bin.md index 48ff8bd5..f36d0ebb 100644 --- a/Docs/clear-recycle-bin.md +++ b/Docs/clear-recycle-bin.md @@ -1,4 +1,4 @@ -## The *clear-recycle-bin.ps1* PowerShell Script +## The *clear-recycle-bin.ps1* Script This PowerShell script removes the content of the recycle bin folder permanently. IMPORTANT NOTE: this cannot be undo! diff --git a/Docs/clone-repos.md b/Docs/clone-repos.md index 05f01312..b5b253e6 100644 --- a/Docs/clone-repos.md +++ b/Docs/clone-repos.md @@ -1,4 +1,4 @@ -## The *clone-repos.ps1* PowerShell Script +## The *clone-repos.ps1* Script This PowerShell script clones well-known Git repositories into a folder. @@ -39,7 +39,7 @@ https://github.com/fleschutz/PowerShell .DESCRIPTION This PowerShell script clones well-known Git repositories into a folder. .PARAMETER folder - Specifies the target folder + Specifies the target folder (default is current working directory) .EXAMPLE PS> ./clone-repos C:\Repos .LINK @@ -53,17 +53,17 @@ param([string]$FolderPath = "$PWD") try { $StopWatch = [system.diagnostics.stopwatch]::startNew() - "⏳ Step 1 - Searching for Git executable..." + Write-Host "⏳ (1) Searching for Git executable... " -noNewline & git --version if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" } - "⏳ Step 2 - Loading database table in Data/git-repos.csv..." + Write-Host "⏳ (2) Loading database table from Data/git-repos.csv... " -noNewline $Table = Import-CSV "$PSScriptRoot/../Data/git-repos.csv" $NumEntries = $Table.count - "Found $NumEntries entries." + Write-Host "$NumEntries entries found" $ParentFolderName = (Get-Item "$FolderPath").Name - "⏳ Step 3 - Checking folder 📂$ParentFolderName..." + "⏳ (3) Checking target folder 📂$ParentFolderName..." if (-not(Test-Path "$FolderPath" -pathType container)) { throw "Can't access directory: $FolderPath" } @@ -71,23 +71,24 @@ try { [int]$Cloned = 0 [int]$Skipped = 0 foreach($Row in $Table) { - [string]$FolderName = $Row.FolderName - [string]$Branch = $Row.Branch - [string]$Full = $Row.Full + [string]$Group = $Row.GROUP + [string]$FolderName = $Row.FOLDERNAME + [string]$Branch = $Row.BRANCH + [string]$Full = $Row.FULL [string]$URL = $Row.URL $Step++ - if (test-path "$FolderPath/$FolderName" -pathType container) { - "⏳ Step $Step/$($NumEntries + 4) - Skipping 📂$($FolderName) (exists already)..." + if (Test-Path "$FolderPath/$FolderName" -pathType container) { + "⏳ ($Step/$($NumEntries + 4)) Skipping 📂$($FolderName), it exists already..." $Skipped++ continue } if ($Full -eq "yes") { - "⏳ Step $Step/$($NumEntries + 4) - Cloning into 📂$($FolderName) ($Branch branch with full history)..." + "⏳ ($Step/$($NumEntries + 4)) Cloning into 📂$($FolderName) ($Branch branch with full history)..." & git clone --branch "$Branch" --recurse-submodules "$URL" "$FolderPath/$FolderName" if ($lastExitCode -ne "0") { throw "'git clone --branch $Branch $URL' failed with exit code $lastExitCode" } } else { - "⏳ Step $Step/$($NumEntries + 4) - Cloning into 📂$FolderName ($Branch branch only)..." + "⏳ ($Step/$($NumEntries + 4)) Cloning $Branch branch into 📂$FolderName..." & git clone --branch "$Branch" --single-branch --recurse-submodules "$URL" "$FolderPath/$FolderName" if ($lastExitCode -ne "0") { throw "'git clone --branch $Branch $URL' failed with exit code $lastExitCode" } } @@ -95,9 +96,9 @@ try { } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds if ($Cloned -eq 1) { - "✔️ $Cloned repo cloned into 📂$ParentFolderName ($Skipped skipped) in $Elapsed sec" + "✔️ 1 Git repository cloned into 📂$ParentFolderName in $Elapsed sec ($Skipped skipped)." } else { - "✔️ $Cloned repos cloned into 📂$ParentFolderName ($Skipped skipped) in $Elapsed sec" + "✔️ $Cloned Git repos cloned into 📂$ParentFolderName in $Elapsed sec ($Skipped skipped)." } exit 0 # success } catch { diff --git a/Docs/close-calculator.md b/Docs/close-calculator.md index fedfc2f8..e61b8dfa 100644 --- a/Docs/close-calculator.md +++ b/Docs/close-calculator.md @@ -1,4 +1,4 @@ -## The *close-calculator.ps1* PowerShell Script +## The *close-calculator.ps1* Script This PowerShell script closes the calculator application gracefully. diff --git a/Docs/close-chrome.md b/Docs/close-chrome.md index 7ad3fbb9..a17b482b 100644 --- a/Docs/close-chrome.md +++ b/Docs/close-chrome.md @@ -1,4 +1,4 @@ -## The *close-chrome.ps1* PowerShell Script +## The *close-chrome.ps1* Script This PowerShell script closes the Google Chrome Web browser gracefully. diff --git a/Docs/close-cortana.md b/Docs/close-cortana.md index a9a58126..88ca6079 100644 --- a/Docs/close-cortana.md +++ b/Docs/close-cortana.md @@ -1,4 +1,4 @@ -## The *close-cortana.ps1* PowerShell Script +## The *close-cortana.ps1* Script This PowerShell script closes Microsoft's Cortana application gracefully. diff --git a/Docs/close-edge.md b/Docs/close-edge.md index 0e26aaef..e0d0a923 100644 --- a/Docs/close-edge.md +++ b/Docs/close-edge.md @@ -1,4 +1,4 @@ -## The *close-edge.ps1* PowerShell Script +## The *close-edge.ps1* Script This PowerShell script closes the Microsoft Edge Web browser gracefully. diff --git a/Docs/close-file-explorer.md b/Docs/close-file-explorer.md index 5a15d8b9..3eb565cd 100644 --- a/Docs/close-file-explorer.md +++ b/Docs/close-file-explorer.md @@ -1,4 +1,4 @@ -## The *close-file-explorer.ps1* PowerShell Script +## The *close-file-explorer.ps1* Script This PowerShell script closes the Microsoft File Explorer application gracefully. diff --git a/Docs/close-firefox.md b/Docs/close-firefox.md index 768513e0..faebb330 100644 --- a/Docs/close-firefox.md +++ b/Docs/close-firefox.md @@ -1,4 +1,4 @@ -## The *close-firefox.ps1* PowerShell Script +## The *close-firefox.ps1* Script This PowerShell script closes the Mozilla Firefox Web browser gracefully. diff --git a/Docs/close-git-extensions.md b/Docs/close-git-extensions.md index aca95737..4a472aca 100644 --- a/Docs/close-git-extensions.md +++ b/Docs/close-git-extensions.md @@ -1,4 +1,4 @@ -## The *close-git-extensions.ps1* PowerShell Script +## The *close-git-extensions.ps1* Script This PowerShell script closes the Git Extensions application gracefully. diff --git a/Docs/close-magnifier.md b/Docs/close-magnifier.md index 93aa9982..3a69c459 100644 --- a/Docs/close-magnifier.md +++ b/Docs/close-magnifier.md @@ -1,4 +1,4 @@ -## The *close-magnifier.ps1* PowerShell Script +## The *close-magnifier.ps1* Script This PowerShell script closes the Windows Screen Magnifier application gracefully. diff --git a/Docs/close-microsoft-paint.md b/Docs/close-microsoft-paint.md index 614061fc..c6fe5c78 100644 --- a/Docs/close-microsoft-paint.md +++ b/Docs/close-microsoft-paint.md @@ -1,4 +1,4 @@ -## The *close-microsoft-paint.ps1* PowerShell Script +## The *close-microsoft-paint.ps1* Script This PowerShell script closes the Microsoft Paint application gracefully. diff --git a/Docs/close-microsoft-store.md b/Docs/close-microsoft-store.md index 3f60f75a..1c5acd28 100644 --- a/Docs/close-microsoft-store.md +++ b/Docs/close-microsoft-store.md @@ -1,4 +1,4 @@ -## The *close-microsoft-store.ps1* PowerShell Script +## The *close-microsoft-store.ps1* Script This PowerShell script closes the Microsoft Store application gracefully. diff --git a/Docs/close-netflix.md b/Docs/close-netflix.md index 5886566e..e3d90552 100644 --- a/Docs/close-netflix.md +++ b/Docs/close-netflix.md @@ -1,4 +1,4 @@ -## The *close-netflix.ps1* PowerShell Script +## The *close-netflix.ps1* Script This PowerShell script closes the Netflix application gracefully. diff --git a/Docs/close-note-pad.md b/Docs/close-note-pad.md index 90991ce5..4ebc463b 100644 --- a/Docs/close-note-pad.md +++ b/Docs/close-note-pad.md @@ -1,4 +1,4 @@ -## The *close-note-pad.ps1* PowerShell Script +## The *close-note-pad.ps1* Script This PowerShell script closes the Notepad application gracefully. diff --git a/Docs/close-obs-studio.md b/Docs/close-obs-studio.md index 3a94435b..c43702a2 100644 --- a/Docs/close-obs-studio.md +++ b/Docs/close-obs-studio.md @@ -1,4 +1,4 @@ -## The *close-obs-studio.ps1* PowerShell Script +## The *close-obs-studio.ps1* Script This PowerShell script closes the OBS Studio application gracefully. diff --git a/Docs/close-one-calendar.md b/Docs/close-one-calendar.md index 21dfde13..83d2c255 100644 --- a/Docs/close-one-calendar.md +++ b/Docs/close-one-calendar.md @@ -1,4 +1,4 @@ -## The *close-one-calendar.ps1* PowerShell Script +## The *close-one-calendar.ps1* Script This PowerShell script closes the OneCalendar application gracefully. diff --git a/Docs/close-outlook.md b/Docs/close-outlook.md index c053f65b..8c4e32f1 100644 --- a/Docs/close-outlook.md +++ b/Docs/close-outlook.md @@ -1,4 +1,4 @@ -## The *close-outlook.ps1* PowerShell Script +## The *close-outlook.ps1* Script This PowerShell script closes the Microsoft Outlook email application gracefully. diff --git a/Docs/close-paint-three-d.md b/Docs/close-paint-three-d.md index 2c7cd5f4..e63bfc11 100644 --- a/Docs/close-paint-three-d.md +++ b/Docs/close-paint-three-d.md @@ -1,4 +1,4 @@ -## The *close-paint-three-d.ps1* PowerShell Script +## The *close-paint-three-d.ps1* Script This PowerShell script closes the Paint 3D application gracefully. diff --git a/Docs/close-program.md b/Docs/close-program.md index 121fd797..2b93b1c9 100644 --- a/Docs/close-program.md +++ b/Docs/close-program.md @@ -1,4 +1,4 @@ -## The *close-program.ps1* PowerShell Script +## The *close-program.ps1* Script This PowerShell script closes a program's processes gracefully. diff --git a/Docs/close-serenade.md b/Docs/close-serenade.md index c5dbd1f2..bacfaec1 100644 --- a/Docs/close-serenade.md +++ b/Docs/close-serenade.md @@ -1,4 +1,4 @@ -## The *close-serenade.ps1* PowerShell Script +## The *close-serenade.ps1* Script This PowerShell script closes the Serenade.ai application gracefully. diff --git a/Docs/close-snipping-tool.md b/Docs/close-snipping-tool.md index 8c0d2755..01f126cb 100644 --- a/Docs/close-snipping-tool.md +++ b/Docs/close-snipping-tool.md @@ -1,4 +1,4 @@ -## The *close-snipping-tool.ps1* PowerShell Script +## The *close-snipping-tool.ps1* Script This PowerShell script closes the Snipping Tool application gracefully. diff --git a/Docs/close-spotify.md b/Docs/close-spotify.md index e7d6c110..094487fe 100644 --- a/Docs/close-spotify.md +++ b/Docs/close-spotify.md @@ -1,4 +1,4 @@ -## The *close-spotify.ps1* PowerShell Script +## The *close-spotify.ps1* Script This PowerShell script closes the Spotify application gracefully. diff --git a/Docs/close-task-manager.md b/Docs/close-task-manager.md index 37ad0fbb..4523b406 100644 --- a/Docs/close-task-manager.md +++ b/Docs/close-task-manager.md @@ -1,4 +1,4 @@ -## The *close-task-manager.ps1* PowerShell Script +## The *close-task-manager.ps1* Script This PowerShell script closes the Task Manager application gracefully. diff --git a/Docs/close-three-d-viewer.md b/Docs/close-three-d-viewer.md index 7c599bc3..c91c07a3 100644 --- a/Docs/close-three-d-viewer.md +++ b/Docs/close-three-d-viewer.md @@ -1,4 +1,4 @@ -## The *close-three-d-viewer.ps1* PowerShell Script +## The *close-three-d-viewer.ps1* Script This PowerShell script closes the 3D-Viewer application gracefully. diff --git a/Docs/close-thunderbird.md b/Docs/close-thunderbird.md index 3d99c41d..d1712b8f 100644 --- a/Docs/close-thunderbird.md +++ b/Docs/close-thunderbird.md @@ -1,4 +1,4 @@ -## The *close-thunderbird.ps1* PowerShell Script +## The *close-thunderbird.ps1* Script This PowerShell script closes the Mozilla Thunderbird email application gracefully. diff --git a/Docs/close-visual-studio.md b/Docs/close-visual-studio.md index 6968f927..4d76acdf 100644 --- a/Docs/close-visual-studio.md +++ b/Docs/close-visual-studio.md @@ -1,4 +1,4 @@ -## The *close-visual-studio.ps1* PowerShell Script +## The *close-visual-studio.ps1* Script This PowerShell script closes the Microsoft Visual Studio application gracefully. diff --git a/Docs/close-vlc.md b/Docs/close-vlc.md index dae2b052..93a44af0 100644 --- a/Docs/close-vlc.md +++ b/Docs/close-vlc.md @@ -1,4 +1,4 @@ -## The *close-vlc.ps1* PowerShell Script +## The *close-vlc.ps1* Script This PowerShell script closes the VLC media player application gracefully. diff --git a/Docs/close-windows-terminal.md b/Docs/close-windows-terminal.md index dc94737f..c3c44b6c 100644 --- a/Docs/close-windows-terminal.md +++ b/Docs/close-windows-terminal.md @@ -1,4 +1,4 @@ -## The *close-windows-terminal.ps1* PowerShell Script +## The *close-windows-terminal.ps1* Script This PowerShell script closes the Windows Terminal application gracefully. diff --git a/Docs/configure-git.md b/Docs/configure-git.md index df7635f1..fbc78e33 100644 --- a/Docs/configure-git.md +++ b/Docs/configure-git.md @@ -1,4 +1,4 @@ -## The *configure-git.ps1* PowerShell Script +## The *configure-git.ps1* Script This PowerShell script configures the user settings for Git. diff --git a/Docs/connect-vpn.md b/Docs/connect-vpn.md index b6b6eada..28ec2530 100644 --- a/Docs/connect-vpn.md +++ b/Docs/connect-vpn.md @@ -1,4 +1,4 @@ -## The *connect-vpn.ps1* PowerShell Script +## The *connect-vpn.ps1* Script This PowerShell script tries to connect to the VPN. diff --git a/Docs/convert-csv2txt.md b/Docs/convert-csv2txt.md index 30c27c7c..229d04a1 100644 --- a/Docs/convert-csv2txt.md +++ b/Docs/convert-csv2txt.md @@ -1,4 +1,4 @@ -## The *convert-csv2txt.ps1* PowerShell Script +## The *convert-csv2txt.ps1* Script This PowerShell script converts a .CSV file into a text file. diff --git a/Docs/convert-image2ascii.md b/Docs/convert-image2ascii.md index 6306e8cb..fd01e5bc 100644 --- a/Docs/convert-image2ascii.md +++ b/Docs/convert-image2ascii.md @@ -1,4 +1,4 @@ -## The *convert-image2ascii.ps1* PowerShell Script +## The *convert-image2ascii.ps1* Script convert-image2ascii.ps1 diff --git a/Docs/convert-mysql2csv.md b/Docs/convert-mysql2csv.md index 8bcea511..a9ab128d 100644 --- a/Docs/convert-mysql2csv.md +++ b/Docs/convert-mysql2csv.md @@ -1,4 +1,4 @@ -## The *convert-mysql2csv.ps1* PowerShell Script +## The *convert-mysql2csv.ps1* Script This PowerShell script converts a MySQL database table to a .CSV file. diff --git a/Docs/convert-ps2bat.md b/Docs/convert-ps2bat.md index b1a53264..fa958292 100644 --- a/Docs/convert-ps2bat.md +++ b/Docs/convert-ps2bat.md @@ -1,4 +1,4 @@ -## The *convert-ps2bat.ps1* PowerShell Script +## The *convert-ps2bat.ps1* Script This PowerShell script converts one or more PowerShell scripts to .bat batch files. diff --git a/Docs/convert-ps2md.md b/Docs/convert-ps2md.md index 6769f683..5f6da1cb 100644 --- a/Docs/convert-ps2md.md +++ b/Docs/convert-ps2md.md @@ -1,4 +1,4 @@ -## The *convert-ps2md.ps1* PowerShell Script +## The *convert-ps2md.ps1* Script This PowerShell script converts the comment-based help of a PowerShell script to Markdown. @@ -36,7 +36,7 @@ https://github.com/fleschutz/PowerShell ```powershell <# .SYNOPSIS - Converts PowerShell script metadata to Markdown + Converts a PowerShell script to Markdown .DESCRIPTION This PowerShell script converts the comment-based help of a PowerShell script to Markdown. .PARAMETER filename @@ -92,7 +92,7 @@ try { $full = Get-Help $filename -Full - "## The *$($ScriptName)* PowerShell Script" + "## The *$($ScriptName)* Script" $Description = ($full.description | Out-String).Trim() if ($Description -ne "") { diff --git a/Docs/convert-sql2csv.md b/Docs/convert-sql2csv.md index 10d3b4e0..1c91ccd7 100644 --- a/Docs/convert-sql2csv.md +++ b/Docs/convert-sql2csv.md @@ -1,4 +1,4 @@ -## The *convert-sql2csv.ps1* PowerShell Script +## The *convert-sql2csv.ps1* Script This PowerShell script converts a SQL database table to a .CSV file. diff --git a/Docs/convert-txt2wav.md b/Docs/convert-txt2wav.md index cc0a2539..7d5248b2 100644 --- a/Docs/convert-txt2wav.md +++ b/Docs/convert-txt2wav.md @@ -1,4 +1,4 @@ -## The *convert-txt2wav.ps1* PowerShell Script +## The *convert-txt2wav.ps1* Script This PowerShell script converts text to a .WAV audio file. diff --git a/Docs/copy-photos-sorted.md b/Docs/copy-photos-sorted.md index 0a344d4c..c4ee450a 100644 --- a/Docs/copy-photos-sorted.md +++ b/Docs/copy-photos-sorted.md @@ -1,4 +1,4 @@ -## The *copy-photos-sorted.ps1* PowerShell Script +## The *copy-photos-sorted.ps1* Script copy-photos-sorted.ps1 [[-SourceDir] ] [[-TargetDir] ] diff --git a/Docs/count-lines-of-code.md b/Docs/count-lines-of-code.md index b8dcc629..eb3d4e1c 100644 --- a/Docs/count-lines-of-code.md +++ b/Docs/count-lines-of-code.md @@ -1,4 +1,4 @@ -## The *count-lines-of-code.ps1* PowerShell Script +## The *count-lines-of-code.ps1* Script This PowerShell script counts the number of code lines in a folder (including subfolders). diff --git a/Docs/decrypt-file.md b/Docs/decrypt-file.md index 3f7de9a8..06013c62 100644 --- a/Docs/decrypt-file.md +++ b/Docs/decrypt-file.md @@ -1,4 +1,4 @@ -## The *decrypt-file.ps1* PowerShell Script +## The *decrypt-file.ps1* Script This PowerShell script decrypts a file using the given password and AES encryption. diff --git a/Docs/disconnect-vpn.md b/Docs/disconnect-vpn.md index 7f3c7846..7d4acdaa 100644 --- a/Docs/disconnect-vpn.md +++ b/Docs/disconnect-vpn.md @@ -1,4 +1,4 @@ -## The *disconnect-vpn.ps1* PowerShell Script +## The *disconnect-vpn.ps1* Script This PowerShell script disconnects the active VPN connection. diff --git a/Docs/display-time.md b/Docs/display-time.md index 61136685..4df50214 100644 --- a/Docs/display-time.md +++ b/Docs/display-time.md @@ -1,4 +1,4 @@ -## The *display-time.ps1* PowerShell Script +## The *display-time.ps1* Script This PowerShell script displays the current time (for 10 seconds by default) diff --git a/Docs/download-dir.md b/Docs/download-dir.md index 4cd43508..965b6f25 100644 --- a/Docs/download-dir.md +++ b/Docs/download-dir.md @@ -1,4 +1,4 @@ -## The *download-dir.ps1* PowerShell Script +## The *download-dir.ps1* Script This PowerShell script downloads a folder (including subfolders) from the given URL. diff --git a/Docs/download-file.md b/Docs/download-file.md index 5b79c35a..775de67d 100644 --- a/Docs/download-file.md +++ b/Docs/download-file.md @@ -1,4 +1,4 @@ -## The *download-file.ps1* PowerShell Script +## The *download-file.ps1* Script This PowerShell script downloads a file from the given URL diff --git a/Docs/edit.md b/Docs/edit.md index a0417bab..2955df79 100644 --- a/Docs/edit.md +++ b/Docs/edit.md @@ -1,4 +1,4 @@ -## The *edit.ps1* PowerShell Script +## The *edit.ps1* Script This PowerShell script opens a text editor to edit the given file. diff --git a/Docs/enable-crash-dumps.md b/Docs/enable-crash-dumps.md index d98b019f..d0683089 100644 --- a/Docs/enable-crash-dumps.md +++ b/Docs/enable-crash-dumps.md @@ -1,4 +1,4 @@ -## The *enable-crash-dumps.ps1* PowerShell Script +## The *enable-crash-dumps.ps1* Script This PowerShell script enables the writing of crash dumps. diff --git a/Docs/enable-god-mode.md b/Docs/enable-god-mode.md index 49bd3def..0bf145d9 100644 --- a/Docs/enable-god-mode.md +++ b/Docs/enable-god-mode.md @@ -1,4 +1,4 @@ -## The *enable-god-mode.ps1* PowerShell Script +## The *enable-god-mode.ps1* Script This PowerShell script enables the god mode. It adds a new icon to the desktop. diff --git a/Docs/encrypt-file.md b/Docs/encrypt-file.md index 243d5384..a1c222f8 100644 --- a/Docs/encrypt-file.md +++ b/Docs/encrypt-file.md @@ -1,4 +1,4 @@ -## The *encrypt-file.ps1* PowerShell Script +## The *encrypt-file.ps1* Script This PowerShell script encrypts a file using the given password and AES encryption. diff --git a/Docs/enter-chat.md b/Docs/enter-chat.md index d6b59f53..f580916d 100644 --- a/Docs/enter-chat.md +++ b/Docs/enter-chat.md @@ -1,4 +1,4 @@ -## The *enter-chat.ps1* PowerShell Script +## The *enter-chat.ps1* Script This PowerShell script enters a chat using a common network shared file. diff --git a/Docs/export-to-manuals.md b/Docs/export-to-manuals.md index 46654b9f..f64b4f83 100644 --- a/Docs/export-to-manuals.md +++ b/Docs/export-to-manuals.md @@ -1,4 +1,4 @@ -## The *export-to-manuals.ps1* PowerShell Script +## The *export-to-manuals.ps1* Script This PowerShell script exports the comment based help of all PowerShell scripts as manuals. @@ -30,8 +30,9 @@ export-to-manuals.ps1 [[-FilePattern] ] [[-TargetDir] ] [ ./export-to-manuals.ps1 -Found 264 scripts, exporting them to /home/markus/PowerShell/Docs... -✔️ exported 264 PowerShell scripts in 28 sec +⏳ (1/2) Reading scripts from: /home/mf/PowerShell/Scripts/*.ps1... +⏳ (2/2) Exporting manuals to: /home/mf/PowerShell/Scripts/../Docs... +✔️ exported 518 PowerShell scripts in 28 sec ``` @@ -50,8 +51,9 @@ https://github.com/fleschutz/PowerShell This PowerShell script exports the comment based help of all PowerShell scripts as manuals. .EXAMPLE PS> ./export-to-manuals.ps1 - Found 264 scripts, exporting them to /home/markus/PowerShell/Docs... - ✔️ exported 264 PowerShell scripts in 28 sec + ⏳ (1/2) Reading scripts from: /home/mf/PowerShell/Scripts/*.ps1... + ⏳ (2/2) Exporting manuals to: /home/mf/PowerShell/Scripts/../Docs... + ✔️ exported 518 PowerShell scripts in 28 sec .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -65,11 +67,10 @@ param([string]$FilePattern = "$PSScriptRoot/*.ps1", [string]$TargetDir = "$PSScr try { $StopWatch = [system.diagnostics.stopwatch]::startNew() - Write-Host "⏳ (1/2) Reading scripts from: $FilePattern... " -noNewline + "⏳ (1/2) Reading scripts from: $FilePattern..." $Scripts = Get-ChildItem "$FilePattern" - Write-Host "found $($Scripts.Count) scripts" - Write-Host "⏳ (2/2) Exporting manuals to: $TargetDir..." + "⏳ (2/2) Exporting manuals to: $TargetDir..." foreach ($Script in $Scripts) { & "$PSScriptRoot/convert-ps2md.ps1" "$Script" > "$TargetDir/$($Script.BaseName).md" } diff --git a/Docs/fetch-repo.md b/Docs/fetch-repo.md index a23ded57..9f3aa1f0 100644 --- a/Docs/fetch-repo.md +++ b/Docs/fetch-repo.md @@ -1,4 +1,4 @@ -## The *fetch-repo.ps1* PowerShell Script +## The *fetch-repo.ps1* Script This PowerShell script fetches updates for a local Git repository (including submodules). @@ -23,6 +23,10 @@ fetch-repo.ps1 [[-RepoDir] ] [] ## Example ```powershell PS> ./fetch-repo +⏳ (1/3) Searching for Git executable... git version 2.38.1.windows.1 +⏳ (2/3) Checking Git repository 📂PowerShell... +⏳ (3/3) Fetching updates (including submodules)... +✔️ fetched updates for Git repository 📂PowerShell in 2 sec. ``` @@ -36,13 +40,17 @@ https://github.com/fleschutz/PowerShell ```powershell <# .SYNOPSIS - Fetches updates for a Git repository + Fetches updates for a Git repo .DESCRIPTION This PowerShell script fetches updates for a local Git repository (including submodules). .PARAMETER RepoDir Specifies the path to the Git repository. .EXAMPLE PS> ./fetch-repo + ⏳ (1/3) Searching for Git executable... git version 2.38.1.windows.1 + ⏳ (2/3) Checking Git repository 📂PowerShell... + ⏳ (3/3) Fetching updates (including submodules)... + ✔️ fetched updates for Git repository 📂PowerShell in 2 sec. .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -54,20 +62,20 @@ param([string]$RepoDir = "$PWD") try { $StopWatch = [system.diagnostics.stopwatch]::startNew() - "⏳ Step 1/3 - Searching for Git executable... " + Write-Host "⏳ (1/3) Searching for Git executable... " -noNewline & git --version if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" } $RepoDirName = (Get-Item "$RepoDir").Name - "⏳ Step 2/3 - Checking folder 📂$RepoDirName... " + "⏳ (2/3) Checking Git repository 📂$RepoDirName... " if (!(Test-Path "$RepoDir" -pathType container)) { throw "Can't access folder: $RepoDir" } - "⏳ Step 3/3 - Fetching updates... " + "⏳ (3/3) Fetching updates (including submodules)... " & git -C "$RepoDir" fetch --all --recurse-submodules --prune --prune-tags --force if ($lastExitCode -ne "0") { throw "'git fetch' failed with exit code $lastExitCode" } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ fetched updates for 📂$RepoDirName repo in $Elapsed sec" + "✔️ fetched updates for Git repository 📂$RepoDirName in $Elapsed sec." exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/fetch-repos.md b/Docs/fetch-repos.md index 2ea39a38..c9528cbf 100644 --- a/Docs/fetch-repos.md +++ b/Docs/fetch-repos.md @@ -1,4 +1,4 @@ -## The *fetch-repos.ps1* PowerShell Script +## The *fetch-repos.ps1* Script This PowerShell script fetches updates for all Git repositories in a folder (including submodules). @@ -63,17 +63,16 @@ try { if (-not(Test-Path "$ParentDir" -pathType container)) { throw "Can't access folder: $ParentDir" } $Folders = (Get-ChildItem "$ParentDir" -attributes Directory) $NumFolders = $Folders.Count - Write-Host "$NumFolders subfolders" + Write-Host "$NumFolders subfolders found" - [int]$Step = 3 + [int]$Step = 2 foreach ($Folder in $Folders) { $FolderName = (Get-Item "$Folder").Name - "⏳ ($Step/$($NumFolders + 2)) Fetching into 📂$FolderName..." + $Step++ + Write-Host "⏳ ($Step/$($NumFolders + 2)) Fetching into 📂$FolderName... " & git -C "$Folder" fetch --all --recurse-submodules --prune --prune-tags --force if ($lastExitCode -ne "0") { throw "'git fetch' in $Folder failed with exit code $lastExitCode" } - - $Step++ } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ fetched $NumFolders Git repositories in $Elapsed sec." diff --git a/Docs/get-md5.md b/Docs/get-md5.md index ec5f3032..462d652b 100644 --- a/Docs/get-md5.md +++ b/Docs/get-md5.md @@ -1,4 +1,4 @@ -## The *get-md5.ps1* PowerShell Script +## The *get-md5.ps1* Script diff --git a/Docs/get-sha1.md b/Docs/get-sha1.md index 84f44bdc..e6f8c927 100644 --- a/Docs/get-sha1.md +++ b/Docs/get-sha1.md @@ -1,4 +1,4 @@ -## The *get-sha1.ps1* PowerShell Script +## The *get-sha1.ps1* Script diff --git a/Docs/get-sha256.md b/Docs/get-sha256.md index 1825b487..8496d88a 100644 --- a/Docs/get-sha256.md +++ b/Docs/get-sha256.md @@ -1,4 +1,4 @@ -## The *get-sha256.ps1* PowerShell Script +## The *get-sha256.ps1* Script diff --git a/Docs/hibernate.md b/Docs/hibernate.md index c6586f7a..ec30d116 100644 --- a/Docs/hibernate.md +++ b/Docs/hibernate.md @@ -1,4 +1,4 @@ -## The *hibernate.ps1* PowerShell Script +## The *hibernate.ps1* Script This PowerShell script enables hibernate mode for the local computer immediately. diff --git a/Docs/inspect-exe.md b/Docs/inspect-exe.md index cc30bbf4..36d64d58 100644 --- a/Docs/inspect-exe.md +++ b/Docs/inspect-exe.md @@ -1,4 +1,4 @@ -## The *inspect-exe.ps1* PowerShell Script +## The *inspect-exe.ps1* Script This PowerShell script prints basic information of an executable file. diff --git a/Docs/install-audacity.md b/Docs/install-audacity.md index 6d53d828..371eb18d 100644 --- a/Docs/install-audacity.md +++ b/Docs/install-audacity.md @@ -1,4 +1,4 @@ -## The *install-audacity.ps1* PowerShell Script +## The *install-audacity.ps1* Script This PowerShell script installs Audacity. diff --git a/Docs/install-basic-apps.md b/Docs/install-basic-apps.md index 3b8f136a..52e68db4 100644 --- a/Docs/install-basic-apps.md +++ b/Docs/install-basic-apps.md @@ -1,4 +1,4 @@ -## The *install-basic-apps.ps1* PowerShell Script +## The *install-basic-apps.ps1* Script This PowerShell script installs basic Windows apps (browser, e-mail client, etc). Apps from the Microsoft Store are preferred for automatic updates. diff --git a/Docs/install-chocolatey.md b/Docs/install-chocolatey.md index 6a4db6e7..0769ded0 100644 --- a/Docs/install-chocolatey.md +++ b/Docs/install-chocolatey.md @@ -1,4 +1,4 @@ -## The *install-chocolatey.ps1* PowerShell Script +## The *install-chocolatey.ps1* Script This PowerShell script installs Chocolatey onto the local computer (needs admin rights). diff --git a/Docs/install-chrome-browser.md b/Docs/install-chrome-browser.md index 6152afbb..30311883 100644 --- a/Docs/install-chrome-browser.md +++ b/Docs/install-chrome-browser.md @@ -1,4 +1,4 @@ -## The *install-chrome-browser.ps1* PowerShell Script +## The *install-chrome-browser.ps1* Script This PowerShell script installs the latest Google Chrome Web browser. diff --git a/Docs/install-chrome.md b/Docs/install-chrome.md index d9747197..e1a658d7 100644 --- a/Docs/install-chrome.md +++ b/Docs/install-chrome.md @@ -1,4 +1,4 @@ -## The *install-chrome.ps1* PowerShell Script +## The *install-chrome.ps1* Script This PowerShell script installs the Google Chrome browser. diff --git a/Docs/install-crystal-disk-info.md b/Docs/install-crystal-disk-info.md index 86b4fb70..58a37af5 100644 --- a/Docs/install-crystal-disk-info.md +++ b/Docs/install-crystal-disk-info.md @@ -1,4 +1,4 @@ -## The *install-crystal-disk-info.ps1* PowerShell Script +## The *install-crystal-disk-info.ps1* Script This PowerShell script installs CrystalDiskInfo from the Microsoft Store. diff --git a/Docs/install-crystal-disk-mark.md b/Docs/install-crystal-disk-mark.md index 681ed1d1..7c3ff75c 100644 --- a/Docs/install-crystal-disk-mark.md +++ b/Docs/install-crystal-disk-mark.md @@ -1,4 +1,4 @@ -## The *install-crystal-disk-mark.ps1* PowerShell Script +## The *install-crystal-disk-mark.ps1* Script This PowerShell script installs CrystalDiskMark from the Microsoft Store. diff --git a/Docs/install-discord.md b/Docs/install-discord.md index a4abb15b..e9d6f45e 100644 --- a/Docs/install-discord.md +++ b/Docs/install-discord.md @@ -1,4 +1,4 @@ -## The *install-discord.ps1* PowerShell Script +## The *install-discord.ps1* Script This PowerShell script installs Discord from the Microsoft Store. diff --git a/Docs/install-edge.md b/Docs/install-edge.md index 1bcfc7e4..393c1fb8 100644 --- a/Docs/install-edge.md +++ b/Docs/install-edge.md @@ -1,4 +1,4 @@ -## The *install-edge.ps1* PowerShell Script +## The *install-edge.ps1* Script This PowerShell script installs the Microsoft Edge Browser from the Microsoft Store. diff --git a/Docs/install-firefox.md b/Docs/install-firefox.md index 9dcebf0b..c26a4114 100644 --- a/Docs/install-firefox.md +++ b/Docs/install-firefox.md @@ -1,4 +1,4 @@ -## The *install-firefox.ps1* PowerShell Script +## The *install-firefox.ps1* Script This PowerShell script installs Mozilla Firefox from the Microsoft Store. diff --git a/Docs/install-git-extensions.md b/Docs/install-git-extensions.md index 298b43ae..fe5a336b 100644 --- a/Docs/install-git-extensions.md +++ b/Docs/install-git-extensions.md @@ -1,4 +1,4 @@ -## The *install-git-extensions.ps1* PowerShell Script +## The *install-git-extensions.ps1* Script This PowerShell script installs Git Extensions. diff --git a/Docs/install-git-for-windows.md b/Docs/install-git-for-windows.md index 74f14b2e..a94b75e3 100644 --- a/Docs/install-git-for-windows.md +++ b/Docs/install-git-for-windows.md @@ -1,4 +1,4 @@ -## The *install-git-for-windows.ps1* PowerShell Script +## The *install-git-for-windows.ps1* Script This PowerShell script installs Git for Windows. diff --git a/Docs/install-github-cli.md b/Docs/install-github-cli.md index 1a6b63e3..558a8d25 100644 --- a/Docs/install-github-cli.md +++ b/Docs/install-github-cli.md @@ -1,4 +1,4 @@ -## The *install-github-cli.ps1* PowerShell Script +## The *install-github-cli.ps1* Script This PowerShell script installs GitHub command-line interface (CLI). diff --git a/Docs/install-irfanview.md b/Docs/install-irfanview.md index dbfd05c5..8840bf78 100644 --- a/Docs/install-irfanview.md +++ b/Docs/install-irfanview.md @@ -1,4 +1,4 @@ -## The *install-irfanview.ps1* PowerShell Script +## The *install-irfanview.ps1* Script This PowerShell script installs IrfanView from the Microsoft Store. diff --git a/Docs/install-knot-resolver.md b/Docs/install-knot-resolver.md index 2278579d..031337a5 100644 --- a/Docs/install-knot-resolver.md +++ b/Docs/install-knot-resolver.md @@ -1,4 +1,4 @@ -## The *install-knot-resolver.ps1* PowerShell Script +## The *install-knot-resolver.ps1* Script This PowerShell script installs Knot Resolver. Knot Resolver is a DNS resolver daemon. It needs admin rights. diff --git a/Docs/install-microsoft-teams.md b/Docs/install-microsoft-teams.md index 5744c093..ea9609d8 100644 --- a/Docs/install-microsoft-teams.md +++ b/Docs/install-microsoft-teams.md @@ -1,4 +1,4 @@ -## The *install-microsoft-teams.ps1* PowerShell Script +## The *install-microsoft-teams.ps1* Script This PowerShell script installs Microsoft Teams from the Microsoft Store. diff --git a/Docs/install-netflix.md b/Docs/install-netflix.md index 7711f623..0ef360c9 100644 --- a/Docs/install-netflix.md +++ b/Docs/install-netflix.md @@ -1,4 +1,4 @@ -## The *install-netflix.ps1* PowerShell Script +## The *install-netflix.ps1* Script This PowerShell script installs Netflix from the Microsoft Store. diff --git a/Docs/install-nine-zip.md b/Docs/install-nine-zip.md index 7451f6b6..b5e730db 100644 --- a/Docs/install-nine-zip.md +++ b/Docs/install-nine-zip.md @@ -1,4 +1,4 @@ -## The *install-nine-zip.ps1* PowerShell Script +## The *install-nine-zip.ps1* Script This PowerShell script installs 9 ZIP from the Microsoft Store. diff --git a/Docs/install-obs-studio.md b/Docs/install-obs-studio.md index 3c9bbe0a..5f7f0ab4 100644 --- a/Docs/install-obs-studio.md +++ b/Docs/install-obs-studio.md @@ -1,4 +1,4 @@ -## The *install-obs-studio.ps1* PowerShell Script +## The *install-obs-studio.ps1* Script This PowerShell script installs OBS Studio (admin rights are needed). diff --git a/Docs/install-one-calendar.md b/Docs/install-one-calendar.md index 24633970..51516f13 100644 --- a/Docs/install-one-calendar.md +++ b/Docs/install-one-calendar.md @@ -1,4 +1,4 @@ -## The *install-one-calendar.ps1* PowerShell Script +## The *install-one-calendar.ps1* Script This PowerShell script installs One Calendar from the Microsoft Store. diff --git a/Docs/install-opera-browser.md b/Docs/install-opera-browser.md index 72acde45..665778b2 100644 --- a/Docs/install-opera-browser.md +++ b/Docs/install-opera-browser.md @@ -1,4 +1,4 @@ -## The *install-opera-browser.ps1* PowerShell Script +## The *install-opera-browser.ps1* Script This PowerShell script installs Opera Browser from Microsoft Store. diff --git a/Docs/install-opera-gx.md b/Docs/install-opera-gx.md index b68110df..0ef74a58 100644 --- a/Docs/install-opera-gx.md +++ b/Docs/install-opera-gx.md @@ -1,4 +1,4 @@ -## The *install-opera-gx.ps1* PowerShell Script +## The *install-opera-gx.ps1* Script This PowerShell script installs Opera GX from Microsoft Store. diff --git a/Docs/install-paint-3d.md b/Docs/install-paint-3d.md index 06044cee..445968fb 100644 --- a/Docs/install-paint-3d.md +++ b/Docs/install-paint-3d.md @@ -1,4 +1,4 @@ -## The *install-paint-3d.ps1* PowerShell Script +## The *install-paint-3d.ps1* Script This PowerShell script installs Paint 3D from the Microsoft Store. diff --git a/Docs/install-power-toys.md b/Docs/install-power-toys.md index b90ca45e..3c25dfaa 100644 --- a/Docs/install-power-toys.md +++ b/Docs/install-power-toys.md @@ -1,4 +1,4 @@ -## The *install-power-toys.ps1* PowerShell Script +## The *install-power-toys.ps1* Script This PowerShell script installs the Microsoft Powertoys. diff --git a/Docs/install-powershell.md b/Docs/install-powershell.md index 9b5a23eb..737ab359 100644 --- a/Docs/install-powershell.md +++ b/Docs/install-powershell.md @@ -1,4 +1,4 @@ -## The *install-powershell.ps1* PowerShell Script +## The *install-powershell.ps1* Script install-powershell.ps1 [-Destination ] [-Daily] [-DoNotOverwrite] [-AddToPath] [-Preview] [] install-powershell.ps1 [-UseMSI] [-Quiet] [-AddExplorerContextMenu] [-EnablePSRemoting] [-Preview] [] diff --git a/Docs/install-rufus.md b/Docs/install-rufus.md index e4ce8a91..eaa1872a 100644 --- a/Docs/install-rufus.md +++ b/Docs/install-rufus.md @@ -1,4 +1,4 @@ -## The *install-rufus.ps1* PowerShell Script +## The *install-rufus.ps1* Script This PowerShell script installs Rufus from the Microsoft Store. diff --git a/Docs/install-signal-cli.md b/Docs/install-signal-cli.md index 3097fb04..8f7d16b5 100644 --- a/Docs/install-signal-cli.md +++ b/Docs/install-signal-cli.md @@ -1,4 +1,4 @@ -## The *install-signal-cli.ps1* PowerShell Script +## The *install-signal-cli.ps1* Script This PowerShell script installs signal-cli from github.com/AsamK/signal-cli. See the Web page for the correct version number. diff --git a/Docs/install-skype.md b/Docs/install-skype.md index f89539d6..271a0f20 100644 --- a/Docs/install-skype.md +++ b/Docs/install-skype.md @@ -1,4 +1,4 @@ -## The *install-skype.ps1* PowerShell Script +## The *install-skype.ps1* Script This PowerShell script installs Skype from the Microsoft Store. diff --git a/Docs/install-spotify.md b/Docs/install-spotify.md index 9e30f575..6fb1c7ab 100644 --- a/Docs/install-spotify.md +++ b/Docs/install-spotify.md @@ -1,4 +1,4 @@ -## The *install-spotify.ps1* PowerShell Script +## The *install-spotify.ps1* Script This PowerShell script installs Spotify from the Microsoft Store. diff --git a/Docs/install-ssh-client.md b/Docs/install-ssh-client.md index ebb6a3fc..9c4be2ee 100644 --- a/Docs/install-ssh-client.md +++ b/Docs/install-ssh-client.md @@ -1,4 +1,4 @@ -## The *install-ssh-client.ps1* PowerShell Script +## The *install-ssh-client.ps1* Script This PowerShell script installs a SSH client (needs admin rights). diff --git a/Docs/install-ssh-server.md b/Docs/install-ssh-server.md index 1f55599f..1ae21ac8 100644 --- a/Docs/install-ssh-server.md +++ b/Docs/install-ssh-server.md @@ -1,4 +1,4 @@ -## The *install-ssh-server.ps1* PowerShell Script +## The *install-ssh-server.ps1* Script This PowerShell script installs a SSH server (needs admin rights). diff --git a/Docs/install-thunderbird.md b/Docs/install-thunderbird.md index ca8bd752..0e15cd4c 100644 --- a/Docs/install-thunderbird.md +++ b/Docs/install-thunderbird.md @@ -1,4 +1,4 @@ -## The *install-thunderbird.ps1* PowerShell Script +## The *install-thunderbird.ps1* Script This PowerShell script installs Mozilla Thunderbird. diff --git a/Docs/install-twitter.md b/Docs/install-twitter.md index 33c64185..942a3579 100644 --- a/Docs/install-twitter.md +++ b/Docs/install-twitter.md @@ -1,4 +1,4 @@ -## The *install-twitter.ps1* PowerShell Script +## The *install-twitter.ps1* Script This PowerShell script installs Twitter from the Microsoft Store. diff --git a/Docs/install-unbound.md b/Docs/install-unbound.md index 12a2f802..efff1c41 100644 --- a/Docs/install-unbound.md +++ b/Docs/install-unbound.md @@ -1,4 +1,4 @@ -## The *install-unbound.ps1* PowerShell Script +## The *install-unbound.ps1* Script This PowerShell script installs Unbound, a validating, recursive, caching DNS resolver. It needs admin rights. diff --git a/Docs/install-updates.md b/Docs/install-updates.md index 3d0d05c3..241b9ed1 100644 --- a/Docs/install-updates.md +++ b/Docs/install-updates.md @@ -1,4 +1,4 @@ -## The *install-updates.ps1* PowerShell Script +## The *install-updates.ps1* Script This PowerShell script installs updates for the local machine (needs admin rights). @@ -54,14 +54,14 @@ try { "⏳ (4/4) Upgrading installed Snap packages..." & sudo snap refresh } else { - "⏳ (1/2) Querying updates..." + "⏳ (1/2) Querying application updates..." & winget upgrade - - "⏳ (2/2) Upgrading apps..." + " " + "⏳ (2/2) Upgrading applications..." & winget upgrade --all } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ installed updates in $Elapsed sec" + "✅ updates installed in $Elapsed sec." exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/install-visual-studio-code.md b/Docs/install-visual-studio-code.md index e5796518..52c128c3 100644 --- a/Docs/install-visual-studio-code.md +++ b/Docs/install-visual-studio-code.md @@ -1,4 +1,4 @@ -## The *install-visual-studio-code.ps1* PowerShell Script +## The *install-visual-studio-code.ps1* Script This PowerShell script installs Visual Studio Code. diff --git a/Docs/install-vivaldi.md b/Docs/install-vivaldi.md index 0c2c7d8c..23dac137 100644 --- a/Docs/install-vivaldi.md +++ b/Docs/install-vivaldi.md @@ -1,4 +1,4 @@ -## The *install-vivaldi.ps1* PowerShell Script +## The *install-vivaldi.ps1* Script This PowerShell script installs the Vivaldi browser. diff --git a/Docs/install-vlc.md b/Docs/install-vlc.md index 2848f834..c657dd89 100644 --- a/Docs/install-vlc.md +++ b/Docs/install-vlc.md @@ -1,4 +1,4 @@ -## The *install-vlc.ps1* PowerShell Script +## The *install-vlc.ps1* Script This PowerShell script installs the VLC media player. diff --git a/Docs/install-windows-terminal.md b/Docs/install-windows-terminal.md index 1fd91ab4..b7dbac83 100644 --- a/Docs/install-windows-terminal.md +++ b/Docs/install-windows-terminal.md @@ -1,4 +1,4 @@ -## The *install-windows-terminal.ps1* PowerShell Script +## The *install-windows-terminal.ps1* Script This PowerShell script installs Windows Terminal from the Microsoft Store. diff --git a/Docs/install-wsl.md b/Docs/install-wsl.md index 22dc7f21..701462c6 100644 --- a/Docs/install-wsl.md +++ b/Docs/install-wsl.md @@ -1,4 +1,4 @@ -## The *install-wsl.ps1* PowerShell Script +## The *install-wsl.ps1* Script This PowerShell script installs Windows Subsystem for Linux. It needs admin rights. diff --git a/Docs/install-zoom.md b/Docs/install-zoom.md index 2bb1c0b5..c304c0a7 100644 --- a/Docs/install-zoom.md +++ b/Docs/install-zoom.md @@ -1,4 +1,4 @@ -## The *install-zoom.ps1* PowerShell Script +## The *install-zoom.ps1* Script This PowerShell script installs Zoom. diff --git a/Docs/introduce-powershell.md b/Docs/introduce-powershell.md index 23d5df96..a322125e 100644 --- a/Docs/introduce-powershell.md +++ b/Docs/introduce-powershell.md @@ -1,4 +1,4 @@ -## The *introduce-powershell.ps1* PowerShell Script +## The *introduce-powershell.ps1* Script This PowerShell script introduces PowerShell to new users. @@ -39,20 +39,28 @@ https://github.com/fleschutz/PowerShell #> try { - & "$PSScriptRoot/write-big.ps1" "PowerShell" - - & "$PSScriptRoot/write-animated.ps1" "Welcome to PowerShell" - & "$PSScriptRoot/write-animated.ps1" "Feel the power of the console and scripting" - + Clear + & "$PSScriptRoot/write-big.ps1" " WELCOME" "" - "* Want to learn PowerShell? See the tutorials at: https://www.guru99.com/powershell-tutorial.html" + $Version = $PSVersionTable.PSVersion + $Edition = $PSVersionTable.PSEdition + $NumModules = (Get-Module).Count + $NumCmdlets = (Get-Command -Command-Type cmdlet).Count + $NumAliases = (Get-Alias).Count + $Details = "to POWERSHELL $Version ($Edition edition) with $NumModules modules, $NumCmdlets cmdlets and $NumAliases aliases" + & "$PSScriptRoot/write-animated.ps1" "$Details" "" - "* Need documentation? See the PowerShell docs at: https://docs.microsoft.com/en-us/powershell/" "" - "* Want sample scripts? See PowerShell Scripts at: https://github.com/fleschutz/PowerShell/" + & "$PSScriptRoot/write-typewriter.ps1" "* Want to learn PowerShell? See the tutorials at: https://www.guru99.com/powershell-tutorial.html" 25 + "" + & "$PSScriptRoot/write-typewriter.ps1" "* Need docs? See the official documentation at: https://docs.microsoft.com/en-us/powershell" 25 + "" + & "$PSScriptRoot/write-typewriter.ps1" "* Want to look inside? See the PowerShell Github repository at: https://github.com/PowerShell/PowerShell" 25 + "" + & "$PSScriptRoot/write-typewriter.ps1" "* Want examples? See the huge collection of PowerShell scripts at: https://github.com/fleschutz/PowerShell" 25 "" - & "$PSScriptRoot/write-typewriter.ps1" "P.S. PowerShell is looking forward to execute your next command" + & "$PSScriptRoot/write-typewriter.ps1" "NOTE: use + to follow the links above and HAVE FUN!" 20 "" exit 0 # success diff --git a/Docs/list-aliases.md b/Docs/list-aliases.md index cd15ef01..adf07d38 100644 --- a/Docs/list-aliases.md +++ b/Docs/list-aliases.md @@ -1,4 +1,4 @@ -## The *list-aliases.ps1* PowerShell Script +## The *list-aliases.ps1* Script This PowerShell scripts lists all PowerShell aliases. @@ -53,7 +53,7 @@ https://github.com/fleschutz/PowerShell #> try { - get-alias + Get-Alias exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/list-anagrams.md b/Docs/list-anagrams.md index 1fd6d943..601dfedb 100644 --- a/Docs/list-anagrams.md +++ b/Docs/list-anagrams.md @@ -1,4 +1,4 @@ -## The *list-anagrams.ps1* PowerShell Script +## The *list-anagrams.ps1* Script This PowerShell script lists all anagrams of the given word. diff --git a/Docs/list-apps.md b/Docs/list-apps.md index b2995728..c211dad0 100644 --- a/Docs/list-apps.md +++ b/Docs/list-apps.md @@ -1,4 +1,4 @@ -## The *list-apps.ps1* PowerShell Script +## The *list-apps.ps1* Script This PowerShell script lists the installed applications (from Windows Store, or Snap Store). diff --git a/Docs/list-automatic-variables.md b/Docs/list-automatic-variables.md index 7f73ac95..b0631a86 100644 --- a/Docs/list-automatic-variables.md +++ b/Docs/list-automatic-variables.md @@ -1,4 +1,4 @@ -## The *list-automatic-variables.ps1* PowerShell Script +## The *list-automatic-variables.ps1* Script list-automatic-variables.ps1 diff --git a/Docs/list-battery-status.md b/Docs/list-battery-status.md new file mode 100644 index 00000000..f3944c54 --- /dev/null +++ b/Docs/list-battery-status.md @@ -0,0 +1,51 @@ +## The *list-battery-status.ps1* Script + +This PowerShell script lists the battery status. + +## Parameters +```powershell +list-battery-status.ps1 [] + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +## Example +```powershell +PS> ./list-battery-status + +``` + +## Notes +Author: Markus Fleschutz | License: CC0 + +## Related Links +https://github.com/fleschutz/PowerShell + +## Source Code +```powershell +<# +.SYNOPSIS + Lists the battery status +.DESCRIPTION + This PowerShell script lists the battery status. +.EXAMPLE + PS> ./list-battery-status +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +try { + Add-Type -Assembly System.Windows.Forms + [System.Windows.Forms.SystemInformation]::PowerStatus + exit 0 # success +} catch { + "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 +} +``` + +*Generated by convert-ps2md.ps1 using the comment-based help of list-battery-status.ps1* diff --git a/Docs/list-bios.md b/Docs/list-bios.md index df257d10..1c43f427 100644 --- a/Docs/list-bios.md +++ b/Docs/list-bios.md @@ -1,4 +1,4 @@ -## The *list-bios.ps1* PowerShell Script +## The *list-bios.ps1* Script This PowerShell script lists the BIOS details. diff --git a/Docs/list-bluetooth-devices.md b/Docs/list-bluetooth-devices.md index 173c2712..34c2cdc6 100644 --- a/Docs/list-bluetooth-devices.md +++ b/Docs/list-bluetooth-devices.md @@ -1,4 +1,4 @@ -## The *list-bluetooth-devices.ps1* PowerShell Script +## The *list-bluetooth-devices.ps1* Script This PowerShell script lists all Bluetooth devices connected to the computer. diff --git a/Docs/list-branches.md b/Docs/list-branches.md index 5be03673..6880d8ce 100644 --- a/Docs/list-branches.md +++ b/Docs/list-branches.md @@ -1,4 +1,4 @@ -## The *list-branches.ps1* PowerShell Script +## The *list-branches.ps1* Script This PowerShell script lists all branches in a Git repository. diff --git a/Docs/list-calendar.md b/Docs/list-calendar.md index 75072c05..b915ef48 100644 --- a/Docs/list-calendar.md +++ b/Docs/list-calendar.md @@ -1,4 +1,4 @@ -## The *list-calendar.ps1* PowerShell Script +## The *list-calendar.ps1* Script Lists calendar elements, either a single month or an entire year. diff --git a/Docs/list-cheat-sheet.md b/Docs/list-cheat-sheet.md index 4465ce77..cae57288 100644 --- a/Docs/list-cheat-sheet.md +++ b/Docs/list-cheat-sheet.md @@ -1,4 +1,4 @@ -## The *list-cheat-sheet.ps1* PowerShell Script +## The *list-cheat-sheet.ps1* Script This PowerShell script lists the PowerShell cheat sheet. diff --git a/Docs/list-city-weather.md b/Docs/list-city-weather.md index ad4c996e..3908d8cc 100644 --- a/Docs/list-city-weather.md +++ b/Docs/list-city-weather.md @@ -1,4 +1,4 @@ -## The *list-city-weather.ps1* PowerShell Script +## The *list-city-weather.ps1* Script This PowerShell script lists the current weather of cities world-wide (west to east). diff --git a/Docs/list-cli-tools.md b/Docs/list-cli-tools.md index c7bb45fa..236b341c 100644 --- a/Docs/list-cli-tools.md +++ b/Docs/list-cli-tools.md @@ -1,4 +1,4 @@ -## The *list-cli-tools.ps1* PowerShell Script +## The *list-cli-tools.ps1* Script list-cli-tools.ps1 @@ -16,9 +16,9 @@ list-cli-tools.ps1 ```powershell <# .SYNOPSIS - Lists installed CLI tools + Lists installed command-line tools .DESCRIPTION - This PowerShell script lists installed command-line interface (CLI) tools. + This PowerShell script lists all installed command-line tools (name/version/path/file size, sorted by name). .EXAMPLE PS> ./list-cli-tools @@ -32,13 +32,13 @@ list-cli-tools.ps1 Author: Markus Fleschutz | License: CC0 #> -function CheckFor { param([string]$Cmd, [string]$VersionArg) +function TryCmd { param([string]$Cmd, [string]$VersionArg) try { $Info = Get-Command $Cmd -ErrorAction Stop $Path = $Info.Source if ("$($Info.Version)" -eq "0.0.0.0") { if ("$VersionArg" -ne "") { - $Result = invoke-expression "$Path $VersionArg" + $Result = Invoke-Expression "$Path $VersionArg" if ("$Result" -match '\d+.\d+\.\d+') { $Version = "$($Matches[0])" } elseif ("$Result" -match '\d+\.\d+') { @@ -63,236 +63,236 @@ function CheckFor { param([string]$Cmd, [string]$VersionArg) } } -function ListTools { - CheckFor 7z "-version" - CheckFor ant "-v" - CheckFor apt "--version" - CheckFor apt-get "--version" - CheckFor amixer "--version" - CheckFor aplay "--version" - CheckFor ar "--version" - CheckFor arch "--version" - CheckFor arecord "--version" - CheckFor arp "" - CheckFor at "" - CheckFor attrib "" - CheckFor awk "--version" - CheckFor b2sum "--version" - CheckFor base32 "--version" - CheckFor base64 "--version" - CheckFor basename "--version" - CheckFor basenc "--version" - CheckFor bash "--version" - CheckFor bc "--version" - CheckFor bunzip2 "--version" - CheckFor bzcat "--version" - CheckFor bzip2 "--version" - CheckFor bzip2recover "--version" - CheckFor captoinfo "--version" - CheckFor cat "-version" - CheckFor cc "--version" - CheckFor chattr "--version" - CheckFor chcon "--version" - CheckFor chdsk "" - CheckFor chgrp "--version" - CheckFor chmod "--version" - CheckFor chkntfs "" - CheckFor chown "--version" - CheckFor chroot "--version" - CheckFor choco "--version" - CheckFor cipher "" - CheckFor cksum "--version" - CheckFor clang "--version" - CheckFor clear "--version" - CheckFor cmake "--version" - CheckFor cmd "" - CheckFor cmp "--version" - CheckFor column "--version" - CheckFor comp "" - CheckFor compact "" - CheckFor cp "--version" - CheckFor cpack "--version" - CheckFor csplit "--version" - CheckFor ctest "--version" - CheckFor curl "--version" - CheckFor cut "--version" - CheckFor cygcheck "--version" - CheckFor cygpath "--version" - CheckFor d2u "--version" - CheckFor dash "--version" - CheckFor date "" - CheckFor dd "--version" - CheckFor df "--version" - CheckFor diff "--version" - CheckFor diff3 "--version" - CheckFor dir "--version" - CheckFor dircolors "--version" - CheckFor dirname "--version" - CheckFor dism "" - CheckFor dos2unix "--version" - CheckFor driverquery "" - CheckFor du "--version" - CheckFor echo "--version" - CheckFor egrep "--version" - CheckFor env "--version" - CheckFor ex "--version" - CheckFor expand "--version" - CheckFor expr "--version" - CheckFor factor "--version" - CheckFor false "--version" - CheckFor fido2-assert "--version" - CheckFor fido2-cred "--version" - CheckFor fido2-token "--version" - CheckFor file "--version" - CheckFor find "--version" - CheckFor fgrep "--version" - CheckFor fmt "--version" - CheckFor fold "--version" - CheckFor ftp "--version" - CheckFor funzip "--version" - CheckFor gawk "--version" - CheckFor gencat "--version" - CheckFor getconf "--version" - CheckFor getopt "--version" - CheckFor gettext "--version" - CheckFor gcc "--version" - CheckFor gdb "--version" - CheckFor gh "--version" - CheckFor git "--version" - CheckFor gkill "--version" - CheckFor gmondump "--version" - CheckFor gpg "--version" - CheckFor gpg-agent "--version" - CheckFor gpgconf "--version" - CheckFor gpg-error "--version" - CheckFor gpgsplit "--version" - CheckFor gpgtar "--version" - CheckFor grep "--version" - CheckFor groups "--version" - CheckFor gzip "--version" - CheckFor head "--version" - CheckFor hcsdiag "" - CheckFor help "--version" - CheckFor hmac256 "--version" - CheckFor hostid "--version" - CheckFor hostname "" - CheckFor htop "--version" - CheckFor iconv "--version" - CheckFor id "--version" - CheckFor ipfs "--version" - CheckFor java "--version" - CheckFor join "--version" - CheckFor kill "--version" - CheckFor ldd "--version" - CheckFor less "--version" - CheckFor link "--version" - CheckFor ln "--version" - CheckFor locale "--version" - CheckFor locate "--version" - CheckFor logname "--version" - CheckFor ls "--version" - CheckFor lsattr "--version" - CheckFor lsb_release "" - CheckFor lzma "--version" - CheckFor mac2unix "--version" - CheckFor make "--version" - CheckFor md5sum "--version" - CheckFor minidumper "--version" - CheckFor mkdir "--version" - CheckFor mkfifo "--version" - CheckFor mkgroup "--version" - CheckFor mknod "--version" - CheckFor mkpasswd "--version" - CheckFor mktemp "--version" - CheckFor mount "--version" - CheckFor MpCmdRun "-h" - CheckFor netsh "" - CheckFor netstat "" - CheckFor nice "--version" - CheckFor nohup "--version" - CheckFor nroff "--version" - CheckFor nslookup "" - CheckFor openssl "" - CheckFor passwd "--version" - CheckFor paste "--version" - CheckFor perl "--version" - CheckFor ping "-V" - CheckFor ping6 "-V" - CheckFor pip "--version" - CheckFor pip3 "--version" - CheckFor pip3.8 "--version" - CheckFor powercfg "/?" - CheckFor powershell "--version" - CheckFor print "" - CheckFor printf "--version" - CheckFor python "--version" - CheckFor python3 "--version" - CheckFor python3.8 "--version" - CheckFor rasdial "--version" - CheckFor regedit "--version" - CheckFor replace "--version" - CheckFor robocopy "--version" - CheckFor route "" - CheckFor rsh "" - CheckFor rsync "--version" - CheckFor rundll32 "--version" - CheckFor scp "" - CheckFor sftp "" - CheckFor sh "--version" - CheckFor sha1sum "--version" - CheckFor sha256sum "--version" - CheckFor sha512sum "--version" - CheckFor ssh "" - CheckFor ssh-keygen "" - CheckFor sort "--version" - CheckFor split "--version" - CheckFor strace "--version" - CheckFor strings "--version" - CheckFor strip "--version" - CheckFor sudo "--version" - CheckFor systeminfo "" - CheckFor tail "--version" - CheckFor tar "--version" - CheckFor taskkill "" - CheckFor tasklist "" - CheckFor tee "--version" - CheckFor time "" - CheckFor timeout "" - CheckFor top "-v" - CheckFor tskill "" - CheckFor typeperf "" - CheckFor tzsync "--version" - CheckFor uniq "--version" - CheckFor vi "--version" - CheckFor vim "--version" - CheckFor vulkaninfo "--version" - CheckFor w32tm "/?" - CheckFor waitfor "--version" - CheckFor wakeonlan "" - CheckFor wget "--version" - CheckFor where "--version" - CheckFor whatis "--version" - CheckFor which "" - CheckFor winget "--version" - CheckFor winsat "" - CheckFor whoami "--version" - CheckFor wput "--version" - CheckFor write "" - CheckFor wsl "--version" - CheckFor xcopy "--version" - CheckFor yes "--version" - CheckFor zip "--version" - CheckFor zipcloak "--version" - CheckFor zipdetails "" - CheckFor zipgrep "" - CheckFor zipinfo "" - CheckFor zipnote "" - CheckFor zipsplit "" - CheckFor zsh "--version" +function ListCmdTools { + TryCmd 7z "-version" + TryCmd ant "-v" + TryCmd apt "--version" + TryCmd apt-get "--version" + TryCmd amixer "--version" + TryCmd aplay "--version" + TryCmd ar "--version" + TryCmd arch "--version" + TryCmd arecord "--version" + TryCmd arp "" + TryCmd at "" + TryCmd attrib "" + TryCmd awk "--version" + TryCmd b2sum "--version" + TryCmd base32 "--version" + TryCmd base64 "--version" + TryCmd basename "--version" + TryCmd basenc "--version" + TryCmd bash "--version" + TryCmd bc "--version" + TryCmd bunzip2 "--version" + TryCmd bzcat "--version" + TryCmd bzip2 "--version" + TryCmd bzip2recover "--version" + TryCmd captoinfo "-V" + TryCmd cat "-version" + TryCmd cc "--version" + TryCmd chattr "--version" + TryCmd chcon "--version" + TryCmd chdsk "" + TryCmd chgrp "--version" + TryCmd chmod "--version" + TryCmd chkntfs "" + TryCmd chown "--version" + TryCmd chroot "--version" + TryCmd choco "--version" + TryCmd cipher "" + TryCmd cksum "--version" + TryCmd clang "--version" + TryCmd clear "-V" + TryCmd cmake "--version" + TryCmd cmd "" + TryCmd cmp "--version" + TryCmd column "--version" + TryCmd comp "" + TryCmd compact "" + TryCmd cp "--version" + TryCmd cpack "--version" + TryCmd csplit "--version" + TryCmd ctest "--version" + TryCmd curl "--version" + TryCmd cut "--version" + TryCmd cygcheck "--version" + TryCmd cygpath "--version" + TryCmd d2u "--version" + TryCmd dash "--version" + TryCmd date "" + TryCmd dd "--version" + TryCmd df "--version" + TryCmd diff "--version" + TryCmd diff3 "--version" + TryCmd dir "--version" + TryCmd dircolors "--version" + TryCmd dirname "--version" + TryCmd dism "" + TryCmd dos2unix "--version" + TryCmd driverquery "" + TryCmd du "--version" + TryCmd echo "--version" + TryCmd egrep "--version" + TryCmd env "--version" + TryCmd ex "--version" + TryCmd expand "--version" + TryCmd expr "--version" + TryCmd factor "--version" + TryCmd false "--version" + TryCmd fido2-assert "--version" + TryCmd fido2-cred "--version" + TryCmd fido2-token "--version" + TryCmd file "--version" + TryCmd find "--version" + TryCmd fgrep "--version" + TryCmd fmt "--version" + TryCmd fold "--version" + TryCmd ftp "-?" + TryCmd funzip "--version" + TryCmd gawk "--version" + TryCmd gencat "--version" + TryCmd getconf "--version" + TryCmd getopt "--version" + TryCmd gettext "--version" + TryCmd gcc "--version" + TryCmd gdb "--version" + TryCmd gh "--version" + TryCmd git "--version" + TryCmd gkill "--version" + TryCmd gmondump "--version" + TryCmd gpg "--version" + TryCmd gpg-agent "--version" + TryCmd gpgconf "--version" + TryCmd gpg-error "--version" + TryCmd gpgsplit "--version" + TryCmd gpgtar "--version" + TryCmd grep "--version" + TryCmd groups "--version" + TryCmd gzip "--version" + TryCmd head "--version" + TryCmd hcsdiag "" + TryCmd help "--version" + TryCmd hmac256 "--version" + TryCmd hostid "--version" + TryCmd hostname "" + TryCmd htop "--version" + TryCmd iconv "--version" + TryCmd id "--version" + TryCmd ipfs "--version" + TryCmd java "--version" + TryCmd join "--version" + TryCmd kill "--version" + TryCmd ldd "--version" + TryCmd less "--version" + TryCmd link "--version" + TryCmd ln "--version" + TryCmd locale "--version" + TryCmd locate "--version" + TryCmd logname "--version" + TryCmd ls "--version" + TryCmd lsattr "-V" + TryCmd lsb_release "" + TryCmd lzma "--version" + TryCmd mac2unix "--version" + TryCmd make "--version" + TryCmd md5sum "--version" + TryCmd minidumper "--version" + TryCmd mkdir "--version" + TryCmd mkfifo "--version" + TryCmd mkgroup "--version" + TryCmd mknod "--version" + TryCmd mkpasswd "--version" + TryCmd mktemp "--version" + TryCmd mount "--version" + TryCmd MpCmdRun "-h" + TryCmd netsh "" + TryCmd netstat "" + TryCmd nice "--version" + TryCmd nohup "--version" + TryCmd nroff "--version" + TryCmd nslookup "" + TryCmd openssl "" + TryCmd passwd "--status" + TryCmd paste "--version" + TryCmd perl "--version" + TryCmd ping "-V" + TryCmd ping6 "-V" + TryCmd pip "--version" + TryCmd pip3 "--version" + TryCmd pip3.8 "--version" + TryCmd powercfg "/?" + TryCmd powershell "--version" + TryCmd print "" + TryCmd printf "--version" + TryCmd python "--version" + TryCmd python3 "--version" + TryCmd python3.8 "--version" + TryCmd rasdial "--version" + TryCmd regedit "--version" + TryCmd replace "--version" + TryCmd robocopy "--version" + TryCmd route "" + TryCmd rsh "" + TryCmd rsync "--version" + TryCmd rundll32 "--version" + TryCmd scp "" + TryCmd sftp "" + TryCmd sh "--version" + TryCmd sha1sum "--version" + TryCmd sha256sum "--version" + TryCmd sha512sum "--version" + TryCmd ssh "-V" + TryCmd ssh-keygen "" + TryCmd sort "--version" + TryCmd split "--version" + TryCmd strace "--version" + TryCmd strings "--version" + TryCmd strip "--version" + TryCmd sudo "--version" + TryCmd systeminfo "" + TryCmd tail "--version" + TryCmd tar "--version" + TryCmd taskkill "" + TryCmd tasklist "" + TryCmd tee "--version" + TryCmd time "" + TryCmd timeout "" + TryCmd top "-v" + TryCmd tskill "" + TryCmd typeperf "" + TryCmd tzsync "--version" + TryCmd uniq "--version" + TryCmd vi "--version" + TryCmd vim "--version" + TryCmd vulkaninfo "--version" + TryCmd w32tm "/?" + TryCmd waitfor "--version" + TryCmd wakeonlan "" + TryCmd wget "--version" + TryCmd where "--version" + TryCmd whatis "--version" + TryCmd which "" + TryCmd winget "--version" + TryCmd winsat "" + TryCmd whoami "--version" + TryCmd wput "--version" + TryCmd write "" + TryCmd wsl "--version" + TryCmd xcopy "--version" + TryCmd yes "--version" + TryCmd zip "--version" + TryCmd zipcloak "--version" + TryCmd zipdetails "" + TryCmd zipgrep "" + TryCmd zipinfo "" + TryCmd zipnote "" + TryCmd zipsplit "" + TryCmd zsh "--version" } try { - ListTools | Format-Table -property @{e='Name';width=12},@{e='Version';width=15},@{e='Path';width=70},@{e='FileSize';width=10} + ListCmdTools | Format-Table -property @{e='Name';width=12},@{e='Version';width=15},@{e='Path';width=70},@{e='FileSize';width=10} exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/list-clipboard.md b/Docs/list-clipboard.md index 51efbdf1..c3b669af 100644 --- a/Docs/list-clipboard.md +++ b/Docs/list-clipboard.md @@ -1,4 +1,4 @@ -## The *list-clipboard.ps1* PowerShell Script +## The *list-clipboard.ps1* Script This PowerShell script lists the contents of the clipboard. diff --git a/Docs/list-cmdlets.md b/Docs/list-cmdlets.md index 6429b116..86e904d4 100644 --- a/Docs/list-cmdlets.md +++ b/Docs/list-cmdlets.md @@ -1,4 +1,4 @@ -## The *list-cmdlets.ps1* PowerShell Script +## The *list-cmdlets.ps1* Script This PowerShell script lists all PowerShell cmdlets. diff --git a/Docs/list-commit-statistics.md b/Docs/list-commit-statistics.md index 57770a68..ad73dc5d 100644 --- a/Docs/list-commit-statistics.md +++ b/Docs/list-commit-statistics.md @@ -1,4 +1,4 @@ -## The *list-commit-statistics.ps1* PowerShell Script +## The *list-commit-statistics.ps1* Script This PowerShell script lists the commit statistics of a Git repository. diff --git a/Docs/list-commits.md b/Docs/list-commits.md index 97caac11..5dbdd3fc 100644 --- a/Docs/list-commits.md +++ b/Docs/list-commits.md @@ -1,4 +1,4 @@ -## The *list-commits.ps1* PowerShell Script +## The *list-commits.ps1* Script This PowerShell script lists all commits in a Git repository. Supported output formats are: list, compact, normal or JSON. diff --git a/Docs/list-console-colors.md b/Docs/list-console-colors.md index 9d88d89d..6f45b952 100644 --- a/Docs/list-console-colors.md +++ b/Docs/list-console-colors.md @@ -1,4 +1,4 @@ -## The *list-console-colors.ps1* PowerShell Script +## The *list-console-colors.ps1* Script This PowerShell script lists all available console colors. diff --git a/Docs/list-countries.md b/Docs/list-countries.md index b1a4c880..567f5971 100644 --- a/Docs/list-countries.md +++ b/Docs/list-countries.md @@ -1,4 +1,4 @@ -## The *list-countries.ps1* PowerShell Script +## The *list-countries.ps1* Script list-countries.ps1 diff --git a/Docs/list-cpu.md b/Docs/list-cpu.md index f3076c97..b4745cf4 100644 --- a/Docs/list-cpu.md +++ b/Docs/list-cpu.md @@ -1,4 +1,4 @@ -## The *list-cpu.ps1* PowerShell Script +## The *list-cpu.ps1* Script This PowerShell script lists the CPU details. diff --git a/Docs/list-credits.md b/Docs/list-credits.md index 3d0d1aca..63f681e4 100644 --- a/Docs/list-credits.md +++ b/Docs/list-credits.md @@ -1,4 +1,4 @@ -## The *list-credits.ps1* PowerShell Script +## The *list-credits.ps1* Script This PowerShell script shows the credits for the PowerShell Scripts. diff --git a/Docs/list-crypto-rates.md b/Docs/list-crypto-rates.md index 5dfbd009..06d1d052 100644 --- a/Docs/list-crypto-rates.md +++ b/Docs/list-crypto-rates.md @@ -1,4 +1,4 @@ -## The *list-crypto-rates.ps1* PowerShell Script +## The *list-crypto-rates.ps1* Script list-crypto-rates.ps1 diff --git a/Docs/list-dir-tree.md b/Docs/list-dir-tree.md index 7010dfa6..b782da3e 100644 --- a/Docs/list-dir-tree.md +++ b/Docs/list-dir-tree.md @@ -1,4 +1,4 @@ -## The *list-dir-tree.ps1* PowerShell Script +## The *list-dir-tree.ps1* Script This PowerShell script lists all files and folders in a directory tree. diff --git a/Docs/list-drives.md b/Docs/list-drives.md index dfc4827c..177a697f 100644 --- a/Docs/list-drives.md +++ b/Docs/list-drives.md @@ -1,4 +1,4 @@ -## The *list-drives.ps1* PowerShell Script +## The *list-drives.ps1* Script This PowerShell script lists all local drives as a table. diff --git a/Docs/list-earthquakes.md b/Docs/list-earthquakes.md index 808d0cc0..24a85aec 100644 --- a/Docs/list-earthquakes.md +++ b/Docs/list-earthquakes.md @@ -1,4 +1,4 @@ -## The *list-earthquakes.ps1* PowerShell Script +## The *list-earthquakes.ps1* Script This PowerShell script lists major earthquakes with magnitude >= 6.0 for the last 30 days. diff --git a/Docs/list-emojis.md b/Docs/list-emojis.md index 878b1240..fdc7e0af 100644 --- a/Docs/list-emojis.md +++ b/Docs/list-emojis.md @@ -1,4 +1,4 @@ -## The *list-emojis.ps1* PowerShell Script +## The *list-emojis.ps1* Script This PowerShell script lists the emojis of Unicode 13.0 sorted by category. diff --git a/Docs/list-empty-dirs.md b/Docs/list-empty-dirs.md index edc31b77..f01a1e2a 100644 --- a/Docs/list-empty-dirs.md +++ b/Docs/list-empty-dirs.md @@ -1,4 +1,4 @@ -## The *list-empty-dirs.ps1* PowerShell Script +## The *list-empty-dirs.ps1* Script This PowerShell script scans and lists all empty subfolders within the given directory tree. diff --git a/Docs/list-empty-files.md b/Docs/list-empty-files.md index 5a071f5b..d2fdfe35 100644 --- a/Docs/list-empty-files.md +++ b/Docs/list-empty-files.md @@ -1,4 +1,4 @@ -## The *list-empty-files.ps1* PowerShell Script +## The *list-empty-files.ps1* Script This PowerShell script scans and lists all empty files within the given directory tree. diff --git a/Docs/list-environment-variables.md b/Docs/list-environment-variables.md index 2f7f75e7..d6976197 100644 --- a/Docs/list-environment-variables.md +++ b/Docs/list-environment-variables.md @@ -1,4 +1,4 @@ -## The *list-environment-variables.ps1* PowerShell Script +## The *list-environment-variables.ps1* Script This PowerShell script lists all environment variables. diff --git a/Docs/list-exchange-rates.md b/Docs/list-exchange-rates.md index 933b9fa2..57e4d0d1 100644 --- a/Docs/list-exchange-rates.md +++ b/Docs/list-exchange-rates.md @@ -1,4 +1,4 @@ -## The *list-exchange-rates.ps1* PowerShell Script +## The *list-exchange-rates.ps1* Script This PowerShell script lists the current exchange rates for the given currency (USD per default). diff --git a/Docs/list-fibonacci.md b/Docs/list-fibonacci.md index 11ea7a58..70a73e09 100644 --- a/Docs/list-fibonacci.md +++ b/Docs/list-fibonacci.md @@ -1,4 +1,4 @@ -## The *list-fibonacci.ps1* PowerShell Script +## The *list-fibonacci.ps1* Script list-fibonacci.ps1 diff --git a/Docs/list-files.md b/Docs/list-files.md index 505f8f55..f7e9e3c6 100644 --- a/Docs/list-files.md +++ b/Docs/list-files.md @@ -1,4 +1,4 @@ -## The *list-files.ps1* PowerShell Script +## The *list-files.ps1* Script This PowerShell script lists all files within the given directory tree. diff --git a/Docs/list-folder.md b/Docs/list-folder.md index dd5c3990..e284a3a0 100644 --- a/Docs/list-folder.md +++ b/Docs/list-folder.md @@ -1,4 +1,4 @@ -## The *list-folder.ps1* PowerShell Script +## The *list-folder.ps1* Script This PowerShell script lists the directory content formatted in columns. diff --git a/Docs/list-fritzbox-calls.md b/Docs/list-fritzbox-calls.md index a3a7c87d..f36ece15 100644 --- a/Docs/list-fritzbox-calls.md +++ b/Docs/list-fritzbox-calls.md @@ -1,4 +1,4 @@ -## The *list-fritzbox-calls.ps1* PowerShell Script +## The *list-fritzbox-calls.ps1* Script This PowerShell script lists the phone calls of the FRITZ!Box device. diff --git a/Docs/list-fritzbox-devices.md b/Docs/list-fritzbox-devices.md index 26735c1c..e4c3412a 100644 --- a/Docs/list-fritzbox-devices.md +++ b/Docs/list-fritzbox-devices.md @@ -1,4 +1,4 @@ -## The *list-fritzbox-devices.ps1* PowerShell Script +## The *list-fritzbox-devices.ps1* Script This PowerShell script lists FRITZ!Box's known devices. diff --git a/Docs/list-headlines.md b/Docs/list-headlines.md index 8e68db74..532cd8f1 100644 --- a/Docs/list-headlines.md +++ b/Docs/list-headlines.md @@ -1,4 +1,4 @@ -## The *list-headlines.ps1* PowerShell Script +## The *list-headlines.ps1* Script This PowerShell script lists the latest RSS feed news. diff --git a/Docs/list-hidden-files.md b/Docs/list-hidden-files.md index bc8082da..916321c4 100644 --- a/Docs/list-hidden-files.md +++ b/Docs/list-hidden-files.md @@ -1,4 +1,4 @@ -## The *list-hidden-files.ps1* PowerShell Script +## The *list-hidden-files.ps1* Script This PowerShell script scans and lists all hidden files in a directory tree. diff --git a/Docs/list-installed-languages.md b/Docs/list-installed-languages.md index 5dac5720..541c4ab0 100644 --- a/Docs/list-installed-languages.md +++ b/Docs/list-installed-languages.md @@ -1,4 +1,4 @@ -## The *list-installed-languages.ps1* PowerShell Script +## The *list-installed-languages.ps1* Script list-installed-languages.ps1 diff --git a/Docs/list-installed-software.md b/Docs/list-installed-software.md index d4aa751a..ff56449c 100644 --- a/Docs/list-installed-software.md +++ b/Docs/list-installed-software.md @@ -1,4 +1,4 @@ -## The *list-installed-software.ps1* PowerShell Script +## The *list-installed-software.ps1* Script This PowerShell script lists the installed software (except Windows Store apps). diff --git a/Docs/list-latest-tag.md b/Docs/list-latest-tag.md index d8958c8d..34b6e7ea 100644 --- a/Docs/list-latest-tag.md +++ b/Docs/list-latest-tag.md @@ -1,4 +1,4 @@ -## The *list-latest-tag.ps1* PowerShell Script +## The *list-latest-tag.ps1* Script This PowerShell script lists the latest tag on the current branch in a Git repository. diff --git a/Docs/list-latest-tags.md b/Docs/list-latest-tags.md index 60242c10..b874e84d 100644 --- a/Docs/list-latest-tags.md +++ b/Docs/list-latest-tags.md @@ -1,4 +1,4 @@ -## The *list-latest-tags.ps1* PowerShell Script +## The *list-latest-tags.ps1* Script This PowerShell script lists the latest tags in all Git repositories in the specified folder. diff --git a/Docs/list-memos.md b/Docs/list-memos.md index 6ab1345e..7cfa9a0f 100644 --- a/Docs/list-memos.md +++ b/Docs/list-memos.md @@ -1,4 +1,4 @@ -## The *list-memos.ps1* PowerShell Script +## The *list-memos.ps1* Script This PowerShell script lists all memo entries in Memos.csv in the home folder. diff --git a/Docs/list-modules.md b/Docs/list-modules.md index 4c0f4657..e6bfac61 100644 --- a/Docs/list-modules.md +++ b/Docs/list-modules.md @@ -1,4 +1,4 @@ -## The *list-modules.ps1* PowerShell Script +## The *list-modules.ps1* Script This PowerShell script lists all installed PowerShell modules. diff --git a/Docs/list-motherboard.md b/Docs/list-motherboard.md index e70697e2..6ac231fe 100644 --- a/Docs/list-motherboard.md +++ b/Docs/list-motherboard.md @@ -1,4 +1,4 @@ -## The *list-motherboard.ps1* PowerShell Script +## The *list-motherboard.ps1* Script This PowerShell script lists the motherboard details. diff --git a/Docs/list-mysql-tables.md b/Docs/list-mysql-tables.md index d40bb61f..b36486f7 100644 --- a/Docs/list-mysql-tables.md +++ b/Docs/list-mysql-tables.md @@ -1,4 +1,4 @@ -## The *list-mysql-tables.ps1* PowerShell Script +## The *list-mysql-tables.ps1* Script This PowerShell script lists all tables of the given MySQL database. diff --git a/Docs/list-network-connections.md b/Docs/list-network-connections.md new file mode 100644 index 00000000..e3f5f262 --- /dev/null +++ b/Docs/list-network-connections.md @@ -0,0 +1,50 @@ +## The *list-network-connections.ps1* Script + +This PowerShell script lists all active network connections on the local computer. + +## Parameters +```powershell +list-network-connections.ps1 [] + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +## Example +```powershell +PS> ./list-network-connections + +``` + +## Notes +Author: Markus Fleschutz | License: CC0 + +## Related Links +https://github.com/fleschutz/PowerShell + +## Source Code +```powershell +<# +.SYNOPSIS + Lists network connections +.DESCRIPTION + This PowerShell script lists all active network connections on the local computer. +.EXAMPLE + PS> ./list-network-connections +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +try { + & netstat -n + exit 0 # success +} catch { + "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 +} +``` + +*Generated by convert-ps2md.ps1 using the comment-based help of list-network-connections.ps1* diff --git a/Docs/list-network-routes.md b/Docs/list-network-routes.md index 80b0699e..c9f4c16d 100644 --- a/Docs/list-network-routes.md +++ b/Docs/list-network-routes.md @@ -1,4 +1,4 @@ -## The *list-network-routes.ps1* PowerShell Script +## The *list-network-routes.ps1* Script This PowerShell script lists the network routes on the local computer. diff --git a/Docs/list-network-shares.md b/Docs/list-network-shares.md index ff016c8a..2dac66db 100644 --- a/Docs/list-network-shares.md +++ b/Docs/list-network-shares.md @@ -1,4 +1,4 @@ -## The *list-network-shares.ps1* PowerShell Script +## The *list-network-shares.ps1* Script This PowerShell script lists all network shares of the local computer. diff --git a/Docs/list-news.md b/Docs/list-news.md index 1b51a7ca..eb2edd3b 100644 --- a/Docs/list-news.md +++ b/Docs/list-news.md @@ -1,10 +1,10 @@ -## The *list-news.ps1* PowerShell Script +## The *list-news.ps1* Script This PowerShell script lists the latest news by using RSS (Really Simple Syndication) feeds. ## Parameters ```powershell -list-news.ps1 [[-RSS_URL] ] [[-MaxCount] ] [] +list-news.ps1 [[-RSS_URL] ] [[-MaxLines] ] [[-Speed] ] [] -RSS_URL Specifies the URL to the RSS feed (Yahoo News by default) @@ -15,12 +15,21 @@ list-news.ps1 [[-RSS_URL] ] [[-MaxCount] ] [] Accept pipeline input? false Accept wildcard characters? false --MaxCount - Specifies the number of lines to list (20 by default) +-MaxLines + Specifies the maximum number of lines to list (24 by default) Required? false Position? 2 - Default value 20 + Default value 24 + Accept pipeline input? false + Accept wildcard characters? false + +-Speed + Specifies the speed to write the text (10 ms by default) + + Required? false + Position? 3 + Default value 10 Accept pipeline input? false Accept wildcard characters? false @@ -50,8 +59,10 @@ https://github.com/fleschutz/PowerShell This PowerShell script lists the latest news by using RSS (Really Simple Syndication) feeds. .PARAMETER RSS_URL Specifies the URL to the RSS feed (Yahoo News by default) -.PARAMETER MaxCount - Specifies the number of lines to list (20 by default) +.PARAMETER MaxLines + Specifies the maximum number of lines to list (24 by default) +.PARAMETER Speed + Specifies the speed to write the text (10 ms by default) .EXAMPLE PS> ./list-news .LINK @@ -60,18 +71,18 @@ https://github.com/fleschutz/PowerShell Author: Markus Fleschutz | License: CC0 #> -param([string]$RSS_URL = "https://yahoo.com/news/rss/world", [int]$MaxCount = 20) +param([string]$RSS_URL = "https://yahoo.com/news/rss/world", [int]$MaxLines = 24, [int]$Speed = 10) try { [xml]$Content = (Invoke-WebRequest -URI $RSS_URL -useBasicParsing).Content [int]$Count = 1 foreach ($Item in $Content.rss.channel.item) { - & "$PSScriptRoot/write-typewriter.ps1" "→ $($Item.title)" 20 # ms speed - if ($Count++ -eq $MaxCount) { break } + & "$PSScriptRoot/write-typewriter.ps1" "→ $($Item.title)" $Speed + if ($Count++ -eq $MaxLines) { break } } $Source = $Content.rss.channel.title $Date = $Content.rss.channel.pubDate - " By *$($Source)* as of $Date" + " (by *$($Source)* as of $Date)" exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/list-nic.md b/Docs/list-nic.md index 1a67ae5e..1757d7a5 100644 --- a/Docs/list-nic.md +++ b/Docs/list-nic.md @@ -1,4 +1,4 @@ -## The *list-nic.ps1* PowerShell Script +## The *list-nic.ps1* Script This PowerShell script lists the details of the installed network interfaces. diff --git a/Docs/list-os-releases.md b/Docs/list-os-releases.md index 4ca569ef..8dddb958 100644 --- a/Docs/list-os-releases.md +++ b/Docs/list-os-releases.md @@ -1,4 +1,4 @@ -## The *list-os-releases.ps1* PowerShell Script +## The *list-os-releases.ps1* Script This PowerShell script lists OS releases and download URL. diff --git a/Docs/list-os-updates.md b/Docs/list-os-updates.md index 17c38005..c39c2d5e 100644 --- a/Docs/list-os-updates.md +++ b/Docs/list-os-updates.md @@ -1,4 +1,4 @@ -## The *list-os-updates.ps1* PowerShell Script +## The *list-os-updates.ps1* Script This PowerShell script lists the latest operating system update news. diff --git a/Docs/list-os.md b/Docs/list-os.md index df4318c9..cee3a567 100644 --- a/Docs/list-os.md +++ b/Docs/list-os.md @@ -1,4 +1,4 @@ -## The *list-os.ps1* PowerShell Script +## The *list-os.ps1* Script This PowerShell script lists the exact operating system version. diff --git a/Docs/list-outlook-inbox.md b/Docs/list-outlook-inbox.md index 67cc5ec1..a3d9a51e 100644 --- a/Docs/list-outlook-inbox.md +++ b/Docs/list-outlook-inbox.md @@ -1,4 +1,4 @@ -## The *list-outlook-inbox.ps1* PowerShell Script +## The *list-outlook-inbox.ps1* Script This PowerShell script lists the emails in the inbox of Outlook. diff --git a/Docs/list-outlook-sent.md b/Docs/list-outlook-sent.md index 48570523..0ae64d30 100644 --- a/Docs/list-outlook-sent.md +++ b/Docs/list-outlook-sent.md @@ -1,4 +1,4 @@ -## The *list-outlook-sent.ps1* PowerShell Script +## The *list-outlook-sent.ps1* Script This PowerShell script lists the mails in the Sent Mail folder of Outlook. diff --git a/Docs/list-passwords.md b/Docs/list-passwords.md index 08239b55..d3d0b5ed 100644 --- a/Docs/list-passwords.md +++ b/Docs/list-passwords.md @@ -1,4 +1,4 @@ -## The *list-passwords.ps1* PowerShell Script +## The *list-passwords.ps1* Script This PowerShell script lists random passwords. diff --git a/Docs/list-pi.md b/Docs/list-pi.md new file mode 100644 index 00000000..4cbc5752 --- /dev/null +++ b/Docs/list-pi.md @@ -0,0 +1,114 @@ +## The *list-pi.ps1* Script + +This PowerShell script calculates and lists the digits of the mathematical constant PI. + +## Parameters +```powershell +list-pi.ps1 [[-Digits] ] [] + +-Digits + Specifies the number of digits to list (1000 by default) + + Required? false + Position? 1 + Default value 1000 + Accept pipeline input? false + Accept wildcard characters? false + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +## Example +```powershell +PS> ./list-pi +3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342... + +``` + +## Notes +Author: Markus Fleschutz | License: CC0 + +## Related Links +https://github.com/fleschutz/PowerShell + +## Source Code +```powershell +<# +.SYNOPSIS + Lists PI +.DESCRIPTION + This PowerShell script calculates and lists the digits of the mathematical constant PI. +.PARAMETER digits + Specifies the number of digits to list (1000 by default) +.EXAMPLE + PS> ./list-pi + 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342... +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +param([int]$Digits = 1000) + +function List-Pi ( $Digits ) { + $Big = [bigint[]](0..10) + + $ndigits = 0 + + $q = $t = $k = $Big[1] + $r = $Big[0] + $l = $n = $Big[3] + + # calculate first digit + $nr = ( $Big[2] * $q + $r ) * $l + $nn = ( $q * ( $Big[7] * $k + $Big[2] ) + $r * $l ) / ( $t * $l ) + $q *= $k + $t *= $l + $l += $Big[2] + $k = $k + $Big[1] + $n = $nn + $r = $nr + + Write-Host "$($n)." -noNewline + $ndigits++ + + $nr = $Big[10] * ( $r - $n * $t ) + $n = ( ( $Big[10] * ( 3 * $q + $r ) ) / $t ) - 10 * $n + $q *= $Big[10] + $r = $nr + + while ($ndigits -lt $Digits) { + if ($Big[4] * $q + $r - $t -lt $n * $t) { + Write-Host "$n" -noNewline + $ndigits++ + $nr = $Big[10] * ( $r - $n * $t ) + $n = ( ( $Big[10] * ( 3 * $q + $r ) ) / $t ) - 10 * $n + $q *= $Big[10] + $r = $nr + } else { + $nr = ( $Big[2] * $q + $r ) * $l + $nn = ( $q * ( $Big[7] * $k + $Big[2] ) + $r * $l ) / ( $t * $l ) + $q *= $k + $t *= $l + $l += $Big[2] + $k = $k + $Big[1] + $n = $nn + $r = $nr + } + } + Write-Host "... ($Digits digits)" +} + +try { + List-Pi $Digits + exit 0 # success +} catch { + "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 +} +``` + +*Generated by convert-ps2md.ps1 using the comment-based help of list-pi.ps1* diff --git a/Docs/list-pins.md b/Docs/list-pins.md index 56641d64..1da56a50 100644 --- a/Docs/list-pins.md +++ b/Docs/list-pins.md @@ -1,4 +1,4 @@ -## The *list-pins.ps1* PowerShell Script +## The *list-pins.ps1* Script This PowerShell script lists random PIN's. diff --git a/Docs/list-print-jobs.md b/Docs/list-print-jobs.md index 8e4533f5..a64544ae 100644 --- a/Docs/list-print-jobs.md +++ b/Docs/list-print-jobs.md @@ -1,4 +1,4 @@ -## The *list-print-jobs.ps1* PowerShell Script +## The *list-print-jobs.ps1* Script This PowerShell script lists all print jobs of all printer devices. diff --git a/Docs/list-printers.md b/Docs/list-printers.md index 2aeaddbf..045a78e5 100644 --- a/Docs/list-printers.md +++ b/Docs/list-printers.md @@ -1,4 +1,4 @@ -## The *list-printers.ps1* PowerShell Script +## The *list-printers.ps1* Script This PowerShell script lists all printers known to the local computer. diff --git a/Docs/list-processes.md b/Docs/list-processes.md index 7986c019..8423217e 100644 --- a/Docs/list-processes.md +++ b/Docs/list-processes.md @@ -1,4 +1,4 @@ -## The *list-processes.ps1* PowerShell Script +## The *list-processes.ps1* Script This PowerShell script lists all local computer processes. diff --git a/Docs/list-profiles.md b/Docs/list-profiles.md index 040496a1..447da969 100644 --- a/Docs/list-profiles.md +++ b/Docs/list-profiles.md @@ -1,4 +1,4 @@ -## The *list-profiles.ps1* PowerShell Script +## The *list-profiles.ps1* Script list-profiles.ps1 diff --git a/Docs/list-ram.md b/Docs/list-ram.md index 48c893a8..1d9b4a96 100644 --- a/Docs/list-ram.md +++ b/Docs/list-ram.md @@ -1,4 +1,4 @@ -## The *list-ram.ps1* PowerShell Script +## The *list-ram.ps1* Script This PowerShell script lists the details of the installed RAM. diff --git a/Docs/list-recycle-bin.md b/Docs/list-recycle-bin.md index 4bef5d8f..b714edfa 100644 --- a/Docs/list-recycle-bin.md +++ b/Docs/list-recycle-bin.md @@ -1,4 +1,4 @@ -## The *list-recycle-bin.ps1* PowerShell Script +## The *list-recycle-bin.ps1* Script This PowerShell script lists the content of the recycle bin folder. diff --git a/Docs/list-repos.md b/Docs/list-repos.md index 5dd60126..31836af2 100644 --- a/Docs/list-repos.md +++ b/Docs/list-repos.md @@ -1,4 +1,4 @@ -## The *list-repos.ps1* PowerShell Script +## The *list-repos.ps1* Script This PowerShell script lists the details of all Git repositories in a folder. @@ -7,7 +7,7 @@ This PowerShell script lists the details of all Git repositories in a folder. list-repos.ps1 [[-ParentDir] ] [] -ParentDir - Specifies the path to the parent folder. + Specifies the path to the parent directory. Required? false Position? 1 @@ -26,10 +26,10 @@ PS> ./list-repos C:\MyRepos -No Repository Branch LatestTag Status --- ---------- ------ --------- ------ -1 cmake main v3.23.0 clean -2 opencv main 4.5.5 modified +No Repository Branch LatestTag Status +-- ---------- ------ --------- ------ +1 cmake main v3.23.0 clean +2 opencv main 4.5.5 modified ... ``` @@ -48,14 +48,14 @@ https://github.com/fleschutz/PowerShell .DESCRIPTION This PowerShell script lists the details of all Git repositories in a folder. .PARAMETER ParentDir - Specifies the path to the parent folder. + Specifies the path to the parent directory. .EXAMPLE PS> ./list-repos C:\MyRepos - No Repository Branch LatestTag Status - -- ---------- ------ --------- ------ - 1 cmake main v3.23.0 clean - 2 opencv main 4.5.5 modified + No Repository Branch LatestTag Status + -- ---------- ------ --------- ------ + 1 cmake main v3.23.0 clean + 2 opencv main 4.5.5 modified ... .LINK https://github.com/fleschutz/PowerShell @@ -66,11 +66,10 @@ https://github.com/fleschutz/PowerShell param([string]$ParentDir = "$PWD") function ListRepos { - [int]$No = 0 + [int]$No = 1 $Folders = (Get-ChildItem "$ParentDir" -attributes Directory) foreach ($Folder in $Folders) { - $No++ - $Repository = (get-item "$Folder").Name + $FolderName = (Get-Item "$Folder").Name $Branch = (git -C "$Folder" branch --show-current) $LatestTagCommitID = (git -C "$Folder" rev-list --tags --max-count=1) $LatestTag = (git -C "$Folder" describe --tags $LatestTagCommitID) @@ -78,12 +77,13 @@ function ListRepos { if ("$Status" -eq "") { $Status = "clean" } if ("$Status" -like " M *") { $Status = "modified" } - New-Object PSObject -property @{ 'No'="$No"; 'Repository'="$Repository"; 'Branch'="$Branch"; 'LatestTag'="$LatestTag"; 'Status'="$Status"; } + New-Object PSObject -property @{ 'No'="$No"; 'Repository'="$FolderName"; 'Branch'="$Branch"; 'LatestTag'="$LatestTag"; 'Status'="$Status"; } + $No++ } } try { - if (-not(test-path "$ParentDir" -pathType container)) { throw "Can't access directory: $ParentDir" } + if (-not(Test-Path "$ParentDir" -pathType container)) { throw "Can't access directory: $ParentDir" } $Null = (git --version) if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" } diff --git a/Docs/list-scripts.md b/Docs/list-scripts.md index 6655c776..99cdb9b0 100644 --- a/Docs/list-scripts.md +++ b/Docs/list-scripts.md @@ -1,4 +1,4 @@ -## The *list-scripts.ps1* PowerShell Script +## The *list-scripts.ps1* Script list-scripts.ps1 diff --git a/Docs/list-services.md b/Docs/list-services.md index d6f65c2c..d1143f29 100644 --- a/Docs/list-services.md +++ b/Docs/list-services.md @@ -1,4 +1,4 @@ -## The *list-services.ps1* PowerShell Script +## The *list-services.ps1* Script This PowerShell script lists all local computer services. diff --git a/Docs/list-special-folders.md b/Docs/list-special-folders.md index dd92b74e..d0db02cb 100644 --- a/Docs/list-special-folders.md +++ b/Docs/list-special-folders.md @@ -1,4 +1,4 @@ -## The *list-special-folders.ps1* PowerShell Script +## The *list-special-folders.ps1* Script list-special-folders.ps1 diff --git a/Docs/list-sql-tables.md b/Docs/list-sql-tables.md index 92163d21..2ddc107d 100644 --- a/Docs/list-sql-tables.md +++ b/Docs/list-sql-tables.md @@ -1,4 +1,4 @@ -## The *list-sql-tables.ps1* PowerShell Script +## The *list-sql-tables.ps1* Script This PowerShell script lists all tables in a SQL server database and exports the list as CSV. Install-Module InvokeQuery diff --git a/Docs/list-submodules.md b/Docs/list-submodules.md index 3eff051c..dc69297b 100644 --- a/Docs/list-submodules.md +++ b/Docs/list-submodules.md @@ -1,4 +1,4 @@ -## The *list-submodules.ps1* PowerShell Script +## The *list-submodules.ps1* Script This PowerShell script lists the submodules in the given Git repository. diff --git a/Docs/list-suggestions.md b/Docs/list-suggestions.md index 1e93a37d..8a33a3df 100644 --- a/Docs/list-suggestions.md +++ b/Docs/list-suggestions.md @@ -1,4 +1,4 @@ -## The *list-suggestions.ps1* PowerShell Script +## The *list-suggestions.ps1* Script This PowerShell script lists "Did you mean?" suggestions from Google. diff --git a/Docs/list-system-info.md b/Docs/list-system-info.md index 2fb60e87..fdf673bc 100644 --- a/Docs/list-system-info.md +++ b/Docs/list-system-info.md @@ -1,4 +1,4 @@ -## The *list-system-info.ps1* PowerShell Script +## The *list-system-info.ps1* Script This PowerShell script lists system information of the local computer. diff --git a/Docs/list-tags.md b/Docs/list-tags.md index 052bf9d3..b4c3e437 100644 --- a/Docs/list-tags.md +++ b/Docs/list-tags.md @@ -1,4 +1,4 @@ -## The *list-tags.ps1* PowerShell Script +## The *list-tags.ps1* Script This PowerShell script lists all tags in a Git repository. diff --git a/Docs/list-tasks.md b/Docs/list-tasks.md index c426d2ea..312ff014 100644 --- a/Docs/list-tasks.md +++ b/Docs/list-tasks.md @@ -1,4 +1,4 @@ -## The *list-tasks.ps1* PowerShell Script +## The *list-tasks.ps1* Script list-tasks.ps1 diff --git a/Docs/list-timezone.md b/Docs/list-timezone.md index 81b0f9be..0471855a 100644 --- a/Docs/list-timezone.md +++ b/Docs/list-timezone.md @@ -1,4 +1,4 @@ -## The *list-timezone.ps1* PowerShell Script +## The *list-timezone.ps1* Script This PowerShell script lists the details of the current time zone. diff --git a/Docs/list-timezones.md b/Docs/list-timezones.md index cbba9579..3191de3e 100644 --- a/Docs/list-timezones.md +++ b/Docs/list-timezones.md @@ -1,4 +1,4 @@ -## The *list-timezones.ps1* PowerShell Script +## The *list-timezones.ps1* Script This PowerShell script lists all available time zones. diff --git a/Docs/list-tiobe-index.md b/Docs/list-tiobe-index.md index 38d4544b..fe31792b 100644 --- a/Docs/list-tiobe-index.md +++ b/Docs/list-tiobe-index.md @@ -1,4 +1,4 @@ -## The *list-tiobe-index.ps1* PowerShell Script +## The *list-tiobe-index.ps1* Script list-tiobe-index.ps1 diff --git a/Docs/list-unused-files.md b/Docs/list-unused-files.md index 19b3b2ed..2ecb4585 100644 --- a/Docs/list-unused-files.md +++ b/Docs/list-unused-files.md @@ -1,4 +1,4 @@ -## The *list-unused-files.ps1* PowerShell Script +## The *list-unused-files.ps1* Script This PowerShell script scans and lists files in a folder with last access time older than number of days. diff --git a/Docs/list-user-accounts.md b/Docs/list-user-accounts.md index 5046128b..0c8e4e4d 100644 --- a/Docs/list-user-accounts.md +++ b/Docs/list-user-accounts.md @@ -1,4 +1,4 @@ -## The *list-user-accounts.ps1* PowerShell Script +## The *list-user-accounts.ps1* Script This PowerShell script lists the user accounts on the local computer. diff --git a/Docs/list-user-groups.md b/Docs/list-user-groups.md index e1b8e9ea..9c303655 100644 --- a/Docs/list-user-groups.md +++ b/Docs/list-user-groups.md @@ -1,4 +1,4 @@ -## The *list-user-groups.ps1* PowerShell Script +## The *list-user-groups.ps1* Script This PowerShell script lists the user groups on the local computer. diff --git a/Docs/list-voices.md b/Docs/list-voices.md index a8ecac29..753d4b02 100644 --- a/Docs/list-voices.md +++ b/Docs/list-voices.md @@ -1,4 +1,4 @@ -## The *list-voices.ps1* PowerShell Script +## The *list-voices.ps1* Script This PowerShell script lists the installed text-to-speech (TTS) voices. diff --git a/Docs/list-weather.md b/Docs/list-weather.md index fb2f7f40..5d255eca 100644 --- a/Docs/list-weather.md +++ b/Docs/list-weather.md @@ -1,6 +1,6 @@ -## The *list-weather.ps1* PowerShell Script +## The *list-weather.ps1* Script -This PowerShell script lists the hourly weather report. +This PowerShell script lists the hourly weather report in a nice table. ## Parameters ```powershell @@ -38,7 +38,7 @@ https://github.com/fleschutz/PowerShell .SYNOPSIS Lists the weather report .DESCRIPTION - This PowerShell script lists the hourly weather report. + This PowerShell script lists the hourly weather report in a nice table. .PARAMETER Location Specifies the location to use (determined automatically per default) .EXAMPLE @@ -51,21 +51,51 @@ https://github.com/fleschutz/PowerShell param([string]$Location = "") # empty means determine automatically -function Describe { param([string]$Desc) - switch($Desc) { - "Clear" { return "🌙 clear " } - "Cloudy" { return "☁️ cloudy " } +function GetDescription { param([string]$Text) + switch($Text) { + "Blizzard" { return "❄️ blizzard ⚠️" } + "Clear" { return "🌙 clear" } + "Cloudy" { return "☁️ cloudy" } + "Fog" { return "🌫 fog" } + "Freezing fog" { return "🌫 freezing fog" } + "Heavy snow" { return "❄️ heavy snow ⚠️" } "Light drizzle" { return "💧 light drizzle" } - "Light rain" { return "💧 light rain " } + "Light rain" { return "💧 light rain" } "Light rain shower" { return "💧 light rain shower" } - "Mist" { return "🌫 misty " } - "Overcast" { return "☁️ overcast " } + "Light sleet" { return "❄️ light sleet" } + "Light snow" { return "❄️ light snow" } + "Light snow showers" { return "❄️ light snow showers" } + "Moderate snow" { return "❄️ moderate snow" } + "Mist" { return "🌫 misty" } + "Overcast" { return "☁️ overcast" } "Partly cloudy" { return "⛅️partly cloudy" } "Patchy light rain" { return "💧 patchy light rain" } "Patchy rain possible" { return "💧 patchy rain possible" } - "Sunny" { return "☀️ sunny " } + "Sunny" { return "☀️ sunny" } "Thundery outbreaks possible" { return "⚡️thundery outbreaks possible" } - default { return "$Desc" } + default { return "$Text" } + } +} + +function GetWindDir { param([string]$Text) + switch($Text) { + "NW" { return "↘" } + "NNW" { return "↓" } + "N" { return "↓" } + "NNE" { return "↓" } + "NE" { return "↙" } + "ENE" { return "←" } + "E" { return "←" } + "ESE" { return "←" } + "SE" { return "↖" } + "SSE" { return "↑" } + "S" { return "↑" } + "SSW" { return "↑" } + "SW" { return "↗" } + "WSW" { return "→" } + "W" { return "→" } + "WNW" { return "→" } + default { return "$Text" } } } @@ -77,27 +107,27 @@ try { [int]$Day = 0 foreach($Hourly in $Weather.weather.hourly) { $Hour = $Hourly.time / 100 - $Temp = $Hourly.tempC + $Temp = $(($Hourly.tempC.toString()).PadLeft(3)) $Precip = $Hourly.precipMM - $Humidity = $Hourly.humidity + $Humidity = $(($Hourly.humidity.toString()).PadLeft(3)) $Pressure = $Hourly.pressure - $WindSpeed = $Hourly.windspeedKmph - $WindDir = $Hourly.winddir16Point + $WindSpeed = $(($Hourly.windspeedKmph.toString()).PadLeft(2)) + $WindDir = GetWindDir $Hourly.winddir16Point $UV = $Hourly.uvIndex - $Clouds = $Hourly.cloudcover - $Desc = $Hourly.weatherDesc.value + $Clouds = $(($Hourly.cloudcover.toString()).PadLeft(3)) + $Visib = $(($Hourly.visibility.toString()).PadLeft(2)) + $Desc = GetDescription $Hourly.weatherDesc.value if ($Hour -eq 0) { if ($Day -eq 0) { - Write-Host -foregroundColor green "Today 🌡°C ☂️mm 💧 💨km/h from ☀️UV ☁️ at $Area ($Region, $Country)" + Write-Host -foregroundColor green "TODAY 🌡°C ☂️mm 💧 💨km/h ☀️UV ☁️ 👁km at $Area ($Region, $Country)" } elseif ($Day -eq 1) { - Write-Host -foregroundColor green "Tomorrow" + Write-Host -foregroundColor green "TOMORROW" } else { Write-Host -foregroundColor green "Day after tomorrow" } $Day++ } - "$(($Hour.toString()).PadLeft(2))°° $(($Temp.toString()).PadLeft(2))° $($Precip) $(($Humidity.toString()).PadLeft(3))% $(($WindSpeed.toString()).PadLeft(2)) $WindDir`t$($UV) $(($Clouds.toString()).PadLeft(3))% $(Describe $Desc)" - $Hour++ + "$(($Hour.toString()).PadLeft(2))°° $Temp° $Precip $Humidity% $($WindDir)$WindSpeed $UV $Clouds% $Visib $Desc" } exit 0 # success } catch { diff --git a/Docs/list-wifi.md b/Docs/list-wifi.md index 9bb1c75a..5107a8d5 100644 --- a/Docs/list-wifi.md +++ b/Docs/list-wifi.md @@ -1,4 +1,4 @@ -## The *list-wifi.ps1* PowerShell Script +## The *list-wifi.ps1* Script This PowerShell script lists the WIFI networks. diff --git a/Docs/list-workdir.md b/Docs/list-workdir.md index 1f2dd2b5..a28fd11e 100644 --- a/Docs/list-workdir.md +++ b/Docs/list-workdir.md @@ -1,4 +1,4 @@ -## The *list-workdir.ps1* PowerShell Script +## The *list-workdir.ps1* Script This PowerShell script lists the current working directory (but not the content itself!) diff --git a/Docs/locate-city.md b/Docs/locate-city.md index b2453048..991704db 100644 --- a/Docs/locate-city.md +++ b/Docs/locate-city.md @@ -1,4 +1,4 @@ -## The *locate-city.ps1* PowerShell Script +## The *locate-city.ps1* Script This PowerShell script prints the geographic location of the given city. diff --git a/Docs/locate-ipaddress.md b/Docs/locate-ipaddress.md index 8ade0641..898651a5 100644 --- a/Docs/locate-ipaddress.md +++ b/Docs/locate-ipaddress.md @@ -1,4 +1,4 @@ -## The *locate-ipaddress.ps1* PowerShell Script +## The *locate-ipaddress.ps1* Script locate-ipaddress.ps1 [[-IPaddress] ] diff --git a/Docs/locate-my-phone.md b/Docs/locate-my-phone.md index 18c638ca..82285760 100644 --- a/Docs/locate-my-phone.md +++ b/Docs/locate-my-phone.md @@ -1,4 +1,4 @@ -## The *locate-my-phone.ps1* PowerShell Script +## The *locate-my-phone.ps1* Script This PowerShell script launches the Web browser with the Google Find My Device website. diff --git a/Docs/locate-zip-code.md b/Docs/locate-zip-code.md index 1aecdfbf..89f82e6a 100644 --- a/Docs/locate-zip-code.md +++ b/Docs/locate-zip-code.md @@ -1,4 +1,4 @@ -## The *locate-zip-code.ps1* PowerShell Script +## The *locate-zip-code.ps1* Script This PowerShell script prints the geographic location of the given zip-code. diff --git a/Docs/lock-desktop.md b/Docs/lock-desktop.md index 95ee6e9e..efa079ee 100644 --- a/Docs/lock-desktop.md +++ b/Docs/lock-desktop.md @@ -1,4 +1,4 @@ -## The *lock-desktop.ps1* PowerShell Script +## The *lock-desktop.ps1* Script This PowerShell script locks the local computer desktop immediately. diff --git a/Docs/log-off.md b/Docs/log-off.md index 178aed0e..cbfe47f9 100644 --- a/Docs/log-off.md +++ b/Docs/log-off.md @@ -1,4 +1,4 @@ -## The *log-off.ps1* PowerShell Script +## The *log-off.ps1* Script This PowerShell script logs off the current Windows user. diff --git a/Docs/make-install.md b/Docs/make-install.md index 2f94329f..422fea68 100644 --- a/Docs/make-install.md +++ b/Docs/make-install.md @@ -1,4 +1,4 @@ -## The *make-install.ps1* PowerShell Script +## The *make-install.ps1* Script This PowerShell script copies newer EXE's + DLL's from the build directory to the installation directory. diff --git a/Docs/merry-christmas.md b/Docs/merry-christmas.md index 383673a6..4687d2df 100644 --- a/Docs/merry-christmas.md +++ b/Docs/merry-christmas.md @@ -1,4 +1,4 @@ -## The *merry-christmas.ps1* PowerShell Script +## The *merry-christmas.ps1* Script This PowerShell script replies to 'Merry Christmas' by text-to-speech (TTS). diff --git a/Docs/minimize-all-windows.md b/Docs/minimize-all-windows.md index 3371785e..a7c0af2c 100644 --- a/Docs/minimize-all-windows.md +++ b/Docs/minimize-all-windows.md @@ -1,4 +1,4 @@ -## The *minimize-all-windows.ps1* PowerShell Script +## The *minimize-all-windows.ps1* Script This PowerShell script minimizes all open windows. diff --git a/Docs/moon.md b/Docs/moon.md index 9e8fdab9..90f82103 100644 --- a/Docs/moon.md +++ b/Docs/moon.md @@ -1,4 +1,4 @@ -## The *moon.ps1* PowerShell Script +## The *moon.ps1* Script This PowerShell script prints the current moon phase. diff --git a/Docs/my-profile.md b/Docs/my-profile.md index dbe34988..489ea468 100644 --- a/Docs/my-profile.md +++ b/Docs/my-profile.md @@ -1,4 +1,4 @@ -## The *my-profile.ps1* PowerShell Script +## The *my-profile.ps1* Script my-profile.ps1 diff --git a/Docs/new-branch.md b/Docs/new-branch.md index 87ad1ce9..59ae3157 100644 --- a/Docs/new-branch.md +++ b/Docs/new-branch.md @@ -1,4 +1,4 @@ -## The *new-branch.ps1* PowerShell Script +## The *new-branch.ps1* Script This PowerShell script creates a new branch in a Git repository and switches to it. @@ -72,7 +72,7 @@ try { if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" } $RepoDirName = (Get-Item "$RepoDir").Name - "⏳ (2/6) Checking folder 📂$RepoDirName... " + "⏳ (2/6) Checking Git repository 📂$RepoDirName... " if (-not(Test-Path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" } "⏳ (3/6) Fetching updates..." @@ -95,7 +95,7 @@ try { if ($lastExitCode -ne "0") { throw "'git submodule update' failed with exit code $lastExitCode" } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ created new '$NewBranchName' branch in 📂$RepoDirName repo in $Elapsed sec (based on '$CurrentBranchName' branch)" + "✔️ created new branch '$NewBranchName' (based on '$CurrentBranchName') in 📂$RepoDirName repo in $Elapsed sec." exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/new-email.md b/Docs/new-email.md index 7b24e54a..d672c0cb 100644 --- a/Docs/new-email.md +++ b/Docs/new-email.md @@ -1,4 +1,4 @@ -## The *new-email.ps1* PowerShell Script +## The *new-email.ps1* Script This PowerShell script opens the default email client to write a new email. diff --git a/Docs/new-qrcode.md b/Docs/new-qrcode.md index 99188a85..b82c982c 100644 --- a/Docs/new-qrcode.md +++ b/Docs/new-qrcode.md @@ -1,4 +1,4 @@ -## The *new-qrcode.ps1* PowerShell Script +## The *new-qrcode.ps1* Script This PowerShell script generates a new QR code image file. diff --git a/Docs/new-script.md b/Docs/new-script.md index f626ee4c..ec4f173d 100644 --- a/Docs/new-script.md +++ b/Docs/new-script.md @@ -1,4 +1,4 @@ -## The *new-script.ps1* PowerShell Script +## The *new-script.ps1* Script This PowerShell script creates a new PowerShell script file (by using template file ../Data/template.ps1). diff --git a/Docs/new-shortcut.md b/Docs/new-shortcut.md index 7c452c0c..8240bf21 100644 --- a/Docs/new-shortcut.md +++ b/Docs/new-shortcut.md @@ -1,4 +1,4 @@ -## The *new-shortcut.ps1* PowerShell Script +## The *new-shortcut.ps1* Script This PowerShell script creates a new shortcut file. diff --git a/Docs/new-symlink.md b/Docs/new-symlink.md index eedb1446..7f5ace93 100644 --- a/Docs/new-symlink.md +++ b/Docs/new-symlink.md @@ -1,4 +1,4 @@ -## The *new-symlink.ps1* PowerShell Script +## The *new-symlink.ps1* Script diff --git a/Docs/new-tag.md b/Docs/new-tag.md index 6a35d97c..d3382ec1 100644 --- a/Docs/new-tag.md +++ b/Docs/new-tag.md @@ -1,4 +1,4 @@ -## The *new-tag.ps1* PowerShell Script +## The *new-tag.ps1* Script This PowerShell script creates a new tag in a Git repository. diff --git a/Docs/new-user.md b/Docs/new-user.md index eead8c14..8d8497cf 100644 --- a/Docs/new-user.md +++ b/Docs/new-user.md @@ -1,4 +1,4 @@ -## The *new-user.ps1* PowerShell Script +## The *new-user.ps1* Script This PowerShell script creates a new user account. diff --git a/Docs/new-zipfile.md b/Docs/new-zipfile.md index cc73b5c2..acaa8882 100644 --- a/Docs/new-zipfile.md +++ b/Docs/new-zipfile.md @@ -1,4 +1,4 @@ -## The *new-zipfile.ps1* PowerShell Script +## The *new-zipfile.ps1* Script This PowerShell script creates a new .ZIP file from a folder (including subfolders). diff --git a/Docs/open-accu-weather.md b/Docs/open-accu-weather.md index d077de8d..865ae689 100644 --- a/Docs/open-accu-weather.md +++ b/Docs/open-accu-weather.md @@ -1,4 +1,4 @@ -## The *open-accu-weather.ps1* PowerShell Script +## The *open-accu-weather.ps1* Script This PowerShell script launches the Web browser with the AccuWeather website. diff --git a/Docs/open-air-b-n-b.md b/Docs/open-air-b-n-b.md index 908c8eee..e08b6d66 100644 --- a/Docs/open-air-b-n-b.md +++ b/Docs/open-air-b-n-b.md @@ -1,4 +1,4 @@ -## The *open-air-b-n-b.ps1* PowerShell Script +## The *open-air-b-n-b.ps1* Script This PowerShell script launches the Web browser with the AirBNB website. diff --git a/Docs/open-apps-folder.md b/Docs/open-apps-folder.md index 5c163026..e6ca2fe5 100644 --- a/Docs/open-apps-folder.md +++ b/Docs/open-apps-folder.md @@ -1,4 +1,4 @@ -## The *open-apps-folder.ps1* PowerShell Script +## The *open-apps-folder.ps1* Script This PowerShell script launches the File Explorer showing the UWP apps folder. diff --git a/Docs/open-auto-start-folder.md b/Docs/open-auto-start-folder.md index 0417bc01..217e4306 100644 --- a/Docs/open-auto-start-folder.md +++ b/Docs/open-auto-start-folder.md @@ -1,4 +1,4 @@ -## The *open-auto-start-folder.ps1* PowerShell Script +## The *open-auto-start-folder.ps1* Script This PowerShell script launches the File Explorer with the user's autostart folder. diff --git a/Docs/open-bing-maps.md b/Docs/open-bing-maps.md index 7dd48175..f2f07bf2 100644 --- a/Docs/open-bing-maps.md +++ b/Docs/open-bing-maps.md @@ -1,4 +1,4 @@ -## The *open-bing-maps.ps1* PowerShell Script +## The *open-bing-maps.ps1* Script This PowerShell script launches the Bing Maps application. diff --git a/Docs/open-booking-com.md b/Docs/open-booking-com.md index b99f3ad1..e9b5027c 100644 --- a/Docs/open-booking-com.md +++ b/Docs/open-booking-com.md @@ -1,4 +1,4 @@ -## The *open-booking-com.ps1* PowerShell Script +## The *open-booking-com.ps1* Script This PowerShell script launches the Web browser with the Booking.com website. diff --git a/Docs/open-c-drive.md b/Docs/open-c-drive.md index dc02b3d4..c1f0d695 100644 --- a/Docs/open-c-drive.md +++ b/Docs/open-c-drive.md @@ -1,4 +1,4 @@ -## The *open-c-drive.ps1* PowerShell Script +## The *open-c-drive.ps1* Script This PowerShell script launches the File Explorer with the C: drive folder. diff --git a/Docs/open-calculator.md b/Docs/open-calculator.md index abff0f81..24b001a0 100644 --- a/Docs/open-calculator.md +++ b/Docs/open-calculator.md @@ -1,4 +1,4 @@ -## The *open-calculator.ps1* PowerShell Script +## The *open-calculator.ps1* Script This PowerShell script launches the calculator application. diff --git a/Docs/open-chrome.md b/Docs/open-chrome.md index 48d1e2cb..806926b4 100644 --- a/Docs/open-chrome.md +++ b/Docs/open-chrome.md @@ -1,4 +1,4 @@ -## The *open-chrome.ps1* PowerShell Script +## The *open-chrome.ps1* Script This PowerShell script launches the Google Chrome Web browser. diff --git a/Docs/open-clock.md b/Docs/open-clock.md index 4154d3d7..8eaf6771 100644 --- a/Docs/open-clock.md +++ b/Docs/open-clock.md @@ -1,4 +1,4 @@ -## The *open-clock.ps1* PowerShell Script +## The *open-clock.ps1* Script This PowerShell script launches the Clock application. diff --git a/Docs/open-cortana.md b/Docs/open-cortana.md index c6e003fd..6ddacc9e 100644 --- a/Docs/open-cortana.md +++ b/Docs/open-cortana.md @@ -1,4 +1,4 @@ -## The *open-cortana.ps1* PowerShell Script +## The *open-cortana.ps1* Script This PowerShell script launches the Cortana application. diff --git a/Docs/open-d-drive.md b/Docs/open-d-drive.md index 444d4e2d..a923ccc1 100644 --- a/Docs/open-d-drive.md +++ b/Docs/open-d-drive.md @@ -1,4 +1,4 @@ -## The *open-d-drive.ps1* PowerShell Script +## The *open-d-drive.ps1* Script This PowerShell script launches the File Explorer with the D: drive folder. diff --git a/Docs/open-deep-l-translator.md b/Docs/open-deep-l-translator.md index d36ae7a5..0df208db 100644 --- a/Docs/open-deep-l-translator.md +++ b/Docs/open-deep-l-translator.md @@ -1,4 +1,4 @@ -## The *open-deep-l-translator.ps1* PowerShell Script +## The *open-deep-l-translator.ps1* Script This PowerShell script launches the Web browser with the DeepL Translator website. diff --git a/Docs/open-default-browser.md b/Docs/open-default-browser.md index da63c851..1ebb7ee4 100644 --- a/Docs/open-default-browser.md +++ b/Docs/open-default-browser.md @@ -1,4 +1,4 @@ -## The *open-default-browser.ps1* PowerShell Script +## The *open-default-browser.ps1* Script This PowerShell script launches the default Web browser, optional with a given URL. diff --git a/Docs/open-desktop-folder.md b/Docs/open-desktop-folder.md index 72ba0a1e..5e4b5597 100644 --- a/Docs/open-desktop-folder.md +++ b/Docs/open-desktop-folder.md @@ -1,4 +1,4 @@ -## The *open-desktop-folder.ps1* PowerShell Script +## The *open-desktop-folder.ps1* Script This PowerShell script launches the File Explorer with the user's desktop folder. diff --git a/Docs/open-documents-folder.md b/Docs/open-documents-folder.md index 3c664f4c..c1cea776 100644 --- a/Docs/open-documents-folder.md +++ b/Docs/open-documents-folder.md @@ -1,4 +1,4 @@ -## The *open-documents-folder.ps1* PowerShell Script +## The *open-documents-folder.ps1* Script This PowerShell script launches the File Explorer with the user's documents folder. diff --git a/Docs/open-downloads-folder.md b/Docs/open-downloads-folder.md index 9230fb34..964e7aa7 100644 --- a/Docs/open-downloads-folder.md +++ b/Docs/open-downloads-folder.md @@ -1,4 +1,4 @@ -## The *open-downloads-folder.ps1* PowerShell Script +## The *open-downloads-folder.ps1* Script This PowerShell script launches the File Explorer showing the user's downloads folder. diff --git a/Docs/open-dropbox-folder.md b/Docs/open-dropbox-folder.md index 0b42ff54..427492b2 100644 --- a/Docs/open-dropbox-folder.md +++ b/Docs/open-dropbox-folder.md @@ -1,4 +1,4 @@ -## The *open-dropbox-folder.ps1* PowerShell Script +## The *open-dropbox-folder.ps1* Script This PowerShell script launches the File Explorer with the user's Dropbox folder. diff --git a/Docs/open-duck-duck-go.md b/Docs/open-duck-duck-go.md index 6997cb55..4c1927c1 100644 --- a/Docs/open-duck-duck-go.md +++ b/Docs/open-duck-duck-go.md @@ -1,4 +1,4 @@ -## The *open-duck-duck-go.ps1* PowerShell Script +## The *open-duck-duck-go.ps1* Script This PowerShell script launches the Web browser with the DuckDuckGo website. diff --git a/Docs/open-e-drive.md b/Docs/open-e-drive.md index 56ba719a..2e766779 100644 --- a/Docs/open-e-drive.md +++ b/Docs/open-e-drive.md @@ -1,4 +1,4 @@ -## The *open-e-drive.ps1* PowerShell Script +## The *open-e-drive.ps1* Script This PowerShell script launches the File Explorer with the E: drive folder. diff --git a/Docs/open-edge.md b/Docs/open-edge.md index 3b1593be..e2b9fcdd 100644 --- a/Docs/open-edge.md +++ b/Docs/open-edge.md @@ -1,4 +1,4 @@ -## The *open-edge.ps1* PowerShell Script +## The *open-edge.ps1* Script This PowerShell script launches the Microsoft Edge Web browser. diff --git a/Docs/open-egg-timer.md b/Docs/open-egg-timer.md index 9b403599..301e01c2 100644 --- a/Docs/open-egg-timer.md +++ b/Docs/open-egg-timer.md @@ -1,4 +1,4 @@ -## The *open-egg-timer.ps1* PowerShell Script +## The *open-egg-timer.ps1* Script This PowerShell script launches the Web browser with the eggtimer website. diff --git a/Docs/open-email-client.md b/Docs/open-email-client.md index 151b7cba..385c1985 100644 --- a/Docs/open-email-client.md +++ b/Docs/open-email-client.md @@ -1,4 +1,4 @@ -## The *open-email-client.ps1* PowerShell Script +## The *open-email-client.ps1* Script This PowerShell script launches the default email client. diff --git a/Docs/open-f-drive.md b/Docs/open-f-drive.md index 018269c5..39451847 100644 --- a/Docs/open-f-drive.md +++ b/Docs/open-f-drive.md @@ -1,4 +1,4 @@ -## The *open-f-drive.ps1* PowerShell Script +## The *open-f-drive.ps1* Script This PowerShell script launches the File Explorer with the F: drive folder. diff --git a/Docs/open-file-explorer.md b/Docs/open-file-explorer.md index 835bc41c..d09d1750 100644 --- a/Docs/open-file-explorer.md +++ b/Docs/open-file-explorer.md @@ -1,4 +1,4 @@ -## The *open-file-explorer.ps1* PowerShell Script +## The *open-file-explorer.ps1* Script This PowerShell script launches the File Explorer. diff --git a/Docs/open-fire-place.md b/Docs/open-fire-place.md index c38bcb4b..867c63cc 100644 --- a/Docs/open-fire-place.md +++ b/Docs/open-fire-place.md @@ -1,4 +1,4 @@ -## The *open-fire-place.ps1* PowerShell Script +## The *open-fire-place.ps1* Script This PowerShell script launches the Web browser with a fire place website. diff --git a/Docs/open-firefox.md b/Docs/open-firefox.md index cab380ef..c71b4242 100644 --- a/Docs/open-firefox.md +++ b/Docs/open-firefox.md @@ -1,4 +1,4 @@ -## The *open-firefox.ps1* PowerShell Script +## The *open-firefox.ps1* Script This PowerShell script launches the Mozilla Firefox Web browser. diff --git a/Docs/open-flight-radar.md b/Docs/open-flight-radar.md index 500c5d9f..0cafcfa4 100644 --- a/Docs/open-flight-radar.md +++ b/Docs/open-flight-radar.md @@ -1,4 +1,4 @@ -## The *open-flight-radar.ps1* PowerShell Script +## The *open-flight-radar.ps1* Script This PowerShell script launches the Web browser with the FlightRadar24 website. diff --git a/Docs/open-g-drive.md b/Docs/open-g-drive.md index b0346c05..be2b48b2 100644 --- a/Docs/open-g-drive.md +++ b/Docs/open-g-drive.md @@ -1,4 +1,4 @@ -## The *open-g-drive.ps1* PowerShell Script +## The *open-g-drive.ps1* Script This PowerShell script launches the File Explorer with the G: drive folder. diff --git a/Docs/open-git-extensions.md b/Docs/open-git-extensions.md index 07fb1a5f..52922cd6 100644 --- a/Docs/open-git-extensions.md +++ b/Docs/open-git-extensions.md @@ -1,4 +1,4 @@ -## The *open-git-extensions.ps1* PowerShell Script +## The *open-git-extensions.ps1* Script open-git-extensions.ps1 diff --git a/Docs/open-google-books.md b/Docs/open-google-books.md index 472c166e..cf61a7ea 100644 --- a/Docs/open-google-books.md +++ b/Docs/open-google-books.md @@ -1,4 +1,4 @@ -## The *open-google-books.ps1* PowerShell Script +## The *open-google-books.ps1* Script This PowerShell script launches the Web browser with the Google Books website. diff --git a/Docs/open-google-calendar.md b/Docs/open-google-calendar.md index b2c0e9bc..cd45701e 100644 --- a/Docs/open-google-calendar.md +++ b/Docs/open-google-calendar.md @@ -1,4 +1,4 @@ -## The *open-google-calendar.ps1* PowerShell Script +## The *open-google-calendar.ps1* Script This PowerShell script launches the Web browser with the Google Calendar website. diff --git a/Docs/open-google-contacts.md b/Docs/open-google-contacts.md index 3625b505..3e50736c 100644 --- a/Docs/open-google-contacts.md +++ b/Docs/open-google-contacts.md @@ -1,4 +1,4 @@ -## The *open-google-contacts.ps1* PowerShell Script +## The *open-google-contacts.ps1* Script This PowerShell script launches the Web browser with the Google Contacts website. diff --git a/Docs/open-google-docs.md b/Docs/open-google-docs.md index 8504e627..45a8ce8d 100644 --- a/Docs/open-google-docs.md +++ b/Docs/open-google-docs.md @@ -1,4 +1,4 @@ -## The *open-google-docs.ps1* PowerShell Script +## The *open-google-docs.ps1* Script This PowerShell script launches the Web browser with the Google Docs website. diff --git a/Docs/open-google-earth.md b/Docs/open-google-earth.md index 456e3a7a..68a523ae 100644 --- a/Docs/open-google-earth.md +++ b/Docs/open-google-earth.md @@ -1,4 +1,4 @@ -## The *open-google-earth.ps1* PowerShell Script +## The *open-google-earth.ps1* Script This PowerShell script launches the Web browser with the Google Earth website. diff --git a/Docs/open-google-mail.md b/Docs/open-google-mail.md index 1a84fbde..4e6e9e64 100644 --- a/Docs/open-google-mail.md +++ b/Docs/open-google-mail.md @@ -1,4 +1,4 @@ -## The *open-google-mail.ps1* PowerShell Script +## The *open-google-mail.ps1* Script This PowerShell script launches the Web browser with the Google Mail website. diff --git a/Docs/open-google-maps.md b/Docs/open-google-maps.md index 48b910ba..e9269acb 100644 --- a/Docs/open-google-maps.md +++ b/Docs/open-google-maps.md @@ -1,4 +1,4 @@ -## The *open-google-maps.ps1* PowerShell Script +## The *open-google-maps.ps1* Script This PowerShell script launches the Web browser with the Google Maps website. diff --git a/Docs/open-google-news.md b/Docs/open-google-news.md index ccd71afb..548d4588 100644 --- a/Docs/open-google-news.md +++ b/Docs/open-google-news.md @@ -1,4 +1,4 @@ -## The *open-google-news.ps1* PowerShell Script +## The *open-google-news.ps1* Script This PowerShell script launches the Web browser with the Google News website. diff --git a/Docs/open-google-photos.md b/Docs/open-google-photos.md index 2688707e..505ab2da 100644 --- a/Docs/open-google-photos.md +++ b/Docs/open-google-photos.md @@ -1,4 +1,4 @@ -## The *open-google-photos.ps1* PowerShell Script +## The *open-google-photos.ps1* Script This PowerShell script launches the Web browser with the Google Photos website. diff --git a/Docs/open-google-play.md b/Docs/open-google-play.md index 446f065b..b6e3c580 100644 --- a/Docs/open-google-play.md +++ b/Docs/open-google-play.md @@ -1,4 +1,4 @@ -## The *open-google-play.ps1* PowerShell Script +## The *open-google-play.ps1* Script This PowerShell script launches the Web browser with the Google Play website. diff --git a/Docs/open-google-search.md b/Docs/open-google-search.md index 3957e0cd..aa33512b 100644 --- a/Docs/open-google-search.md +++ b/Docs/open-google-search.md @@ -1,4 +1,4 @@ -## The *open-google-search.ps1* PowerShell Script +## The *open-google-search.ps1* Script This PowerShell script launches the Web browser with the Google Search website. diff --git a/Docs/open-google-stadia.md b/Docs/open-google-stadia.md index 2e266c34..7550d510 100644 --- a/Docs/open-google-stadia.md +++ b/Docs/open-google-stadia.md @@ -1,4 +1,4 @@ -## The *open-google-stadia.ps1* PowerShell Script +## The *open-google-stadia.ps1* Script This PowerShell script launches the Web browser with the Google Stadia website. diff --git a/Docs/open-google-translate.md b/Docs/open-google-translate.md index 36da67e9..81058f7e 100644 --- a/Docs/open-google-translate.md +++ b/Docs/open-google-translate.md @@ -1,4 +1,4 @@ -## The *open-google-translate.ps1* PowerShell Script +## The *open-google-translate.ps1* Script This PowerShell script launches the Web browser with the Google Translate website. diff --git a/Docs/open-home-folder.md b/Docs/open-home-folder.md index b7451cae..8c6dbf8a 100644 --- a/Docs/open-home-folder.md +++ b/Docs/open-home-folder.md @@ -1,4 +1,4 @@ -## The *open-home-folder.ps1* PowerShell Script +## The *open-home-folder.ps1* Script This script launches the File Explorer with the user's home folder. diff --git a/Docs/open-internet-archive.md b/Docs/open-internet-archive.md index 282366c0..856051fa 100644 --- a/Docs/open-internet-archive.md +++ b/Docs/open-internet-archive.md @@ -1,4 +1,4 @@ -## The *open-internet-archive.ps1* PowerShell Script +## The *open-internet-archive.ps1* Script This script launches the Web browser with the Internet Archive website. diff --git a/Docs/open-jitsi-meet.md b/Docs/open-jitsi-meet.md index 23fffc49..2f70015a 100644 --- a/Docs/open-jitsi-meet.md +++ b/Docs/open-jitsi-meet.md @@ -1,4 +1,4 @@ -## The *open-jitsi-meet.ps1* PowerShell Script +## The *open-jitsi-meet.ps1* Script This script launches the Web browser with the Jitsi Meet website. diff --git a/Docs/open-m-drive.md b/Docs/open-m-drive.md index 3711136a..93193bb8 100644 --- a/Docs/open-m-drive.md +++ b/Docs/open-m-drive.md @@ -1,4 +1,4 @@ -## The *open-m-drive.ps1* PowerShell Script +## The *open-m-drive.ps1* Script This script launches the File Explorer with the M: drive folder. diff --git a/Docs/open-magnifier.md b/Docs/open-magnifier.md index cf334dd1..af2a94d8 100644 --- a/Docs/open-magnifier.md +++ b/Docs/open-magnifier.md @@ -1,4 +1,4 @@ -## The *open-magnifier.ps1* PowerShell Script +## The *open-magnifier.ps1* Script This script launches the Windows Screen Magnifier application. diff --git a/Docs/open-microsoft-paint.md b/Docs/open-microsoft-paint.md index bb216f10..8adcdcb7 100644 --- a/Docs/open-microsoft-paint.md +++ b/Docs/open-microsoft-paint.md @@ -1,4 +1,4 @@ -## The *open-microsoft-paint.ps1* PowerShell Script +## The *open-microsoft-paint.ps1* Script This script launches the Microsoft Paint application. diff --git a/Docs/open-microsoft-solitaire.md b/Docs/open-microsoft-solitaire.md index 0d67eeb9..259437f6 100644 --- a/Docs/open-microsoft-solitaire.md +++ b/Docs/open-microsoft-solitaire.md @@ -1,4 +1,4 @@ -## The *open-microsoft-solitaire.ps1* PowerShell Script +## The *open-microsoft-solitaire.ps1* Script This script launches the Microsoft Solitaire application. diff --git a/Docs/open-microsoft-store.md b/Docs/open-microsoft-store.md index 2ce9f427..ce750cf9 100644 --- a/Docs/open-microsoft-store.md +++ b/Docs/open-microsoft-store.md @@ -1,4 +1,4 @@ -## The *open-microsoft-store.ps1* PowerShell Script +## The *open-microsoft-store.ps1* Script This script launches the Microsoft Store application. diff --git a/Docs/open-microsoft-teams.md b/Docs/open-microsoft-teams.md index b587321e..798b7cdc 100644 --- a/Docs/open-microsoft-teams.md +++ b/Docs/open-microsoft-teams.md @@ -1,4 +1,4 @@ -## The *open-microsoft-teams.ps1* PowerShell Script +## The *open-microsoft-teams.ps1* Script This script launches the Microsoft Teams application. diff --git a/Docs/open-microsoft-weather.md b/Docs/open-microsoft-weather.md index 5bedf6d8..b6249ad2 100644 --- a/Docs/open-microsoft-weather.md +++ b/Docs/open-microsoft-weather.md @@ -1,4 +1,4 @@ -## The *open-microsoft-weather.ps1* PowerShell Script +## The *open-microsoft-weather.ps1* Script This script launches the Microsoft Weather application. diff --git a/Docs/open-music-folder.md b/Docs/open-music-folder.md index 59688725..d0559514 100644 --- a/Docs/open-music-folder.md +++ b/Docs/open-music-folder.md @@ -1,4 +1,4 @@ -## The *open-music-folder.ps1* PowerShell Script +## The *open-music-folder.ps1* Script This script launches the File Explorer with the user's music folder. diff --git a/Docs/open-netflix.md b/Docs/open-netflix.md index ffcf1b7d..782effae 100644 --- a/Docs/open-netflix.md +++ b/Docs/open-netflix.md @@ -1,4 +1,4 @@ -## The *open-netflix.ps1* PowerShell Script +## The *open-netflix.ps1* Script This script launches the Netflix application. diff --git a/Docs/open-note-pad.md b/Docs/open-note-pad.md index 44f89a8f..71c9a0e7 100644 --- a/Docs/open-note-pad.md +++ b/Docs/open-note-pad.md @@ -1,4 +1,4 @@ -## The *open-note-pad.ps1* PowerShell Script +## The *open-note-pad.ps1* Script This script launches the Notepad application. diff --git a/Docs/open-obs-studio.md b/Docs/open-obs-studio.md index 8e5db975..4638ac82 100644 --- a/Docs/open-obs-studio.md +++ b/Docs/open-obs-studio.md @@ -1,4 +1,4 @@ -## The *open-obs-studio.ps1* PowerShell Script +## The *open-obs-studio.ps1* Script open-obs-studio.ps1 diff --git a/Docs/open-office-365.md b/Docs/open-office-365.md index d5e98757..3391ac12 100644 --- a/Docs/open-office-365.md +++ b/Docs/open-office-365.md @@ -1,4 +1,4 @@ -## The *open-office-365.ps1* PowerShell Script +## The *open-office-365.ps1* Script This script launches the Web browser with the Microsoft Office 365 website. diff --git a/Docs/open-one-drive-folder.md b/Docs/open-one-drive-folder.md index f840ee2c..f1cfa14f 100644 --- a/Docs/open-one-drive-folder.md +++ b/Docs/open-one-drive-folder.md @@ -1,4 +1,4 @@ -## The *open-one-drive-folder.ps1* PowerShell Script +## The *open-one-drive-folder.ps1* Script This script launches the File Explorer with the user's OneDrive folder. diff --git a/Docs/open-outlook.md b/Docs/open-outlook.md index fcc31605..8f81aa01 100644 --- a/Docs/open-outlook.md +++ b/Docs/open-outlook.md @@ -1,4 +1,4 @@ -## The *open-outlook.ps1* PowerShell Script +## The *open-outlook.ps1* Script open-outlook.ps1 diff --git a/Docs/open-paint-three-d.md b/Docs/open-paint-three-d.md index 810c8820..7958b6c7 100644 --- a/Docs/open-paint-three-d.md +++ b/Docs/open-paint-three-d.md @@ -1,4 +1,4 @@ -## The *open-paint-three-d.ps1* PowerShell Script +## The *open-paint-three-d.ps1* Script This script launches the Paint 3D application. diff --git a/Docs/open-pictures-folder.md b/Docs/open-pictures-folder.md index aa76ee68..27491128 100644 --- a/Docs/open-pictures-folder.md +++ b/Docs/open-pictures-folder.md @@ -1,4 +1,4 @@ -## The *open-pictures-folder.ps1* PowerShell Script +## The *open-pictures-folder.ps1* Script This script launches the File Explorer with the user's pictures folder. diff --git a/Docs/open-recycle-bin-folder.md b/Docs/open-recycle-bin-folder.md index 1b29a0dc..eee81105 100644 --- a/Docs/open-recycle-bin-folder.md +++ b/Docs/open-recycle-bin-folder.md @@ -1,4 +1,4 @@ -## The *open-recycle-bin-folder.ps1* PowerShell Script +## The *open-recycle-bin-folder.ps1* Script This script launches the File Explorer with the user's recycle bin folder. diff --git a/Docs/open-remote-desktop.md b/Docs/open-remote-desktop.md index 81bcd7b9..1f98306b 100644 --- a/Docs/open-remote-desktop.md +++ b/Docs/open-remote-desktop.md @@ -1,4 +1,4 @@ -## The *open-remote-desktop.ps1* PowerShell Script +## The *open-remote-desktop.ps1* Script This script launches the Remote Desktop application. diff --git a/Docs/open-repos-folder.md b/Docs/open-repos-folder.md index d4ab427a..3a152f14 100644 --- a/Docs/open-repos-folder.md +++ b/Docs/open-repos-folder.md @@ -1,4 +1,4 @@ -## The *open-repos-folder.ps1* PowerShell Script +## The *open-repos-folder.ps1* Script This script launches the File Explorer with the user's Git repositories folder. diff --git a/Docs/open-screen-clip.md b/Docs/open-screen-clip.md index 59c07ffc..6962d883 100644 --- a/Docs/open-screen-clip.md +++ b/Docs/open-screen-clip.md @@ -1,4 +1,4 @@ -## The *open-screen-clip.ps1* PowerShell Script +## The *open-screen-clip.ps1* Script This script launches the Screen Clip application. diff --git a/Docs/open-screen-sketch.md b/Docs/open-screen-sketch.md index f70326d8..d7d12332 100644 --- a/Docs/open-screen-sketch.md +++ b/Docs/open-screen-sketch.md @@ -1,4 +1,4 @@ -## The *open-screen-sketch.ps1* PowerShell Script +## The *open-screen-sketch.ps1* Script This script launches the Screen Sketch application. diff --git a/Docs/open-skype.md b/Docs/open-skype.md index 9748ffa2..bcde9d3d 100644 --- a/Docs/open-skype.md +++ b/Docs/open-skype.md @@ -1,4 +1,4 @@ -## The *open-skype.ps1* PowerShell Script +## The *open-skype.ps1* Script This script launches the Skype application. diff --git a/Docs/open-snipping-tool.md b/Docs/open-snipping-tool.md index 53692050..8dd40632 100644 --- a/Docs/open-snipping-tool.md +++ b/Docs/open-snipping-tool.md @@ -1,4 +1,4 @@ -## The *open-snipping-tool.ps1* PowerShell Script +## The *open-snipping-tool.ps1* Script This script launches the Snipping Tool application. diff --git a/Docs/open-space-weather.md b/Docs/open-space-weather.md index 02906894..a12e5cd2 100644 --- a/Docs/open-space-weather.md +++ b/Docs/open-space-weather.md @@ -1,4 +1,4 @@ -## The *open-space-weather.ps1* PowerShell Script +## The *open-space-weather.ps1* Script This script launches the Web browser with the Space Weather website. diff --git a/Docs/open-speed-test.md b/Docs/open-speed-test.md index 30bb081f..87f43f2c 100644 --- a/Docs/open-speed-test.md +++ b/Docs/open-speed-test.md @@ -1,4 +1,4 @@ -## The *open-speed-test.ps1* PowerShell Script +## The *open-speed-test.ps1* Script This script launches the Web browser with Cloudflare's speed test website. diff --git a/Docs/open-spotify.md b/Docs/open-spotify.md index 60d5a5b6..02db12c6 100644 --- a/Docs/open-spotify.md +++ b/Docs/open-spotify.md @@ -1,4 +1,4 @@ -## The *open-spotify.ps1* PowerShell Script +## The *open-spotify.ps1* Script This script launches the Spotify application. diff --git a/Docs/open-stack-overflow.md b/Docs/open-stack-overflow.md index 7239a04a..cc96dc11 100644 --- a/Docs/open-stack-overflow.md +++ b/Docs/open-stack-overflow.md @@ -1,4 +1,4 @@ -## The *open-stack-overflow.ps1* PowerShell Script +## The *open-stack-overflow.ps1* Script This script launches the Web browser with the Stack Overflow website. diff --git a/Docs/open-start-page.md b/Docs/open-start-page.md index ea9e7ff4..103df9fd 100644 --- a/Docs/open-start-page.md +++ b/Docs/open-start-page.md @@ -1,4 +1,4 @@ -## The *open-start-page.ps1* PowerShell Script +## The *open-start-page.ps1* Script This script launches the Web browser with the Startpage website. diff --git a/Docs/open-street-map.md b/Docs/open-street-map.md index 3aad1579..67cb2e38 100644 --- a/Docs/open-street-map.md +++ b/Docs/open-street-map.md @@ -1,4 +1,4 @@ -## The *open-street-map.ps1* PowerShell Script +## The *open-street-map.ps1* Script This script launches the Web browser with the OpenStreetMap website. diff --git a/Docs/open-task-manager.md b/Docs/open-task-manager.md index 39487601..6d67174b 100644 --- a/Docs/open-task-manager.md +++ b/Docs/open-task-manager.md @@ -1,4 +1,4 @@ -## The *open-task-manager.ps1* PowerShell Script +## The *open-task-manager.ps1* Script This script launches the Windows Task Manager application. diff --git a/Docs/open-temporary-folder.md b/Docs/open-temporary-folder.md index 572fab71..5462e864 100644 --- a/Docs/open-temporary-folder.md +++ b/Docs/open-temporary-folder.md @@ -1,4 +1,4 @@ -## The *open-temporary-folder.ps1* PowerShell Script +## The *open-temporary-folder.ps1* Script open-temporary-folder.ps1 diff --git a/Docs/open-three-d-viewer.md b/Docs/open-three-d-viewer.md index 843c44e0..2b71a822 100644 --- a/Docs/open-three-d-viewer.md +++ b/Docs/open-three-d-viewer.md @@ -1,4 +1,4 @@ -## The *open-three-d-viewer.ps1* PowerShell Script +## The *open-three-d-viewer.ps1* Script This script launches the 3D-Viewer application. diff --git a/Docs/open-thunderbird.md b/Docs/open-thunderbird.md index 377d9410..10389656 100644 --- a/Docs/open-thunderbird.md +++ b/Docs/open-thunderbird.md @@ -1,4 +1,4 @@ -## The *open-thunderbird.ps1* PowerShell Script +## The *open-thunderbird.ps1* Script open-thunderbird.ps1 diff --git a/Docs/open-videos-folders.md b/Docs/open-videos-folders.md index 1a55eeed..25625d42 100644 --- a/Docs/open-videos-folders.md +++ b/Docs/open-videos-folders.md @@ -1,4 +1,4 @@ -## The *open-videos-folders.ps1* PowerShell Script +## The *open-videos-folders.ps1* Script This script launches the File Explorer with the user's videos folder. diff --git a/Docs/open-visual-studio.md b/Docs/open-visual-studio.md index 14328e67..58b3427a 100644 --- a/Docs/open-visual-studio.md +++ b/Docs/open-visual-studio.md @@ -1,4 +1,4 @@ -## The *open-visual-studio.ps1* PowerShell Script +## The *open-visual-studio.ps1* Script open-visual-studio.ps1 diff --git a/Docs/open-vpn-settings.md b/Docs/open-vpn-settings.md index b8f1b174..98816207 100644 --- a/Docs/open-vpn-settings.md +++ b/Docs/open-vpn-settings.md @@ -1,4 +1,4 @@ -## The *open-vpn-settings.ps1* PowerShell Script +## The *open-vpn-settings.ps1* Script This PowerShell script launches the VPN settings of Windows. diff --git a/Docs/open-windows-defender.md b/Docs/open-windows-defender.md index c325cbe8..2350ea38 100644 --- a/Docs/open-windows-defender.md +++ b/Docs/open-windows-defender.md @@ -1,4 +1,4 @@ -## The *open-windows-defender.ps1* PowerShell Script +## The *open-windows-defender.ps1* Script This script launches the Windows Defender application. diff --git a/Docs/open-windows-terminal.md b/Docs/open-windows-terminal.md index 6de11165..f63ff679 100644 --- a/Docs/open-windows-terminal.md +++ b/Docs/open-windows-terminal.md @@ -1,4 +1,4 @@ -## The *open-windows-terminal.ps1* PowerShell Script +## The *open-windows-terminal.ps1* Script This script launches the Windows Terminal application. diff --git a/Docs/open-xing.md b/Docs/open-xing.md index 3bafe277..7e067f5c 100644 --- a/Docs/open-xing.md +++ b/Docs/open-xing.md @@ -1,4 +1,4 @@ -## The *open-xing.ps1* PowerShell Script +## The *open-xing.ps1* Script This script launches the XING application. diff --git a/Docs/pick-commit.md b/Docs/pick-commit.md index 336c814f..023bf4cf 100644 --- a/Docs/pick-commit.md +++ b/Docs/pick-commit.md @@ -1,4 +1,4 @@ -## The *pick-commit.ps1* PowerShell Script +## The *pick-commit.ps1* Script Cherry-picks a Git commit into one or more branches (branch names need to be separated by spaces) NOTE: in case of merge conflicts the script stops immediately! diff --git a/Docs/ping-weather.md b/Docs/ping-weather.md index c7a2f918..3c3b6605 100644 --- a/Docs/ping-weather.md +++ b/Docs/ping-weather.md @@ -1,4 +1,4 @@ -## The *ping-weather.ps1* PowerShell Script +## The *ping-weather.ps1* Script This PowerShell script continuously shows the current weather conditions (similar to htop, 10 min update interval by default). diff --git a/Docs/play-bee-sound.md b/Docs/play-bee-sound.md index 6344b133..bc3465f0 100644 --- a/Docs/play-bee-sound.md +++ b/Docs/play-bee-sound.md @@ -1,4 +1,4 @@ -## The *play-bee-sound.ps1* PowerShell Script +## The *play-bee-sound.ps1* Script This PowerShell script plays a bee sound. diff --git a/Docs/play-beep-sound.md b/Docs/play-beep-sound.md index 3300b765..f77c5ba9 100644 --- a/Docs/play-beep-sound.md +++ b/Docs/play-beep-sound.md @@ -1,4 +1,4 @@ -## The *play-beep-sound.ps1* PowerShell Script +## The *play-beep-sound.ps1* Script This PowerShell script plays a short beep sound. diff --git a/Docs/play-cat-sound.md b/Docs/play-cat-sound.md index 1f2626a5..2ce5e1e9 100644 --- a/Docs/play-cat-sound.md +++ b/Docs/play-cat-sound.md @@ -1,4 +1,4 @@ -## The *play-cat-sound.ps1* PowerShell Script +## The *play-cat-sound.ps1* Script This PowerShell script plays a cat sound. diff --git a/Docs/play-cow-sound.md b/Docs/play-cow-sound.md index aeb894e1..6541880b 100644 --- a/Docs/play-cow-sound.md +++ b/Docs/play-cow-sound.md @@ -1,4 +1,4 @@ -## The *play-cow-sound.ps1* PowerShell Script +## The *play-cow-sound.ps1* Script This PowerShell script plays a cow sound. diff --git a/Docs/play-dog-sound.md b/Docs/play-dog-sound.md index 4570a59f..ed964e8e 100644 --- a/Docs/play-dog-sound.md +++ b/Docs/play-dog-sound.md @@ -1,4 +1,4 @@ -## The *play-dog-sound.ps1* PowerShell Script +## The *play-dog-sound.ps1* Script This PowerShell script plays a dog sound. diff --git a/Docs/play-donkey-sound.md b/Docs/play-donkey-sound.md index 08695ae6..98a169a2 100644 --- a/Docs/play-donkey-sound.md +++ b/Docs/play-donkey-sound.md @@ -1,4 +1,4 @@ -## The *play-donkey-sound.ps1* PowerShell Script +## The *play-donkey-sound.ps1* Script This PowerShell script plays a donkey sound. diff --git a/Docs/play-elephant-sound.md b/Docs/play-elephant-sound.md index 57ce7593..726d1b07 100644 --- a/Docs/play-elephant-sound.md +++ b/Docs/play-elephant-sound.md @@ -1,4 +1,4 @@ -## The *play-elephant-sound.ps1* PowerShell Script +## The *play-elephant-sound.ps1* Script This PowerShell script plays an elephant sound. diff --git a/Docs/play-elk-sound.md b/Docs/play-elk-sound.md index 80696d19..e96952a8 100644 --- a/Docs/play-elk-sound.md +++ b/Docs/play-elk-sound.md @@ -1,4 +1,4 @@ -## The *play-elk-sound.ps1* PowerShell Script +## The *play-elk-sound.ps1* Script This PowerShell script plays an elk sound. diff --git a/Docs/play-files.md b/Docs/play-files.md index 7b3ceafb..f5c6164b 100644 --- a/Docs/play-files.md +++ b/Docs/play-files.md @@ -1,4 +1,4 @@ -## The *play-files.ps1* PowerShell Script +## The *play-files.ps1* Script This PowerShell script plays the given audio files (supporting MP3 and WAV format). diff --git a/Docs/play-frog-sound.md b/Docs/play-frog-sound.md index 804abdcf..acef8234 100644 --- a/Docs/play-frog-sound.md +++ b/Docs/play-frog-sound.md @@ -1,4 +1,4 @@ -## The *play-frog-sound.ps1* PowerShell Script +## The *play-frog-sound.ps1* Script This PowerShell script plays a frog sound. diff --git a/Docs/play-goat-sound.md b/Docs/play-goat-sound.md index 3ce30b4f..7c14907c 100644 --- a/Docs/play-goat-sound.md +++ b/Docs/play-goat-sound.md @@ -1,4 +1,4 @@ -## The *play-goat-sound.ps1* PowerShell Script +## The *play-goat-sound.ps1* Script This PowerShell script plays a goat sound. diff --git a/Docs/play-gorilla-sound.md b/Docs/play-gorilla-sound.md index 0d7b0b06..78627826 100644 --- a/Docs/play-gorilla-sound.md +++ b/Docs/play-gorilla-sound.md @@ -1,4 +1,4 @@ -## The *play-gorilla-sound.ps1* PowerShell Script +## The *play-gorilla-sound.ps1* Script This PowerShell script plays a gorilla sound. diff --git a/Docs/play-happy-birthday.md b/Docs/play-happy-birthday.md index 10da993f..55308312 100644 --- a/Docs/play-happy-birthday.md +++ b/Docs/play-happy-birthday.md @@ -1,4 +1,4 @@ -## The *play-happy-birthday.ps1* PowerShell Script +## The *play-happy-birthday.ps1* Script This PowerShell script plays the famous Happy Birthday song. diff --git a/Docs/play-horse-sound.md b/Docs/play-horse-sound.md index 05ac19ac..8fde8dc7 100644 --- a/Docs/play-horse-sound.md +++ b/Docs/play-horse-sound.md @@ -1,4 +1,4 @@ -## The *play-horse-sound.ps1* PowerShell Script +## The *play-horse-sound.ps1* Script This PowerShell script plays a horse sound. diff --git a/Docs/play-imperial-march.md b/Docs/play-imperial-march.md index 742c268e..d1800b44 100644 --- a/Docs/play-imperial-march.md +++ b/Docs/play-imperial-march.md @@ -1,4 +1,4 @@ -## The *play-imperial-march.ps1* PowerShell Script +## The *play-imperial-march.ps1* Script This PowerShell script plays the Imperial March used in the Star Wars film series. diff --git a/Docs/play-jingle-bells.md b/Docs/play-jingle-bells.md index a21c9e15..2dc73d67 100644 --- a/Docs/play-jingle-bells.md +++ b/Docs/play-jingle-bells.md @@ -1,4 +1,4 @@ -## The *play-jingle-bells.ps1* PowerShell Script +## The *play-jingle-bells.ps1* Script This PowerShell script plays the famous Jingle Bells song. diff --git a/Docs/play-lion-sound.md b/Docs/play-lion-sound.md index 83eea646..0c48f6bc 100644 --- a/Docs/play-lion-sound.md +++ b/Docs/play-lion-sound.md @@ -1,4 +1,4 @@ -## The *play-lion-sound.ps1* PowerShell Script +## The *play-lion-sound.ps1* Script This PowerShell script plays a lion sound. diff --git a/Docs/play-m3u.md b/Docs/play-m3u.md index 3252a3c9..5a5b1f23 100644 --- a/Docs/play-m3u.md +++ b/Docs/play-m3u.md @@ -1,4 +1,4 @@ -## The *play-m3u.ps1* PowerShell Script +## The *play-m3u.ps1* Script This PowerShell script plays the given playlist (in .M3U file format) diff --git a/Docs/play-mission-impossible.md b/Docs/play-mission-impossible.md index e507ebe2..738bdf3e 100644 --- a/Docs/play-mission-impossible.md +++ b/Docs/play-mission-impossible.md @@ -1,4 +1,4 @@ -## The *play-mission-impossible.ps1* PowerShell Script +## The *play-mission-impossible.ps1* Script This PowerShell script plays the Mission Impossible theme. diff --git a/Docs/play-mp3.md b/Docs/play-mp3.md index 73e4edba..96a85e0f 100644 --- a/Docs/play-mp3.md +++ b/Docs/play-mp3.md @@ -1,4 +1,4 @@ -## The *play-mp3.ps1* PowerShell Script +## The *play-mp3.ps1* Script This PowerShell script plays a sound file in .MP3 file format. diff --git a/Docs/play-parrot-sound.md b/Docs/play-parrot-sound.md index c9f4cb86..25ea6d84 100644 --- a/Docs/play-parrot-sound.md +++ b/Docs/play-parrot-sound.md @@ -1,4 +1,4 @@ -## The *play-parrot-sound.ps1* PowerShell Script +## The *play-parrot-sound.ps1* Script This PowerShell script plays a parrot sound. diff --git a/Docs/play-pig-sound.md b/Docs/play-pig-sound.md index 213cde9c..483408d0 100644 --- a/Docs/play-pig-sound.md +++ b/Docs/play-pig-sound.md @@ -1,4 +1,4 @@ -## The *play-pig-sound.ps1* PowerShell Script +## The *play-pig-sound.ps1* Script This PowerShell script plays a pig sound. diff --git a/Docs/play-rattlesnake-sound.md b/Docs/play-rattlesnake-sound.md index c4c101f2..37a264a6 100644 --- a/Docs/play-rattlesnake-sound.md +++ b/Docs/play-rattlesnake-sound.md @@ -1,4 +1,4 @@ -## The *play-rattlesnake-sound.ps1* PowerShell Script +## The *play-rattlesnake-sound.ps1* Script This PowerShell script plays a rattlesnake sound. diff --git a/Docs/play-super-mario.md b/Docs/play-super-mario.md index 59da898f..b8c2c2d1 100644 --- a/Docs/play-super-mario.md +++ b/Docs/play-super-mario.md @@ -1,4 +1,4 @@ -## The *play-super-mario.ps1* PowerShell Script +## The *play-super-mario.ps1* Script This PowerShell script plays the Super Mario intro. diff --git a/Docs/play-tetris-melody.md b/Docs/play-tetris-melody.md index b73360e1..21567fc1 100644 --- a/Docs/play-tetris-melody.md +++ b/Docs/play-tetris-melody.md @@ -1,4 +1,4 @@ -## The *play-tetris-melody.ps1* PowerShell Script +## The *play-tetris-melody.ps1* Script This PowerShell script plays the Tetris melody. diff --git a/Docs/play-vulture-sound.md b/Docs/play-vulture-sound.md index 89ce119a..ed9713e5 100644 --- a/Docs/play-vulture-sound.md +++ b/Docs/play-vulture-sound.md @@ -1,4 +1,4 @@ -## The *play-vulture-sound.ps1* PowerShell Script +## The *play-vulture-sound.ps1* Script This PowerShell script plays a vulture sound. diff --git a/Docs/play-wolf-sound.md b/Docs/play-wolf-sound.md index 186d89c5..662a7d21 100644 --- a/Docs/play-wolf-sound.md +++ b/Docs/play-wolf-sound.md @@ -1,4 +1,4 @@ -## The *play-wolf-sound.ps1* PowerShell Script +## The *play-wolf-sound.ps1* Script This PowerShell script plays a wolf sound. diff --git a/Docs/poweroff.md b/Docs/poweroff.md index 82a70336..de37ec6a 100644 --- a/Docs/poweroff.md +++ b/Docs/poweroff.md @@ -1,4 +1,4 @@ -## The *poweroff.ps1* PowerShell Script +## The *poweroff.ps1* Script This script halts the local computer immediately (needs admin rights). diff --git a/Docs/print-image.md b/Docs/print-image.md index 393a6eb4..10d75b0d 100644 --- a/Docs/print-image.md +++ b/Docs/print-image.md @@ -1,4 +1,4 @@ -## The *print-image.ps1* PowerShell Script +## The *print-image.ps1* Script This PowerShell script shows the printer dialogue to print the given image file. diff --git a/Docs/publish-to-ipfs.md b/Docs/publish-to-ipfs.md index 64400eba..6320d393 100644 --- a/Docs/publish-to-ipfs.md +++ b/Docs/publish-to-ipfs.md @@ -1,4 +1,4 @@ -## The *publish-to-ipfs.ps1* PowerShell Script +## The *publish-to-ipfs.ps1* Script This script publishes the given files and folders to IPFS. diff --git a/Docs/pull-repo.md b/Docs/pull-repo.md index 85f53429..795ab21c 100644 --- a/Docs/pull-repo.md +++ b/Docs/pull-repo.md @@ -1,4 +1,4 @@ -## The *pull-repo.ps1* PowerShell Script +## The *pull-repo.ps1* Script This PowerShell script pulls updates for a local Git repository (including submodules). diff --git a/Docs/pull-repos.md b/Docs/pull-repos.md index b049041d..c2c1cfbf 100644 --- a/Docs/pull-repos.md +++ b/Docs/pull-repos.md @@ -1,4 +1,4 @@ -## The *pull-repos.ps1* PowerShell Script +## The *pull-repos.ps1* Script This PowerShell script pulls updates for all Git repositories in a folder (including submodules). diff --git a/Docs/query-smart-data.md b/Docs/query-smart-data.md index a2229332..33d660d5 100644 --- a/Docs/query-smart-data.md +++ b/Docs/query-smart-data.md @@ -1,4 +1,4 @@ -## The *query-smart-data.ps1* PowerShell Script +## The *query-smart-data.ps1* Script Queries the S.M.A.R.T. data of your HDD/SSD's and saves it to the current/given directory. (use smart-data2csv.ps1 to generate a CSV table for analysis). diff --git a/Docs/reboot-fritzbox.md b/Docs/reboot-fritzbox.md index 0444976c..934af35d 100644 --- a/Docs/reboot-fritzbox.md +++ b/Docs/reboot-fritzbox.md @@ -1,4 +1,4 @@ -## The *reboot-fritzbox.ps1* PowerShell Script +## The *reboot-fritzbox.ps1* Script This PowerShell script reboots the FRITZ!Box device diff --git a/Docs/reboot.md b/Docs/reboot.md index ed8b921d..70d8e7ac 100644 --- a/Docs/reboot.md +++ b/Docs/reboot.md @@ -1,4 +1,4 @@ -## The *reboot.ps1* PowerShell Script +## The *reboot.ps1* Script This PowerShell script reboots the local computer immediately (needs admin rights). diff --git a/Docs/remind-me.md b/Docs/remind-me.md index 0f1ac2c5..215c0de0 100644 --- a/Docs/remind-me.md +++ b/Docs/remind-me.md @@ -1,4 +1,4 @@ -## The *remind-me.ps1* PowerShell Script +## The *remind-me.ps1* Script This PowerShell script creates a scheduled task that will display a popup message. diff --git a/Docs/remove-empty-dirs.md b/Docs/remove-empty-dirs.md index 320f1712..1632be2d 100644 --- a/Docs/remove-empty-dirs.md +++ b/Docs/remove-empty-dirs.md @@ -1,4 +1,4 @@ -## The *remove-empty-dirs.ps1* PowerShell Script +## The *remove-empty-dirs.ps1* Script This PowerShell script removes all empty subfolders within a directory tree. diff --git a/Docs/remove-print-jobs.md b/Docs/remove-print-jobs.md index 788f0b9f..6a414358 100644 --- a/Docs/remove-print-jobs.md +++ b/Docs/remove-print-jobs.md @@ -1,4 +1,4 @@ -## The *remove-print-jobs.ps1* PowerShell Script +## The *remove-print-jobs.ps1* Script This PowerShell script removes all print jobs from all printer devices. diff --git a/Docs/remove-tag.md b/Docs/remove-tag.md index 50be4fdb..b25c6336 100644 --- a/Docs/remove-tag.md +++ b/Docs/remove-tag.md @@ -1,4 +1,4 @@ -## The *remove-tag.ps1* PowerShell Script +## The *remove-tag.ps1* Script This PowerShell script removes a Git tag, either locally, remote, or both. diff --git a/Docs/replace-in-files.md b/Docs/replace-in-files.md index 09d1508a..d42c73b7 100644 --- a/Docs/replace-in-files.md +++ b/Docs/replace-in-files.md @@ -1,4 +1,4 @@ -## The *replace-in-files.ps1* PowerShell Script +## The *replace-in-files.ps1* Script This PowerShell script searches and replaces a pattern in the given files by the replacement. diff --git a/Docs/restart-network-adapters.md b/Docs/restart-network-adapters.md index c9cb1d26..64927928 100644 --- a/Docs/restart-network-adapters.md +++ b/Docs/restart-network-adapters.md @@ -1,4 +1,4 @@ -## The *restart-network-adapters.ps1* PowerShell Script +## The *restart-network-adapters.ps1* Script This PowerShell script restarts all local network adapters (needs admin rights). diff --git a/Docs/roll-a-dice.md b/Docs/roll-a-dice.md index ed634c2b..83ed7d83 100644 --- a/Docs/roll-a-dice.md +++ b/Docs/roll-a-dice.md @@ -1,4 +1,4 @@ -## The *roll-a-dice.ps1* PowerShell Script +## The *roll-a-dice.ps1* Script This PowerShell script rolls a dice and returns the number by text-to-speech (TTS). diff --git a/Docs/save-screenshot.md b/Docs/save-screenshot.md index 68e44df8..47b64b34 100644 --- a/Docs/save-screenshot.md +++ b/Docs/save-screenshot.md @@ -1,4 +1,4 @@ -## The *save-screenshot.ps1* PowerShell Script +## The *save-screenshot.ps1* Script This PowerShell script takes a single screenshot and saves it into a target folder (the user's pictures folder by default). diff --git a/Docs/scan-ports.md b/Docs/scan-ports.md index eeecc63e..a8b09d9a 100644 --- a/Docs/scan-ports.md +++ b/Docs/scan-ports.md @@ -1,4 +1,4 @@ -## The *scan-ports.ps1* PowerShell Script +## The *scan-ports.ps1* Script This PowerShell script scans the network for open or closed ports. diff --git a/Docs/search-filename.md b/Docs/search-filename.md index 77a0d428..08d90cea 100644 --- a/Docs/search-filename.md +++ b/Docs/search-filename.md @@ -1,4 +1,4 @@ -## The *search-filename.ps1* PowerShell Script +## The *search-filename.ps1* Script This PowerShell script serves as a quick Powershell replacement to the search functionality in Windows After you pass in a root folder and a search term, the script will list all files and folders matching that phrase. diff --git a/Docs/search-files.md b/Docs/search-files.md index 87d0cdca..9bb561fb 100644 --- a/Docs/search-files.md +++ b/Docs/search-files.md @@ -1,4 +1,4 @@ -## The *search-files.ps1* PowerShell Script +## The *search-files.ps1* Script This PowerShell script searches for a pattern in the given files. diff --git a/Docs/send-email.md b/Docs/send-email.md index 784009c6..c3b55a6b 100644 --- a/Docs/send-email.md +++ b/Docs/send-email.md @@ -1,4 +1,4 @@ -## The *send-email.ps1* PowerShell Script +## The *send-email.ps1* Script This PowerShell script sends an email message. diff --git a/Docs/send-tcp.md b/Docs/send-tcp.md index 99dd3a0c..ffa1590b 100644 --- a/Docs/send-tcp.md +++ b/Docs/send-tcp.md @@ -1,4 +1,4 @@ -## The *send-tcp.ps1* PowerShell Script +## The *send-tcp.ps1* Script This PowerShell script sends a TCP message to the given IP address and port. diff --git a/Docs/send-udp.md b/Docs/send-udp.md index 7bdd486a..be5aad5f 100644 --- a/Docs/send-udp.md +++ b/Docs/send-udp.md @@ -1,4 +1,4 @@ -## The *send-udp.ps1* PowerShell Script +## The *send-udp.ps1* Script diff --git a/Docs/set-profile.md b/Docs/set-profile.md index cf80547c..968ae027 100644 --- a/Docs/set-profile.md +++ b/Docs/set-profile.md @@ -1,4 +1,4 @@ -## The *set-profile.ps1* PowerShell Script +## The *set-profile.ps1* Script This PowerShell script sets the PowerShell profile for the current user. diff --git a/Docs/set-timer.md b/Docs/set-timer.md index 20279106..44ca59e7 100644 --- a/Docs/set-timer.md +++ b/Docs/set-timer.md @@ -1,4 +1,4 @@ -## The *set-timer.ps1* PowerShell Script +## The *set-timer.ps1* Script This PowerShell script sets a timer for a countdown. diff --git a/Docs/set-volume.md b/Docs/set-volume.md index ddf8b15b..1258552c 100644 --- a/Docs/set-volume.md +++ b/Docs/set-volume.md @@ -1,4 +1,4 @@ -## The *set-volume.ps1* PowerShell Script +## The *set-volume.ps1* Script This PowerShell script sets the audio volume in percent. diff --git a/Docs/set-wallpaper.md b/Docs/set-wallpaper.md index b4720679..fe834825 100644 --- a/Docs/set-wallpaper.md +++ b/Docs/set-wallpaper.md @@ -1,4 +1,4 @@ -## The *set-wallpaper.ps1* PowerShell Script +## The *set-wallpaper.ps1* Script This PowerShell script sets the given image file as desktop wallpaper (.JPG or .PNG supported) diff --git a/Docs/show-lightnings.md b/Docs/show-lightnings.md index 7f403ece..57b392ff 100644 --- a/Docs/show-lightnings.md +++ b/Docs/show-lightnings.md @@ -1,4 +1,4 @@ -## The *show-lightnings.ps1* PowerShell Script +## The *show-lightnings.ps1* Script This PowerShell script launches the Web browser and shows lightnings in OpenStreetMap. diff --git a/Docs/show-notification.md b/Docs/show-notification.md index 01ca54a7..151f5e18 100644 --- a/Docs/show-notification.md +++ b/Docs/show-notification.md @@ -1,4 +1,4 @@ -## The *show-notification.ps1* PowerShell Script +## The *show-notification.ps1* Script This PowerShell script shows a toast-message notification for the Windows 10 Notification Center. diff --git a/Docs/show-traffic.md b/Docs/show-traffic.md index 7ca30e19..b2e56249 100644 --- a/Docs/show-traffic.md +++ b/Docs/show-traffic.md @@ -1,4 +1,4 @@ -## The *show-traffic.ps1* PowerShell Script +## The *show-traffic.ps1* Script This PowerShell script launches the Web browser with MSN showing the current traffic. diff --git a/Docs/simulate-presence.md b/Docs/simulate-presence.md index 828b1d96..c4d05b16 100644 --- a/Docs/simulate-presence.md +++ b/Docs/simulate-presence.md @@ -1,4 +1,4 @@ -## The *simulate-presence.ps1* PowerShell Script +## The *simulate-presence.ps1* Script This PowerShell script simulates the human presence against burglars. diff --git a/Docs/smart-data2csv.md b/Docs/smart-data2csv.md index 6b35d276..d595b457 100644 --- a/Docs/smart-data2csv.md +++ b/Docs/smart-data2csv.md @@ -1,4 +1,4 @@ -## The *smart-data2csv.ps1* PowerShell Script +## The *smart-data2csv.ps1* Script This PowerShell script converts the S.M.A.R.T. JSON files in the current/given directory to a CSV table for analysis (use query-smart-data.ps1 to generate those JSON files). diff --git a/Docs/speak-arabic.md b/Docs/speak-arabic.md index fae5925b..b24ab503 100644 --- a/Docs/speak-arabic.md +++ b/Docs/speak-arabic.md @@ -1,4 +1,4 @@ -## The *speak-arabic.ps1* PowerShell Script +## The *speak-arabic.ps1* Script This PowerShell script speaks the given text with an Arabic text-to-speech (TTS) voice. diff --git a/Docs/speak-checklist.md b/Docs/speak-checklist.md index e396aee5..c3e68566 100644 --- a/Docs/speak-checklist.md +++ b/Docs/speak-checklist.md @@ -1,4 +1,4 @@ -## The *speak-checklist.ps1* PowerShell Script +## The *speak-checklist.ps1* Script This PowerShell script speaks the given checklist by text-to-speech (TTS). diff --git a/Docs/speak-countdown.md b/Docs/speak-countdown.md index 40767f36..58ec6458 100644 --- a/Docs/speak-countdown.md +++ b/Docs/speak-countdown.md @@ -1,4 +1,4 @@ -## The *speak-countdown.ps1* PowerShell Script +## The *speak-countdown.ps1* Script This PowerShell script speaks a countdown by text-to-speech (TTS) starting from a given number. diff --git a/Docs/speak-danish.md b/Docs/speak-danish.md index bc655a7d..b579ab47 100644 --- a/Docs/speak-danish.md +++ b/Docs/speak-danish.md @@ -1,4 +1,4 @@ -## The *speak-danish.ps1* PowerShell Script +## The *speak-danish.ps1* Script This PowerShell script speaks the given text with a Danish text-to-speech (TTS) voice. diff --git a/Docs/speak-dutch.md b/Docs/speak-dutch.md index 9f207e80..d2947461 100644 --- a/Docs/speak-dutch.md +++ b/Docs/speak-dutch.md @@ -1,4 +1,4 @@ -## The *speak-dutch.ps1* PowerShell Script +## The *speak-dutch.ps1* Script This PowerShell script speaks the given text with a Dutch text-to-speech (TTS) voice. diff --git a/Docs/speak-english.md b/Docs/speak-english.md index cf592fc8..d26c6d7a 100644 --- a/Docs/speak-english.md +++ b/Docs/speak-english.md @@ -1,4 +1,4 @@ -## The *speak-english.ps1* PowerShell Script +## The *speak-english.ps1* Script This PowerShell scripts speaks the given text with an English text-to-speech (TTS) voice. diff --git a/Docs/speak-epub.md b/Docs/speak-epub.md index 05f174f7..14122751 100644 --- a/Docs/speak-epub.md +++ b/Docs/speak-epub.md @@ -1,4 +1,4 @@ -## The *speak-epub.ps1* PowerShell Script +## The *speak-epub.ps1* Script This PowerShell script speaks the content of the given Epub file by text-to-speech (TTS). diff --git a/Docs/speak-file.md b/Docs/speak-file.md index 5b332992..0bdb9a0e 100644 --- a/Docs/speak-file.md +++ b/Docs/speak-file.md @@ -1,4 +1,4 @@ -## The *speak-file.ps1* PowerShell Script +## The *speak-file.ps1* Script This PowerShell script speaks the content of the given text file by text-to-speech (TTS). diff --git a/Docs/speak-french.md b/Docs/speak-french.md index e06caab3..edb4b7cd 100644 --- a/Docs/speak-french.md +++ b/Docs/speak-french.md @@ -1,4 +1,4 @@ -## The *speak-french.ps1* PowerShell Script +## The *speak-french.ps1* Script This PowerShell script speaks the given text with a French text-to-speech (TTS) voice. diff --git a/Docs/speak-german.md b/Docs/speak-german.md index 394a5888..cb56843b 100644 --- a/Docs/speak-german.md +++ b/Docs/speak-german.md @@ -1,4 +1,4 @@ -## The *speak-german.ps1* PowerShell Script +## The *speak-german.ps1* Script This PowerShell script speaks the given text with a German text-to-speech (TTS) voice. diff --git a/Docs/speak-greek.md b/Docs/speak-greek.md index a28b0e59..cfd978cd 100644 --- a/Docs/speak-greek.md +++ b/Docs/speak-greek.md @@ -1,4 +1,4 @@ -## The *speak-greek.ps1* PowerShell Script +## The *speak-greek.ps1* Script This PowerShell script speaks the given text with a Greek text-to-speech (TTS) voice. diff --git a/Docs/speak-hindi.md b/Docs/speak-hindi.md index 18c97f30..8ffcdf90 100644 --- a/Docs/speak-hindi.md +++ b/Docs/speak-hindi.md @@ -1,4 +1,4 @@ -## The *speak-hindi.ps1* PowerShell Script +## The *speak-hindi.ps1* Script This PowerShell script speaks the given text with a Hindi text-to-speech (TTS) voice. diff --git a/Docs/speak-italian.md b/Docs/speak-italian.md index 2192ded5..58f20c0d 100644 --- a/Docs/speak-italian.md +++ b/Docs/speak-italian.md @@ -1,4 +1,4 @@ -## The *speak-italian.ps1* PowerShell Script +## The *speak-italian.ps1* Script This PowerShell script speaks the given text with an Italian text-to-speech (TTS) voice. diff --git a/Docs/speak-japanese.md b/Docs/speak-japanese.md index 339f8dc1..4402ae38 100644 --- a/Docs/speak-japanese.md +++ b/Docs/speak-japanese.md @@ -1,4 +1,4 @@ -## The *speak-japanese.ps1* PowerShell Script +## The *speak-japanese.ps1* Script This PowerShell script speaks the given text with a Japanese text-to-speech (TTS) voice. diff --git a/Docs/speak-latin.md b/Docs/speak-latin.md index 21d3ec00..d88fab8e 100644 --- a/Docs/speak-latin.md +++ b/Docs/speak-latin.md @@ -1,4 +1,4 @@ -## The *speak-latin.ps1* PowerShell Script +## The *speak-latin.ps1* Script This PowerShell script speaks the given text with a Latin text-to-speech (TTS) voice. diff --git a/Docs/speak-mandarin.md b/Docs/speak-mandarin.md index 6b2e8611..eb0d423c 100644 --- a/Docs/speak-mandarin.md +++ b/Docs/speak-mandarin.md @@ -1,4 +1,4 @@ -## The *speak-mandarin.ps1* PowerShell Script +## The *speak-mandarin.ps1* Script This PowerShell script speaks the given text with a Mandarin text-to-speech (TTS) voice. diff --git a/Docs/speak-polish.md b/Docs/speak-polish.md index c2cd89ae..148efaa4 100644 --- a/Docs/speak-polish.md +++ b/Docs/speak-polish.md @@ -1,4 +1,4 @@ -## The *speak-polish.ps1* PowerShell Script +## The *speak-polish.ps1* Script This PowerShell script speaks the given text with a Polish text-to-speech (TTS) voice. diff --git a/Docs/speak-portuguese.md b/Docs/speak-portuguese.md index 2a9a73c6..fd7d5ed5 100644 --- a/Docs/speak-portuguese.md +++ b/Docs/speak-portuguese.md @@ -1,4 +1,4 @@ -## The *speak-portuguese.ps1* PowerShell Script +## The *speak-portuguese.ps1* Script This PowerShell script speaks the given text with a Portuguese text-to-speech (TTS) voice. diff --git a/Docs/speak-spanish.md b/Docs/speak-spanish.md index 2cdb5871..127d6a9c 100644 --- a/Docs/speak-spanish.md +++ b/Docs/speak-spanish.md @@ -1,4 +1,4 @@ -## The *speak-spanish.ps1* PowerShell Script +## The *speak-spanish.ps1* Script This PowerShell script speaks the given text with a Spanish text-to-speech (TTS) voice. diff --git a/Docs/speak-swedish.md b/Docs/speak-swedish.md index 19074227..08f2feb8 100644 --- a/Docs/speak-swedish.md +++ b/Docs/speak-swedish.md @@ -1,4 +1,4 @@ -## The *speak-swedish.ps1* PowerShell Script +## The *speak-swedish.ps1* Script This PowerShell script speaks the given text with a Swedish text-to-speech (TTS) voice. diff --git a/Docs/speak-test.md b/Docs/speak-test.md index b8487f4b..fffe5acc 100644 --- a/Docs/speak-test.md +++ b/Docs/speak-test.md @@ -1,4 +1,4 @@ -## The *speak-test.ps1* PowerShell Script +## The *speak-test.ps1* Script speak-test.ps1 diff --git a/Docs/speak-text.md b/Docs/speak-text.md index 6afafb92..3c459799 100644 --- a/Docs/speak-text.md +++ b/Docs/speak-text.md @@ -1,4 +1,4 @@ -## The *speak-text.ps1* PowerShell Script +## The *speak-text.ps1* Script This PowerShell script speaks the given text by the default text-to-speech (TTS) voice. diff --git a/Docs/speak-ukrainian.md b/Docs/speak-ukrainian.md index 6cbd371e..45ace2b7 100644 --- a/Docs/speak-ukrainian.md +++ b/Docs/speak-ukrainian.md @@ -1,4 +1,4 @@ -## The *speak-ukrainian.ps1* PowerShell Script +## The *speak-ukrainian.ps1* Script This PowerShell script speaks the given text with a Ukrainian text-to-speech (TTS) voice. diff --git a/Docs/spell-word.md b/Docs/spell-word.md index ee6aa4ba..37934322 100644 --- a/Docs/spell-word.md +++ b/Docs/spell-word.md @@ -1,4 +1,4 @@ -## The *spell-word.ps1* PowerShell Script +## The *spell-word.ps1* Script This PowerShell script spells the given word by text-to-speech (TTS). diff --git a/Docs/start-calibre-server.md b/Docs/start-calibre-server.md index 99dbccf0..ddad8ace 100644 --- a/Docs/start-calibre-server.md +++ b/Docs/start-calibre-server.md @@ -1,4 +1,4 @@ -## The *start-calibre-server.ps1* PowerShell Script +## The *start-calibre-server.ps1* Script This PowerShell script starts a local Calibre server as background process (using Web port 8099 by default). diff --git a/Docs/start-ipfs-server.md b/Docs/start-ipfs-server.md index a2f16094..d3dc3484 100644 --- a/Docs/start-ipfs-server.md +++ b/Docs/start-ipfs-server.md @@ -1,4 +1,4 @@ -## The *start-ipfs-server.ps1* PowerShell Script +## The *start-ipfs-server.ps1* Script This PowerShell script starts a local IPFS server as a daemon process. diff --git a/Docs/suspend.md b/Docs/suspend.md index cb86e0f4..5d322083 100644 --- a/Docs/suspend.md +++ b/Docs/suspend.md @@ -1,4 +1,4 @@ -## The *suspend.ps1* PowerShell Script +## The *suspend.ps1* Script This PowerShell script suspends the local computer immediately. diff --git a/Docs/switch-branch.md b/Docs/switch-branch.md index 5dd542a7..8f27361f 100644 --- a/Docs/switch-branch.md +++ b/Docs/switch-branch.md @@ -1,4 +1,4 @@ -## The *switch-branch.ps1* PowerShell Script +## The *switch-branch.ps1* Script This PowerShell script switches to another branch in a Git repository (including submodules). @@ -16,7 +16,7 @@ switch-branch.ps1 [[-BranchName] ] [[-RepoDir] ] [ - Specifies the path to the Git repository + Specifies the path to the local Git repository Required? false Position? 2 @@ -51,7 +51,7 @@ https://github.com/fleschutz/PowerShell .PARAMETER BranchName Specifies the branch name .PARAMETER RepoDir - Specifies the path to the Git repository + Specifies the path to the local Git repository .EXAMPLE PS> ./switch-branch main C:\MyRepo .LINK @@ -64,7 +64,7 @@ param([string]$BranchName = "", [string]$RepoDir = "$PWD") try { if ($BranchName -eq "") { $BranchName = read-host "Enter name of branch to switch to" } - if ($RepoDir -eq "") { $RepoDir = read-host "Enter path to the Git repository" } + if ($RepoDir -eq "") { $RepoDir = read-host "Enter path to the local Git repository" } $StopWatch = [system.diagnostics.stopwatch]::startNew() @@ -74,7 +74,7 @@ try { $RepoDir = Resolve-Path "$RepoDir" $RepoDirName = (Get-Item "$RepoDir").Name - "⏳ (2/6) Checking folder 📂$RepoDirName..." + "⏳ (2/6) Checking Git repository 📂$RepoDirName..." if (-not(Test-Path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" } $Result = (git status) @@ -85,7 +85,7 @@ try { & git -C "$RepoDir" fetch --all --prune --prune-tags --force if ($lastExitCode -ne "0") { throw "'git fetch' failed with exit code $lastExitCode" } - "⏳ (4/6) Switching to branch '$BranchName'..." + "⏳ (4/6) Switching to '$BranchName' branch..." & git -C "$RepoDir" checkout --recurse-submodules "$BranchName" if ($lastExitCode -ne "0") { throw "'git checkout $BranchName' failed with exit code $lastExitCode" } @@ -98,7 +98,7 @@ try { if ($lastExitCode -ne "0") { throw "'git submodule update' failed with exit code $lastExitCode" } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ switched 📂$RepoDirName repo to $BranchName branch in $Elapsed sec" + "✔️ switched Git repository 📂$RepoDirName to $BranchName branch in $Elapsed sec." exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/switch-shelly1.md b/Docs/switch-shelly1.md index a9ecb0e3..0f380c5b 100644 --- a/Docs/switch-shelly1.md +++ b/Docs/switch-shelly1.md @@ -1,4 +1,4 @@ -## The *switch-shelly1.ps1* PowerShell Script +## The *switch-shelly1.ps1* Script This PowerShell script switches a Shelly1 device in the local network. diff --git a/Docs/sync-repo.md b/Docs/sync-repo.md index 62776648..cdf563c8 100644 --- a/Docs/sync-repo.md +++ b/Docs/sync-repo.md @@ -1,4 +1,4 @@ -## The *sync-repo.ps1* PowerShell Script +## The *sync-repo.ps1* Script This PowerShell script synchronizes a Git repository by push & pull (including submodules). diff --git a/Docs/tell-joke.md b/Docs/tell-joke.md index 9226d062..5693809d 100644 --- a/Docs/tell-joke.md +++ b/Docs/tell-joke.md @@ -1,4 +1,4 @@ -## The *tell-joke.ps1* PowerShell Script +## The *tell-joke.ps1* Script This PowerShell script selects a random Chuck Norris joke in Data/jokes.csv and speaks it by text-to-speech (TTS). diff --git a/Docs/tell-quote.md b/Docs/tell-quote.md index 914646bb..66f509f7 100644 --- a/Docs/tell-quote.md +++ b/Docs/tell-quote.md @@ -1,4 +1,4 @@ -## The *tell-quote.ps1* PowerShell Script +## The *tell-quote.ps1* Script This PowerShell script selects a random quote in Data/quotes.csv and speaks it by text-to-speech (TTS). @@ -39,15 +39,14 @@ https://github.com/fleschutz/PowerShell #> try { - $Table = import-csv "$PSScriptRoot/../Data/quotes.csv" + $Table = Import-CSV "$PSScriptRoot/../Data/quotes.csv" $Generator = New-Object System.Random $Index = [int]$Generator.next(0, $Table.Count - 1) - $Quote = $Table[$Index].Quote - $Author = $Table[$Index].Author - $Reply = "$Quote (by $Author)" + $Quote = $Table[$Index].QUOTE + $Author = $Table[$Index].AUTHOR - & "$PSScriptRoot/speak-english.ps1" "$Reply" + & "$PSScriptRoot/speak-english.ps1" "$Quote (by $Author)" exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/toggle-caps-lock.md b/Docs/toggle-caps-lock.md index 94b7c4c6..9a381038 100644 --- a/Docs/toggle-caps-lock.md +++ b/Docs/toggle-caps-lock.md @@ -1,4 +1,4 @@ -## The *toggle-caps-lock.ps1* PowerShell Script +## The *toggle-caps-lock.ps1* Script This PowerShell script toggles the Caps Lock key state. diff --git a/Docs/toggle-num-lock.md b/Docs/toggle-num-lock.md index e94f384a..ecc6a268 100644 --- a/Docs/toggle-num-lock.md +++ b/Docs/toggle-num-lock.md @@ -1,4 +1,4 @@ -## The *toggle-num-lock.ps1* PowerShell Script +## The *toggle-num-lock.ps1* Script This PowerShell script toggles the Num Lock key state. diff --git a/Docs/toggle-scroll-lock.md b/Docs/toggle-scroll-lock.md index 109e45cd..029f297a 100644 --- a/Docs/toggle-scroll-lock.md +++ b/Docs/toggle-scroll-lock.md @@ -1,4 +1,4 @@ -## The *toggle-scroll-lock.ps1* PowerShell Script +## The *toggle-scroll-lock.ps1* Script This PowerShell script toggles the Scroll Lock key state. diff --git a/Docs/translate-file.md b/Docs/translate-file.md index 64664172..57b4201d 100644 --- a/Docs/translate-file.md +++ b/Docs/translate-file.md @@ -1,4 +1,4 @@ -## The *translate-file.ps1* PowerShell Script +## The *translate-file.ps1* Script This PowerShell script translates a text file into another language. diff --git a/Docs/translate-files.md b/Docs/translate-files.md index b7380f8c..6be64608 100644 --- a/Docs/translate-files.md +++ b/Docs/translate-files.md @@ -1,4 +1,4 @@ -## The *translate-files.ps1* PowerShell Script +## The *translate-files.ps1* Script diff --git a/Docs/translate-text.md b/Docs/translate-text.md index 6a566f08..37af6ddb 100644 --- a/Docs/translate-text.md +++ b/Docs/translate-text.md @@ -1,4 +1,4 @@ -## The *translate-text.ps1* PowerShell Script +## The *translate-text.ps1* Script This PowerShell script translates text into other languages. diff --git a/Docs/turn-volume-down.md b/Docs/turn-volume-down.md index a94fafaf..b82cb963 100644 --- a/Docs/turn-volume-down.md +++ b/Docs/turn-volume-down.md @@ -1,4 +1,4 @@ -## The *turn-volume-down.ps1* PowerShell Script +## The *turn-volume-down.ps1* Script This PowerShell script turns the audio volume down (-10% by default). diff --git a/Docs/turn-volume-fully-up.md b/Docs/turn-volume-fully-up.md index e96b7b24..69445bea 100644 --- a/Docs/turn-volume-fully-up.md +++ b/Docs/turn-volume-fully-up.md @@ -1,4 +1,4 @@ -## The *turn-volume-fully-up.ps1* PowerShell Script +## The *turn-volume-fully-up.ps1* Script This PowerShell script turns the audio volume fully up to 100%. diff --git a/Docs/turn-volume-off.md b/Docs/turn-volume-off.md index dcd200ed..b02648a0 100644 --- a/Docs/turn-volume-off.md +++ b/Docs/turn-volume-off.md @@ -1,4 +1,4 @@ -## The *turn-volume-off.ps1* PowerShell Script +## The *turn-volume-off.ps1* Script This PowerShell script mutes the default audio device immediately. diff --git a/Docs/turn-volume-on.md b/Docs/turn-volume-on.md index d7c79bef..40a7a206 100644 --- a/Docs/turn-volume-on.md +++ b/Docs/turn-volume-on.md @@ -1,4 +1,4 @@ -## The *turn-volume-on.ps1* PowerShell Script +## The *turn-volume-on.ps1* Script This PowerShell script immediately unmutes the audio output. diff --git a/Docs/turn-volume-up.md b/Docs/turn-volume-up.md index d631c8f6..841f86ba 100644 --- a/Docs/turn-volume-up.md +++ b/Docs/turn-volume-up.md @@ -1,4 +1,4 @@ -## The *turn-volume-up.ps1* PowerShell Script +## The *turn-volume-up.ps1* Script This PowerShell script turns the audio volume up (+10% by default). diff --git a/Docs/uninstall-crystal-disk-info.md b/Docs/uninstall-crystal-disk-info.md index 9e9a67f8..8f3dc485 100644 --- a/Docs/uninstall-crystal-disk-info.md +++ b/Docs/uninstall-crystal-disk-info.md @@ -1,4 +1,4 @@ -## The *uninstall-crystal-disk-info.ps1* PowerShell Script +## The *uninstall-crystal-disk-info.ps1* Script This PowerShell script uninstalls CrystalDiskInfo from the local computer. diff --git a/Docs/uninstall-crystal-disk-mark.md b/Docs/uninstall-crystal-disk-mark.md index a24ee3d3..35b3a243 100644 --- a/Docs/uninstall-crystal-disk-mark.md +++ b/Docs/uninstall-crystal-disk-mark.md @@ -1,4 +1,4 @@ -## The *uninstall-crystal-disk-mark.ps1* PowerShell Script +## The *uninstall-crystal-disk-mark.ps1* Script This PowerShell script uninstalls CrystalDiskMark from the local computer. diff --git a/Docs/uninstall-discord.md b/Docs/uninstall-discord.md index 86641478..3c3dcbbe 100644 --- a/Docs/uninstall-discord.md +++ b/Docs/uninstall-discord.md @@ -1,4 +1,4 @@ -## The *uninstall-discord.ps1* PowerShell Script +## The *uninstall-discord.ps1* Script This PowerShell script uninstalls Discord from the local computer. diff --git a/Docs/uninstall-edge.md b/Docs/uninstall-edge.md index 6c69cc74..1150eb2c 100644 --- a/Docs/uninstall-edge.md +++ b/Docs/uninstall-edge.md @@ -1,4 +1,4 @@ -## The *uninstall-edge.ps1* PowerShell Script +## The *uninstall-edge.ps1* Script This PowerShell script uninstalls Microsoft Edge from the local computer. diff --git a/Docs/uninstall-firefox.md b/Docs/uninstall-firefox.md index f3a822f1..09b0fe00 100644 --- a/Docs/uninstall-firefox.md +++ b/Docs/uninstall-firefox.md @@ -1,4 +1,4 @@ -## The *uninstall-firefox.ps1* PowerShell Script +## The *uninstall-firefox.ps1* Script This PowerShell script uninstalls Mozilla Firefox from the local computer. diff --git a/Docs/uninstall-git-extensions.md b/Docs/uninstall-git-extensions.md index c4c0d03f..0fe89fe6 100644 --- a/Docs/uninstall-git-extensions.md +++ b/Docs/uninstall-git-extensions.md @@ -1,4 +1,4 @@ -## The *uninstall-git-extensions.ps1* PowerShell Script +## The *uninstall-git-extensions.ps1* Script This PowerShell script uninstalls Git Extensions from the local computer. diff --git a/Docs/uninstall-irfanview.md b/Docs/uninstall-irfanview.md index 8df1baa4..a81d957b 100644 --- a/Docs/uninstall-irfanview.md +++ b/Docs/uninstall-irfanview.md @@ -1,4 +1,4 @@ -## The *uninstall-irfanview.ps1* PowerShell Script +## The *uninstall-irfanview.ps1* Script This PowerShell script uninstalls IrfanView from the local computer. diff --git a/Docs/uninstall-microsoft-teams.md b/Docs/uninstall-microsoft-teams.md index fb2daa8a..ddff777c 100644 --- a/Docs/uninstall-microsoft-teams.md +++ b/Docs/uninstall-microsoft-teams.md @@ -1,4 +1,4 @@ -## The *uninstall-microsoft-teams.ps1* PowerShell Script +## The *uninstall-microsoft-teams.ps1* Script This PowerShell script uninstalls Microsoft Teams from the local computer. diff --git a/Docs/uninstall-netflix.md b/Docs/uninstall-netflix.md index 95be060d..28441b4f 100644 --- a/Docs/uninstall-netflix.md +++ b/Docs/uninstall-netflix.md @@ -1,4 +1,4 @@ -## The *uninstall-netflix.ps1* PowerShell Script +## The *uninstall-netflix.ps1* Script This PowerShell script uninstalls Netflix from the local computer. diff --git a/Docs/uninstall-nine-zip.md b/Docs/uninstall-nine-zip.md index 1392386a..9c18be5b 100644 --- a/Docs/uninstall-nine-zip.md +++ b/Docs/uninstall-nine-zip.md @@ -1,4 +1,4 @@ -## The *uninstall-nine-zip.ps1* PowerShell Script +## The *uninstall-nine-zip.ps1* Script This PowerShell script uninstalls 9 ZIP from the local computer. diff --git a/Docs/uninstall-one-calendar.md b/Docs/uninstall-one-calendar.md index a679e7ee..175d8ae5 100644 --- a/Docs/uninstall-one-calendar.md +++ b/Docs/uninstall-one-calendar.md @@ -1,4 +1,4 @@ -## The *uninstall-one-calendar.ps1* PowerShell Script +## The *uninstall-one-calendar.ps1* Script uninstall-one-calendar.ps1 diff --git a/Docs/uninstall-opera-browser.md b/Docs/uninstall-opera-browser.md index d38b4a90..ecba2d93 100644 --- a/Docs/uninstall-opera-browser.md +++ b/Docs/uninstall-opera-browser.md @@ -1,4 +1,4 @@ -## The *uninstall-opera-browser.ps1* PowerShell Script +## The *uninstall-opera-browser.ps1* Script This PowerShell script uninstalls Opera Browser from the local computer. diff --git a/Docs/uninstall-opera-gx.md b/Docs/uninstall-opera-gx.md index 43303167..cd5ee92d 100644 --- a/Docs/uninstall-opera-gx.md +++ b/Docs/uninstall-opera-gx.md @@ -1,4 +1,4 @@ -## The *uninstall-opera-gx.ps1* PowerShell Script +## The *uninstall-opera-gx.ps1* Script This PowerShell script uninstalls Opera GX from the local computer. diff --git a/Docs/uninstall-paint-3d.md b/Docs/uninstall-paint-3d.md index 6f20fb63..40f0babc 100644 --- a/Docs/uninstall-paint-3d.md +++ b/Docs/uninstall-paint-3d.md @@ -1,4 +1,4 @@ -## The *uninstall-paint-3d.ps1* PowerShell Script +## The *uninstall-paint-3d.ps1* Script This PowerShell script uninstalls Paint 3D from the local computer. diff --git a/Docs/uninstall-rufus.md b/Docs/uninstall-rufus.md index d3b1764a..149fac25 100644 --- a/Docs/uninstall-rufus.md +++ b/Docs/uninstall-rufus.md @@ -1,4 +1,4 @@ -## The *uninstall-rufus.ps1* PowerShell Script +## The *uninstall-rufus.ps1* Script This PowerShell script uninstalls Rufus from the local computer. diff --git a/Docs/uninstall-skype.md b/Docs/uninstall-skype.md index 03ae845d..4d37abbd 100644 --- a/Docs/uninstall-skype.md +++ b/Docs/uninstall-skype.md @@ -1,4 +1,4 @@ -## The *uninstall-skype.ps1* PowerShell Script +## The *uninstall-skype.ps1* Script This PowerShell script uninstalls Skype from the local computer. diff --git a/Docs/uninstall-spotify.md b/Docs/uninstall-spotify.md index 30cc07ae..e5f91135 100644 --- a/Docs/uninstall-spotify.md +++ b/Docs/uninstall-spotify.md @@ -1,4 +1,4 @@ -## The *uninstall-spotify.ps1* PowerShell Script +## The *uninstall-spotify.ps1* Script This PowerShell script uninstalls Spotify from the local computer. diff --git a/Docs/uninstall-twitter.md b/Docs/uninstall-twitter.md index 2d0f20f2..c18e799e 100644 --- a/Docs/uninstall-twitter.md +++ b/Docs/uninstall-twitter.md @@ -1,4 +1,4 @@ -## The *uninstall-twitter.ps1* PowerShell Script +## The *uninstall-twitter.ps1* Script This PowerShell script uninstalls Twitter from the local computer. diff --git a/Docs/uninstall-visual-studio-code.md b/Docs/uninstall-visual-studio-code.md index 3bc2649f..57a4f60b 100644 --- a/Docs/uninstall-visual-studio-code.md +++ b/Docs/uninstall-visual-studio-code.md @@ -1,4 +1,4 @@ -## The *uninstall-visual-studio-code.ps1* PowerShell Script +## The *uninstall-visual-studio-code.ps1* Script This PowerShell script uninstalls Visual Studio Code from the local computer. diff --git a/Docs/uninstall-vlc.md b/Docs/uninstall-vlc.md index d7f3425a..29308234 100644 --- a/Docs/uninstall-vlc.md +++ b/Docs/uninstall-vlc.md @@ -1,4 +1,4 @@ -## The *uninstall-vlc.ps1* PowerShell Script +## The *uninstall-vlc.ps1* Script This PowerShell script uninstalls the VLC media player from the local computer. diff --git a/Docs/uninstall-windows-terminal.md b/Docs/uninstall-windows-terminal.md index 5aa223bc..31a6f08a 100644 --- a/Docs/uninstall-windows-terminal.md +++ b/Docs/uninstall-windows-terminal.md @@ -1,4 +1,4 @@ -## The *uninstall-windows-terminal.ps1* PowerShell Script +## The *uninstall-windows-terminal.ps1* Script This PowerShell script uninstalls Windows Terminal from the local computer. diff --git a/Docs/upgrade-ubuntu.md b/Docs/upgrade-ubuntu.md index 7b25c03a..c58452ef 100644 --- a/Docs/upgrade-ubuntu.md +++ b/Docs/upgrade-ubuntu.md @@ -1,4 +1,4 @@ -## The *upgrade-ubuntu.ps1* PowerShell Script +## The *upgrade-ubuntu.ps1* Script This PowerShell script upgrades Ubuntu Linux to the latest (LTS) release. diff --git a/Docs/upload-file.md b/Docs/upload-file.md index fa210add..97e0cc33 100644 --- a/Docs/upload-file.md +++ b/Docs/upload-file.md @@ -1,4 +1,4 @@ -## The *upload-file.ps1* PowerShell Script +## The *upload-file.ps1* Script This PowerShell script uploads a local file to a FTP server. diff --git a/Docs/upload-to-dropbox.md b/Docs/upload-to-dropbox.md index 4776a4f2..571079ba 100644 --- a/Docs/upload-to-dropbox.md +++ b/Docs/upload-to-dropbox.md @@ -1,4 +1,4 @@ -## The *upload-to-dropbox.ps1* PowerShell Script +## The *upload-to-dropbox.ps1* Script This PowerShell script uploads a local file to Dropbox. diff --git a/Docs/wakeup.md b/Docs/wakeup.md index 2d33b8cd..77bfa046 100644 --- a/Docs/wakeup.md +++ b/Docs/wakeup.md @@ -1,4 +1,4 @@ -## The *wakeup.ps1* PowerShell Script +## The *wakeup.ps1* Script This PowerShell script sends a magic UDP packet twice to a computer to wake him up (requires Wake-On-LAN). diff --git a/Docs/weather-report.md b/Docs/weather-report.md index 86396f78..dbdf3d68 100644 --- a/Docs/weather-report.md +++ b/Docs/weather-report.md @@ -1,4 +1,4 @@ -## The *weather-report.ps1* PowerShell Script +## The *weather-report.ps1* Script This PowerShell script lists the local weather report. diff --git a/Docs/weather.md b/Docs/weather.md index e71d7aee..abf69fc1 100644 --- a/Docs/weather.md +++ b/Docs/weather.md @@ -1,4 +1,4 @@ -## The *weather.ps1* PowerShell Script +## The *weather.ps1* Script This PowerShell script lists the current weather forecast. diff --git a/Docs/what-is.md b/Docs/what-is.md index 38053bc0..444d5e99 100644 --- a/Docs/what-is.md +++ b/Docs/what-is.md @@ -1,4 +1,4 @@ -## The *what-is.ps1* PowerShell Script +## The *what-is.ps1* Script This PowerShell script prints a description of the given abbreviation. diff --git a/Docs/write-animated.md b/Docs/write-animated.md index 93fdc1fa..339b98c6 100644 --- a/Docs/write-animated.md +++ b/Docs/write-animated.md @@ -1,4 +1,4 @@ -## The *write-animated.ps1* PowerShell Script +## The *write-animated.ps1* Script This PowerShell script writes animated text. @@ -146,7 +146,7 @@ if ($Line1 -eq "") { $Line5 = "Best regards," $Line6 = "Markus" } -write-host "" + WriteLine $Line1 $Speed WriteLine $Line2 $Speed WriteLine $Line3 $Speed @@ -156,7 +156,6 @@ WriteLine $Line6 $Speed WriteLine $Line7 $Speed WriteLine $Line8 $Speed WriteLine $Line9 $Speed -write-host "" exit 0 # success ``` diff --git a/Docs/write-big.md b/Docs/write-big.md index d5b7a38e..c8059ae0 100644 --- a/Docs/write-big.md +++ b/Docs/write-big.md @@ -1,4 +1,4 @@ -## The *write-big.ps1* PowerShell Script +## The *write-big.ps1* Script This PowerShell script writes the given text in big letters. diff --git a/Docs/write-blue.md b/Docs/write-blue.md index ae31ca0c..2f32fe97 100644 --- a/Docs/write-blue.md +++ b/Docs/write-blue.md @@ -1,4 +1,4 @@ -## The *write-blue.ps1* PowerShell Script +## The *write-blue.ps1* Script This PowerShell script writes text in a blue foreground color. diff --git a/Docs/write-braille.md b/Docs/write-braille.md index c0736f8c..d8add098 100644 --- a/Docs/write-braille.md +++ b/Docs/write-braille.md @@ -1,4 +1,4 @@ -## The *write-braille.ps1* PowerShell Script +## The *write-braille.ps1* Script This PowerShell script writes text in Braille. diff --git a/Docs/write-chart.md b/Docs/write-chart.md index a7ccb61b..64cb83e8 100644 --- a/Docs/write-chart.md +++ b/Docs/write-chart.md @@ -1,4 +1,4 @@ -## The *write-chart.ps1* PowerShell Script +## The *write-chart.ps1* Script write-chart.ps1 diff --git a/Docs/write-code.md b/Docs/write-code.md index 6f62823f..2013189f 100644 --- a/Docs/write-code.md +++ b/Docs/write-code.md @@ -1,4 +1,4 @@ -## The *write-code.ps1* PowerShell Script +## The *write-code.ps1* Script This PowerShell script generates and writes PowerShell code on the console (for fun). diff --git a/Docs/write-date.md b/Docs/write-date.md index 50a4cc75..31588c24 100644 --- a/Docs/write-date.md +++ b/Docs/write-date.md @@ -1,4 +1,4 @@ -## The *write-date.ps1* PowerShell Script +## The *write-date.ps1* Script This PowerShell script determines and writes the current date. diff --git a/Docs/write-fractal.md b/Docs/write-fractal.md index c017cc48..e85aa75a 100644 --- a/Docs/write-fractal.md +++ b/Docs/write-fractal.md @@ -1,4 +1,4 @@ -## The *write-fractal.ps1* PowerShell Script +## The *write-fractal.ps1* Script write-fractal.ps1 diff --git a/Docs/write-green.md b/Docs/write-green.md index f6754a37..acdff6f2 100644 --- a/Docs/write-green.md +++ b/Docs/write-green.md @@ -1,4 +1,4 @@ -## The *write-green.ps1* PowerShell Script +## The *write-green.ps1* Script This PowerShell script writes text in a green foreground color. diff --git a/Docs/write-joke.md b/Docs/write-joke.md index d3d9708d..be959930 100644 --- a/Docs/write-joke.md +++ b/Docs/write-joke.md @@ -1,4 +1,4 @@ -## The *write-joke.ps1* PowerShell Script +## The *write-joke.ps1* Script This PowerShell script writes a random Juck Norris joke to the console. diff --git a/Docs/write-lowercase.md b/Docs/write-lowercase.md index 11388e90..8ee5a65d 100644 --- a/Docs/write-lowercase.md +++ b/Docs/write-lowercase.md @@ -1,4 +1,4 @@ -## The *write-lowercase.ps1* PowerShell Script +## The *write-lowercase.ps1* Script This PowerShell script writes text in lowercase letters. diff --git a/Docs/write-marquee.md b/Docs/write-marquee.md index 4d4ce6cf..b6adae44 100644 --- a/Docs/write-marquee.md +++ b/Docs/write-marquee.md @@ -1,4 +1,4 @@ -## The *write-marquee.ps1* PowerShell Script +## The *write-marquee.ps1* Script This PowerShell script writes the given text as marquee. diff --git a/Docs/write-matrix.md b/Docs/write-matrix.md index b17fc171..bcad0644 100644 --- a/Docs/write-matrix.md +++ b/Docs/write-matrix.md @@ -1,4 +1,4 @@ -## The *write-matrix.ps1* PowerShell Script +## The *write-matrix.ps1* Script write-matrix.ps1 diff --git a/Docs/write-morse-code.md b/Docs/write-morse-code.md index 69689675..a8508da9 100644 --- a/Docs/write-morse-code.md +++ b/Docs/write-morse-code.md @@ -1,4 +1,4 @@ -## The *write-morse-code.ps1* PowerShell Script +## The *write-morse-code.ps1* Script This PowerShell script writes text in Morse code. diff --git a/Docs/write-motd.md b/Docs/write-motd.md index d7a30136..b6598b09 100644 --- a/Docs/write-motd.md +++ b/Docs/write-motd.md @@ -1,4 +1,4 @@ -## The *write-motd.ps1* PowerShell Script +## The *write-motd.ps1* Script This PowerShell script writes the message of the day (MOTD). diff --git a/Docs/write-quote.md b/Docs/write-quote.md index a0d66852..e12f2c51 100644 --- a/Docs/write-quote.md +++ b/Docs/write-quote.md @@ -1,4 +1,4 @@ -## The *write-quote.ps1* PowerShell Script +## The *write-quote.ps1* Script This PowerShell script writes a random quote to the console. @@ -27,7 +27,7 @@ https://github.com/fleschutz/PowerShell ```powershell <# .SYNOPSIS - Writes a random quote to the console + Writes a quote to the console .DESCRIPTION This PowerShell script writes a random quote to the console. .EXAMPLE @@ -39,19 +39,18 @@ https://github.com/fleschutz/PowerShell #> try { - $Table = import-csv "$PSScriptRoot/../Data/quotes.csv" + $Table = Import-CSV "$PSScriptRoot/../Data/quotes.csv" $Generator = New-Object System.Random $Index = [int]$Generator.next(0, $Table.Count - 1) - $Quote = $Table[$Index].Quote - $Author = $Table[$Index].Author + $Quote = $Table[$Index].QUOTE + $Author = $Table[$Index].AUTHOR "" - write-host '“'$Quote' ”' + Write-Host '“'$Quote' ”' $Spaces = " " $Spaces = $Spaces.Substring(0, $Quote.Length - $Author.Length) - "$Spaces $($Author.toUpper())" - + "$Spaces $($Author.toUpper())" exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Docs/write-red.md b/Docs/write-red.md index 72ef2aa6..29c18d3b 100644 --- a/Docs/write-red.md +++ b/Docs/write-red.md @@ -1,4 +1,4 @@ -## The *write-red.ps1* PowerShell Script +## The *write-red.ps1* Script This PowerShell script writes text in a red foreground color. diff --git a/Docs/write-rot13.md b/Docs/write-rot13.md index 826e735b..506d847c 100644 --- a/Docs/write-rot13.md +++ b/Docs/write-rot13.md @@ -1,4 +1,4 @@ -## The *write-rot13.ps1* PowerShell Script +## The *write-rot13.ps1* Script This PowerShell script writes text encoded or decoded with ROT13. diff --git a/Docs/write-sine-curves.md b/Docs/write-sine-curves.md index b3f85cbc..725fd2f3 100644 --- a/Docs/write-sine-curves.md +++ b/Docs/write-sine-curves.md @@ -1,4 +1,4 @@ -## The *write-sine-curves.ps1* PowerShell Script +## The *write-sine-curves.ps1* Script This PowerShell script writes sine curves. diff --git a/Docs/write-time.md b/Docs/write-time.md index d30b5eec..3fe0b3f6 100644 --- a/Docs/write-time.md +++ b/Docs/write-time.md @@ -1,4 +1,4 @@ -## The *write-time.ps1* PowerShell Script +## The *write-time.ps1* Script This PowerShell script determines and writes the current time. diff --git a/Docs/write-typewriter.md b/Docs/write-typewriter.md index f3fe00db..6b6ef974 100644 --- a/Docs/write-typewriter.md +++ b/Docs/write-typewriter.md @@ -1,4 +1,4 @@ -## The *write-typewriter.ps1* PowerShell Script +## The *write-typewriter.ps1* Script This PowerShell script writes the given text with the typewriter effect. diff --git a/Docs/write-uppercase.md b/Docs/write-uppercase.md index c164f306..64c7399d 100644 --- a/Docs/write-uppercase.md +++ b/Docs/write-uppercase.md @@ -1,4 +1,4 @@ -## The *write-uppercase.ps1* PowerShell Script +## The *write-uppercase.ps1* Script This PowerShell script writes text in uppercase letters. diff --git a/Docs/write-vertical.md b/Docs/write-vertical.md index 927b5fb1..f287aee8 100644 --- a/Docs/write-vertical.md +++ b/Docs/write-vertical.md @@ -1,4 +1,4 @@ -## The *write-vertical.ps1* PowerShell Script +## The *write-vertical.ps1* Script This PowerShell script writes text in vertical direction. diff --git a/Scripts/convert-ps2md.ps1 b/Scripts/convert-ps2md.ps1 index 2f7cfa67..3cb63332 100755 --- a/Scripts/convert-ps2md.ps1 +++ b/Scripts/convert-ps2md.ps1 @@ -1,6 +1,6 @@ <# .SYNOPSIS - Converts PowerShell script metadata to Markdown + Converts a PowerShell script to Markdown .DESCRIPTION This PowerShell script converts the comment-based help of a PowerShell script to Markdown. .PARAMETER filename @@ -56,7 +56,7 @@ try { $full = Get-Help $filename -Full - "## The *$($ScriptName)* PowerShell Script" + "## The *$($ScriptName)* Script" $Description = ($full.description | Out-String).Trim() if ($Description -ne "") { diff --git a/Scripts/export-to-manuals.ps1 b/Scripts/export-to-manuals.ps1 index f772799e..6c96f813 100755 --- a/Scripts/export-to-manuals.ps1 +++ b/Scripts/export-to-manuals.ps1 @@ -5,8 +5,9 @@ This PowerShell script exports the comment based help of all PowerShell scripts as manuals. .EXAMPLE PS> ./export-to-manuals.ps1 - Found 264 scripts, exporting them to /home/markus/PowerShell/Docs... - ✔️ exported 264 PowerShell scripts in 28 sec + ⏳ (1/2) Reading scripts from: /home/mf/PowerShell/Scripts/*.ps1... + ⏳ (2/2) Exporting manuals to: /home/mf/PowerShell/Scripts/../Docs... + ✔️ exported 518 PowerShell scripts in 28 sec .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -20,11 +21,10 @@ param([string]$FilePattern = "$PSScriptRoot/*.ps1", [string]$TargetDir = "$PSScr try { $StopWatch = [system.diagnostics.stopwatch]::startNew() - Write-Host "⏳ (1/2) Reading scripts from: $FilePattern... " -noNewline + "⏳ (1/2) Reading scripts from: $FilePattern..." $Scripts = Get-ChildItem "$FilePattern" - Write-Host "found $($Scripts.Count) scripts" - Write-Host "⏳ (2/2) Exporting manuals to: $TargetDir..." + "⏳ (2/2) Exporting manuals to: $TargetDir..." foreach ($Script in $Scripts) { & "$PSScriptRoot/convert-ps2md.ps1" "$Script" > "$TargetDir/$($Script.BaseName).md" }