From 33ef92d8798fb5a26060a0af7a8e3d0a306dd56d Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Fri, 17 Jan 2025 08:31:53 +0100 Subject: [PATCH] Updated the manuals --- docs/add-firewall-rules.md | 4 +- docs/alert.md | 4 +- docs/build-repo.md | 4 +- docs/build-repos.md | 4 +- docs/cd-autostart.md | 4 +- docs/cd-crashdumps.md | 4 +- docs/cd-desktop.md | 4 +- docs/cd-docs.md | 4 +- docs/cd-downloads.md | 4 +- docs/cd-dropbox.md | 4 +- docs/cd-etc.md | 4 +- docs/cd-fonts.md | 4 +- docs/cd-home.md | 4 +- docs/cd-jenkins.md | 4 +- docs/cd-logs.md | 2 +- docs/cd-music.md | 4 +- docs/cd-nextcloud.md | 4 +- docs/cd-onedrive.md | 4 +- docs/cd-pics.md | 4 +- docs/cd-public.md | 4 +- docs/cd-recent.md | 4 +- docs/cd-recycle-bin.md | 2 +- docs/cd-repo.md | 37 ++--- docs/cd-repos.md | 47 ++++--- docs/cd-root.md | 4 +- docs/cd-screenshots.md | 2 +- docs/cd-scripts.md | 12 +- docs/cd-ssh.md | 4 +- docs/cd-temp.md | 2 +- docs/cd-templates.md | 4 +- docs/cd-trash.md | 2 +- docs/cd-up.md | 4 +- docs/cd-up2.md | 4 +- docs/cd-up3.md | 4 +- docs/cd-up4.md | 4 +- docs/cd-users.md | 4 +- docs/cd-videos.md | 4 +- docs/cd-windows.md | 4 +- docs/change-wallpaper.md | 4 +- docs/check-admin.md | 4 +- docs/check-apps.md | 2 +- docs/check-bios.md | 4 +- docs/check-cpu.md | 4 +- docs/check-credentials.md | 4 +- docs/check-day.md | 4 +- docs/check-dns.md | 16 ++- docs/check-drive-space.md | 4 +- docs/check-drives.md | 4 +- docs/check-dusk.md | 2 +- docs/check-easter-sunday.md | 4 +- docs/check-file-system.md | 4 +- docs/check-file.md | 4 +- docs/check-firewall.md | 4 +- docs/check-gpu.md | 2 +- docs/check-hardware.md | 10 +- docs/check-health.md | 4 +- docs/check-independence-day.md | 4 +- docs/check-ipv4-address.md | 4 +- docs/check-ipv6-address.md | 4 +- docs/check-iss-position.md | 4 +- docs/check-mac-address.md | 4 +- docs/check-midnight.md | 2 +- docs/check-month.md | 4 +- docs/check-moon-phase.md | 4 +- docs/check-motherboard.md | 4 +- docs/check-network.md | 14 +- docs/check-noon.md | 2 +- docs/check-os.md | 4 +- docs/check-outlook.md | 4 +- docs/check-password.md | 4 +- docs/check-pending-reboot.md | 2 +- docs/check-pnp-devices.md | 4 +- docs/check-power.md | 14 +- docs/check-powershell.md | 2 +- docs/check-ps1-file.md | 4 +- docs/check-ram.md | 2 +- docs/check-repo.md | 4 +- docs/check-repos.md | 4 +- docs/check-santa.md | 4 +- docs/check-smart-devices.md | 37 ++--- docs/check-software.md | 10 +- docs/check-subnet-mask.md | 4 +- docs/check-swap-space.md | 4 +- docs/check-symlinks.md | 4 +- docs/check-time-zone.md | 4 +- docs/check-uptime.md | 4 +- docs/check-vpn.md | 10 +- docs/check-weather.md | 4 +- docs/check-week.md | 4 +- docs/check-wind.md | 4 +- docs/check-windows-system-files.md | 4 +- docs/check-xml-file.md | 4 +- docs/check-xml-files.md | 4 +- docs/clean-repo.md | 10 +- docs/clean-repos.md | 4 +- docs/clear-dns-cache.md | 4 +- docs/clear-recycle-bin.md | 4 +- docs/clone-repos.md | 4 +- docs/clone-shallow.md | 4 +- docs/close-calculator.md | 4 +- docs/close-chrome.md | 4 +- docs/close-cortana.md | 4 +- docs/close-edge.md | 4 +- docs/close-file-explorer.md | 4 +- docs/close-firefox.md | 4 +- docs/close-git-extensions.md | 4 +- docs/close-magnifier.md | 4 +- docs/close-microsoft-paint.md | 4 +- docs/close-microsoft-store.md | 4 +- docs/close-netflix.md | 4 +- docs/close-notepad.md | 4 +- docs/close-obs-studio.md | 4 +- docs/close-one-calendar.md | 4 +- docs/close-outlook.md | 4 +- docs/close-paint-three-d.md | 4 +- docs/close-program.md | 4 +- docs/close-serenade.md | 4 +- docs/close-snipping-tool.md | 4 +- docs/close-spotify.md | 4 +- docs/close-task-manager.md | 4 +- docs/close-three-d-viewer.md | 4 +- docs/close-thunderbird.md | 4 +- docs/close-visual-studio.md | 4 +- docs/close-vlc.md | 4 +- docs/close-windows-terminal.md | 4 +- docs/configure-git.md | 4 +- docs/connect-vpn.md | 4 +- docs/convert-csv2txt.md | 4 +- docs/convert-dir2zip.md | 4 +- docs/convert-docx2md.md | 4 +- docs/convert-frames2mp4.md | 2 +- docs/convert-image2ascii.md | 2 +- docs/convert-image2blurred-frames.md | 2 +- docs/convert-image2pixelated-frames.md | 2 +- docs/convert-md2docx.md | 2 +- docs/convert-md2html.md | 4 +- docs/convert-md2pdf.md | 2 +- docs/convert-mysql2csv.md | 4 +- docs/convert-ps2bat.md | 4 +- docs/convert-ps2md.md | 6 +- docs/convert-sql2csv.md | 4 +- docs/convert-txt2wav.md | 4 +- docs/copy-photos-sorted.md | 6 +- docs/count-characters.md | 4 +- docs/count-lines.md | 4 +- docs/decrypt-file.md | 4 +- docs/disable-ipv6.md | 4 +- docs/disconnect-vpn.md | 4 +- docs/download-dir.md | 4 +- docs/download-file.md | 4 +- docs/edit.md | 4 +- docs/enable-crash-dumps.md | 4 +- docs/enable-god-mode.md | 10 +- docs/enable-ipv6.md | 4 +- docs/encrypt-file.md | 4 +- docs/enter-chat.md | 4 +- docs/enter-host.md | 4 +- docs/export-to-manuals.md | 4 +- docs/fetch-repo.md | 4 +- docs/fetch-repos.md | 6 +- docs/firefox-installer.md | 4 +- docs/get-md5.md | 29 ++-- docs/get-sha1.md | 31 +++-- docs/get-sha256.md | 33 ++--- docs/get-sha512.md | 76 +++++++++++ docs/hello-world.md | 4 +- docs/hibernate.md | 4 +- docs/import-vm.md | 2 +- docs/inspect-exe.md | 4 +- docs/install-audacity.md | 4 +- docs/install-basic-apps.md | 4 +- docs/install-basic-snaps.md | 4 +- docs/install-calibre-server.md | 42 +++--- docs/install-chocolatey.md | 4 +- docs/install-chrome.md | 4 +- docs/install-crystal-disk-info.md | 4 +- docs/install-crystal-disk-mark.md | 4 +- docs/install-discord.md | 4 +- docs/install-edge.md | 4 +- docs/install-evcc.md | 4 +- docs/install-firefox.md | 4 +- docs/install-git-extensions.md | 4 +- docs/install-git-for-windows.md | 4 +- docs/install-github-cli.md | 4 +- docs/install-gitlab.md | 2 +- docs/install-irfanview.md | 4 +- docs/install-jenkins-agent.md | 94 +++++++++++++ docs/install-knot-resolver.md | 4 +- docs/install-microsoft-teams.md | 4 +- docs/install-netflix.md | 4 +- docs/install-obs-studio.md | 4 +- docs/install-octoprint.md | 2 +- docs/install-one-calendar.md | 4 +- docs/install-opera-browser.md | 4 +- docs/install-opera-gx.md | 4 +- docs/install-paint-3d.md | 4 +- docs/install-power-toys.md | 4 +- docs/install-powershell.md | 6 +- docs/install-rufus.md | 4 +- docs/install-salesforce-cli.md | 4 +- docs/install-signal-cli.md | 4 +- docs/install-skype.md | 4 +- docs/install-spotify.md | 4 +- docs/install-ssh-client.md | 4 +- docs/install-ssh-server.md | 4 +- docs/install-thunderbird.md | 4 +- docs/install-twitter.md | 4 +- docs/install-unbound-server.md | 4 +- docs/install-updates.md | 21 +-- docs/install-visual-studio-code.md | 4 +- docs/install-vivaldi.md | 4 +- docs/install-vlc.md | 4 +- docs/install-windows-terminal.md | 4 +- docs/install-wsl.md | 4 +- docs/install-zoom.md | 4 +- docs/introduce-powershell.md | 4 +- docs/list-aliases.md | 4 +- docs/list-anagrams.md | 4 +- docs/list-apps.md | 4 +- docs/list-ascii-table.md | 4 +- docs/list-automatic-variables.md | 2 +- docs/list-battery-status.md | 4 +- docs/list-bios.md | 4 +- docs/list-bluetooth-devices.md | 4 +- docs/list-branches.md | 4 +- docs/list-calendar.md | 4 +- docs/list-cheat-sheet.md | 4 +- docs/list-city-weather.md | 29 ++-- docs/list-cli-tools.md | 14 +- docs/list-clipboard.md | 4 +- docs/list-cmdlets.md | 4 +- docs/list-coffee-prices.md | 2 +- docs/list-commit-stats.md | 4 +- docs/list-commits.md | 35 +++-- docs/list-console-colors.md | 4 +- docs/list-countries.md | 2 +- docs/list-cpu.md | 4 +- docs/list-crypto-rates.md | 12 +- docs/list-defender-settings.md | 4 +- docs/list-dir-tree.md | 4 +- docs/list-dns-servers.md | 2 +- docs/list-drives.md | 4 +- docs/list-earthquakes.md | 12 +- docs/list-emojis.md | 4 +- docs/list-empty-dirs.md | 4 +- docs/list-empty-files.md | 4 +- docs/list-encrypted-files.md | 4 +- docs/list-environment-variables.md | 4 +- docs/list-error-types.md | 2 +- docs/list-exchange-rates.md | 4 +- docs/list-executables.md | 4 +- docs/list-fibonacci.md | 2 +- docs/list-files.md | 4 +- docs/list-folder.md | 4 +- docs/list-fritzbox-calls.md | 4 +- docs/list-fritzbox-devices.md | 4 +- docs/list-headlines.md | 4 +- docs/list-hidden-files.md | 4 +- docs/list-installed-languages.md | 2 +- docs/list-installed-scripts.md | 4 +- docs/list-installed-software.md | 4 +- docs/list-internet-ip.md | 4 +- docs/list-ipv6.md | 4 +- docs/list-latest-tag.md | 4 +- docs/list-latest-tags.md | 4 +- docs/list-local-ip.md | 2 +- docs/list-mDNS.md | 2 +- docs/list-memos.md | 4 +- docs/list-mysql-tables.md | 4 +- docs/list-network-connections.md | 4 +- docs/list-network-neighbors.md | 4 +- docs/list-network-routes.md | 4 +- docs/list-network-shares.md | 10 +- docs/list-news.md | 33 +++-- docs/list-nic.md | 4 +- docs/list-nina-warnings.md | 4 +- docs/list-old-branches.md | 4 +- docs/list-os-releases.md | 4 +- docs/list-os-updates.md | 4 +- docs/list-os.md | 4 +- docs/list-outlook-inbox.md | 4 +- docs/list-outlook-sent.md | 4 +- docs/list-passwords.md | 4 +- docs/list-pins.md | 4 +- docs/list-power-schemes.md | 2 +- docs/list-powershell-modules.md | 4 +- docs/list-powershell-profiles.md | 2 +- docs/list-powershell-verbs.md | 4 +- docs/list-print-jobs.md | 4 +- docs/list-printers.md | 4 +- docs/list-processes.md | 4 +- docs/list-pull-requests.md | 4 +- docs/list-ram.md | 4 +- docs/list-read-only-files.md | 4 +- docs/list-recycle-bin.md | 4 +- docs/list-repos.md | 4 +- docs/list-scripts.md | 2 +- docs/list-scsi-devices.md | 4 +- docs/list-services.md | 4 +- docs/list-special-folders.md | 2 +- docs/list-sql-tables.md | 4 +- docs/list-ssh-key.md | 4 +- docs/list-submodules.md | 4 +- docs/list-suggestions.md | 4 +- docs/list-system-devices.md | 4 +- docs/list-system-files.md | 4 +- docs/list-system-info.md | 4 +- docs/list-tags.md | 4 +- docs/list-tasks.md | 2 +- docs/list-timezone.md | 4 +- docs/list-timezones.md | 4 +- docs/list-tiobe-index.md | 2 +- docs/list-unused-files.md | 4 +- docs/list-updates.md | 4 +- docs/list-usb-devices.md | 4 +- docs/list-user-accounts.md | 4 +- docs/list-user-groups.md | 4 +- docs/list-voices.md | 4 +- docs/list-weather.md | 5 +- docs/list-wifi.md | 4 +- docs/list-window-titles.md | 4 +- docs/list-workdir.md | 4 +- docs/list-wsl-distros.md | 4 +- docs/locate-city.md | 4 +- docs/locate-ipaddress.md | 2 +- docs/locate-my-phone.md | 4 +- docs/locate-zip-code.md | 4 +- docs/lock-desktop.md | 4 +- docs/log-off.md | 4 +- docs/make-install.md | 4 +- docs/measure-BubbleSort.md | 4 +- docs/measure-BucketSort.md | 4 +- docs/measure-CountingSort.md | 4 +- docs/measure-HeapSort.md | 4 +- docs/measure-InsertionSort.md | 4 +- docs/measure-MergeSort.md | 4 +- docs/measure-QuickSort.md | 4 +- docs/measure-SelectionSort.md | 4 +- docs/measure-sorting-algorithms.md | 4 +- docs/merry-christmas.md | 4 +- docs/minimize-all-windows.md | 4 +- docs/move-mouse-pointer.md | 4 +- docs/move-vm.md | 2 +- docs/my-profile.md | 20 +-- docs/new-branch.md | 4 +- docs/new-dir.md | 4 +- docs/new-email.md | 4 +- docs/new-linux-vm.md | 2 +- docs/new-power-plan.md | 66 +++++---- docs/new-qrcode.md | 4 +- docs/new-reboot-task.md | 2 +- docs/new-script.md | 4 +- docs/new-shortcut.md | 4 +- docs/new-ssh-key.md | 4 +- docs/new-symlink.md | 19 +-- docs/new-tag.md | 4 +- docs/new-user.md | 4 +- docs/new-windows-vm.md | 2 +- docs/on-desktop-login.md | 4 +- docs/open-URL.md | 4 +- docs/open-apps-folder.md | 4 +- docs/open-auto-start-folder.md | 4 +- docs/open-bing-maps.md | 4 +- docs/open-booking-com.md | 4 +- docs/open-c-drive.md | 4 +- docs/open-calculator.md | 4 +- docs/open-chrome.md | 4 +- docs/open-clock.md | 4 +- docs/open-cortana.md | 4 +- docs/open-d-drive.md | 4 +- docs/open-dashboards.md | 4 +- docs/open-deep-l-translator.md | 4 +- docs/open-default-browser.md | 4 +- docs/open-desktop-folder.md | 4 +- docs/open-documents-folder.md | 4 +- docs/open-downloads-folder.md | 4 +- docs/open-dropbox-folder.md | 4 +- docs/open-duck-duck-go.md | 4 +- docs/open-e-drive.md | 4 +- docs/open-edge.md | 4 +- docs/open-egg-timer.md | 4 +- docs/open-email-client.md | 4 +- docs/open-f-drive.md | 4 +- docs/open-file-explorer.md | 4 +- docs/open-fire-place.md | 4 +- docs/open-firefox.md | 4 +- docs/open-flight-radar.md | 4 +- docs/open-g-drive.md | 4 +- docs/open-git-extensions.md | 2 +- docs/open-google-books.md | 4 +- docs/open-google-calendar.md | 4 +- docs/open-google-contacts.md | 4 +- docs/open-google-docs.md | 4 +- docs/open-google-earth.md | 4 +- docs/open-google-mail.md | 4 +- docs/open-google-maps.md | 4 +- docs/open-google-news.md | 4 +- docs/open-google-photos.md | 4 +- docs/open-google-play.md | 4 +- docs/open-google-search.md | 4 +- docs/open-google-stadia.md | 4 +- docs/open-google-translate.md | 4 +- docs/open-home-folder.md | 4 +- docs/open-internet-archive.md | 4 +- docs/open-jitsi-meet.md | 4 +- docs/open-m-drive.md | 4 +- docs/open-magnifier.md | 4 +- docs/open-microsoft-paint.md | 4 +- docs/open-microsoft-solitaire.md | 4 +- docs/open-microsoft-store.md | 4 +- docs/open-microsoft-teams.md | 4 +- docs/open-music-folder.md | 4 +- docs/open-netflix.md | 4 +- docs/open-notepad.md | 4 +- docs/open-obs-studio.md | 2 +- docs/open-office-365.md | 4 +- docs/open-one-drive-folder.md | 4 +- docs/open-outlook.md | 2 +- docs/open-paint-three-d.md | 4 +- docs/open-pictures-folder.md | 4 +- docs/open-rdp.md | 4 +- docs/open-recycle-bin-folder.md | 4 +- docs/open-remote-desktop.md | 4 +- docs/open-repos-folder.md | 4 +- docs/open-screen-clip.md | 4 +- docs/open-screen-sketch.md | 4 +- docs/open-skype.md | 4 +- docs/open-snipping-tool.md | 4 +- docs/open-speed-test.md | 4 +- docs/open-spotify.md | 4 +- docs/open-stack-overflow.md | 4 +- docs/open-start-page.md | 4 +- docs/open-street-map.md | 4 +- docs/open-task-manager.md | 4 +- docs/open-temporary-folder.md | 2 +- docs/open-three-d-viewer.md | 4 +- docs/open-thunderbird.md | 2 +- docs/open-videos-folders.md | 4 +- docs/open-visual-studio.md | 2 +- docs/open-voice-recorder.md | 4 +- docs/open-vpn-settings.md | 4 +- docs/open-windows-defender.md | 4 +- docs/open-windows-terminal.md | 4 +- docs/open-xing.md | 4 +- docs/pick-commit.md | 4 +- docs/ping-host.md | 45 +++---- docs/ping-internet.md | 15 +-- docs/ping-local-devices.md | 6 +- docs/ping-weather.md | 4 +- docs/play-bee-sound.md | 4 +- docs/play-beep-sound.md | 4 +- docs/play-big-ben.md | 4 +- docs/play-cat-sound.md | 4 +- docs/play-chess.md | 4 +- docs/play-cow-sound.md | 4 +- docs/play-dog-sound.md | 4 +- docs/play-donkey-sound.md | 4 +- docs/play-elephant-sound.md | 4 +- docs/play-elk-sound.md | 4 +- docs/play-files.md | 48 ++++--- docs/play-frog-sound.md | 4 +- docs/play-goat-sound.md | 4 +- docs/play-gorilla-sound.md | 4 +- docs/play-happy-birthday.md | 4 +- docs/play-horse-sound.md | 4 +- docs/play-imperial-march.md | 4 +- docs/play-jingle-bells.md | 4 +- docs/play-lion-sound.md | 4 +- docs/play-m3u.md | 48 +++---- docs/play-mission-impossible.md | 4 +- docs/play-mp3.md | 11 +- docs/play-parrot-sound.md | 4 +- docs/play-pig-sound.md | 4 +- docs/play-pong.md | 2 +- docs/play-rattlesnake-sound.md | 4 +- docs/play-rick.md | 4 +- docs/play-snake.md | 4 +- docs/play-super-mario.md | 4 +- docs/play-system-sounds.md | 36 +++-- docs/play-tetris-melody.md | 4 +- docs/play-vulture-sound.md | 4 +- docs/play-wolf-sound.md | 4 +- docs/poweroff.md | 4 +- docs/print-image.md | 4 +- docs/publish-to-ipfs.md | 4 +- docs/pull-repo.md | 4 +- docs/pull-repos.md | 12 +- docs/query-smart-data.md | 4 +- docs/reboot-fritzbox.md | 4 +- docs/reboot.md | 4 +- docs/remember.md | 4 +- docs/remind-me.md | 4 +- docs/remove-dir-tree.md | 4 +- docs/remove-empty-dirs.md | 4 +- docs/remove-old-dirs.md | 28 ++-- docs/remove-print-jobs.md | 4 +- docs/remove-tag.md | 4 +- docs/remove-user.md | 4 +- docs/remove-vm.md | 2 +- docs/replace-in-files.md | 4 +- docs/restart-network-adapters.md | 4 +- docs/roll-a-dice.md | 4 +- docs/save-credentials.md | 4 +- docs/save-screenshot.md | 4 +- docs/scan-folder.md | 28 ++-- docs/scan-network.md | 2 +- docs/scan-ports.md | 4 +- docs/search-filename.md | 4 +- docs/search-files.md | 4 +- docs/search-repo.md | 4 +- docs/send-email.md | 4 +- docs/send-tcp.md | 4 +- docs/send-udp.md | 4 +- docs/set-timer.md | 4 +- docs/set-volume.md | 4 +- docs/set-wallpaper.md | 4 +- docs/show-lightnings.md | 4 +- docs/show-notification-motivation-quote.md | 2 +- docs/show-notification.md | 4 +- docs/show-traffic.md | 4 +- docs/simulate-presence.md | 4 +- docs/smart-data2csv.md | 4 +- docs/speak-arabic.md | 4 +- docs/speak-checklist.md | 59 +++++--- docs/speak-countdown.md | 4 +- docs/speak-croatian.md | 4 +- docs/speak-danish.md | 4 +- docs/speak-dutch.md | 4 +- docs/speak-english.md | 4 +- docs/speak-epub.md | 4 +- docs/speak-esperanto.md | 4 +- docs/speak-file.md | 4 +- docs/speak-finnish.md | 4 +- docs/speak-french.md | 4 +- docs/speak-german.md | 4 +- docs/speak-greek.md | 4 +- docs/speak-hebrew.md | 4 +- docs/speak-hindi.md | 4 +- docs/speak-italian.md | 4 +- docs/speak-japanese.md | 4 +- docs/speak-korean.md | 4 +- docs/speak-latin.md | 4 +- docs/speak-mandarin.md | 4 +- docs/speak-norwegian.md | 4 +- docs/speak-polish.md | 4 +- docs/speak-portuguese.md | 4 +- docs/speak-russian.md | 4 +- docs/speak-spanish.md | 4 +- docs/speak-swedish.md | 4 +- docs/speak-test.md | 2 +- docs/speak-text.md | 4 +- docs/speak-thai.md | 4 +- docs/speak-turkish.md | 4 +- docs/speak-ukrainian.md | 4 +- docs/spell-word.md | 27 ++-- docs/start-ipfs-server.md | 4 +- docs/suspend.md | 4 +- docs/switch-branch.md | 4 +- docs/switch-shelly1.md | 4 +- docs/switch-tabs.md | 4 +- docs/sync-folder.md | 4 +- docs/sync-repo.md | 4 +- docs/tell-joke.md | 4 +- docs/tell-new-year.md | 4 +- docs/tell-quote.md | 4 +- docs/toggle-caps-lock.md | 4 +- docs/toggle-num-lock.md | 4 +- docs/toggle-scroll-lock.md | 4 +- docs/translate-file.md | 4 +- docs/translate-files.md | 4 +- docs/translate-text.md | 4 +- docs/turn-volume-down.md | 4 +- docs/turn-volume-fully-up.md | 4 +- docs/turn-volume-off.md | 4 +- docs/turn-volume-on.md | 4 +- docs/turn-volume-up.md | 4 +- docs/uninstall-all-apps.md | 4 +- docs/uninstall-bloatware.md | 4 +- docs/uninstall-new-outlook.md | 60 +++++++++ docs/uninstall-outlook.md | 60 +++++++++ docs/update-powershell-profile.md | 4 +- docs/upgrade-ubuntu.md | 4 +- docs/upload-file.md | 4 +- docs/upload-to-dropbox.md | 4 +- docs/wake-up-host.md | 20 +-- docs/wake-up-human.md | 55 ++++++++ docs/watch-commits.md | 41 +++--- docs/watch-file.md | 2 +- docs/watch-host.md | 150 +++++++++++++++++++++ docs/watch-news.md | 18 +-- docs/watch-ping.md | 4 +- docs/weather-report.md | 4 +- docs/weather.md | 4 +- docs/what-is.md | 4 +- docs/windefender.md | 4 +- docs/write-animated.md | 4 +- docs/write-ascii-image.md | 2 +- docs/write-big.md | 4 +- docs/write-blue.md | 4 +- docs/write-braille.md | 4 +- docs/write-centered.md | 4 +- docs/write-changelog.md | 59 ++++---- docs/write-chart.md | 2 +- docs/write-clock.md | 4 +- docs/write-code.md | 4 +- docs/write-credits.md | 4 +- docs/write-date.md | 4 +- docs/write-fractal.md | 2 +- docs/write-green.md | 4 +- docs/write-hands-off.md | 4 +- docs/write-headline.md | 4 +- docs/write-help.md | 4 +- docs/write-in-emojis.md | 4 +- docs/write-joke.md | 4 +- docs/write-location.md | 4 +- docs/write-lowercase.md | 4 +- docs/write-marquee.md | 4 +- docs/write-matrix.md | 2 +- docs/write-moon.md | 4 +- docs/write-morse-code.md | 4 +- docs/write-motd.md | 4 +- docs/write-pi.md | 4 +- docs/write-qr-code.md | 4 +- docs/write-quote.md | 4 +- docs/write-red.md | 4 +- docs/write-rot13.md | 4 +- docs/write-shit.md | 4 +- docs/write-sine-curves.md | 4 +- docs/write-time.md | 4 +- docs/write-typewriter.md | 35 ++--- docs/write-uppercase.md | 4 +- docs/write-value.md | 150 +++++++++++++++++++++ docs/write-vertical.md | 4 +- docs/write-xmas-tree.md | 4 +- scripts/convert-ps2md.ps1 | 2 +- 635 files changed, 2375 insertions(+), 1666 deletions(-) create mode 100644 docs/get-sha512.md create mode 100644 docs/install-jenkins-agent.md create mode 100644 docs/uninstall-new-outlook.md create mode 100644 docs/uninstall-outlook.md create mode 100644 docs/wake-up-human.md create mode 100644 docs/watch-host.md create mode 100644 docs/write-value.md diff --git a/docs/add-firewall-rules.md b/docs/add-firewall-rules.md index 4eefc0fa..e6f0f518 100644 --- a/docs/add-firewall-rules.md +++ b/docs/add-firewall-rules.md @@ -6,7 +6,7 @@ This PowerShell script adds firewall rules for the given executable. Administrat Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/add-firewall-rules.ps1 [[-PathToExecutables] ] [[-Direction] ] [[-FirewallProfile] ] [] +/Repos/PowerShell/scripts/add-firewall-rules.ps1 [[-PathToExecutables] ] [[-Direction] ] [[-FirewallProfile] ] [] -PathToExecutables Specifies the path to the executables. @@ -113,4 +113,4 @@ try { ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:49)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/alert.md b/docs/alert.md index 48f4c2b9..94f43810 100644 --- a/docs/alert.md +++ b/docs/alert.md @@ -6,7 +6,7 @@ This PowerShell script handles and escalates the given alert message. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/alert.ps1 [[-Message] ] [] +/Repos/PowerShell/scripts/alert.ps1 [[-Message] ] [] -Message Specifies the alert message @@ -71,4 +71,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:49)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/build-repo.md b/docs/build-repo.md index 6a24fac3..f375da51 100644 --- a/docs/build-repo.md +++ b/docs/build-repo.md @@ -6,7 +6,7 @@ This PowerShell script builds a Git repository by supporting build systems such Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/build-repo.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/build-repo.ps1 [[-path] ] [] -path Specifies the path to the Git repository (default is current working directory) @@ -196,4 +196,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/build-repos.md b/docs/build-repos.md index 55aff31c..3b868615 100644 --- a/docs/build-repos.md +++ b/docs/build-repos.md @@ -6,7 +6,7 @@ This PowerShell script builds all Git repositories in a folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/build-repos.ps1 [[-ParentDir] ] [] +/Repos/PowerShell/scripts/build-repos.ps1 [[-ParentDir] ] [] -ParentDir Specifies the path to the parent folder @@ -82,4 +82,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-autostart.md b/docs/cd-autostart.md index 75c3c611..8f9f8a52 100644 --- a/docs/cd-autostart.md +++ b/docs/cd-autostart.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's autostart fol Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-autostart.ps1 [] +/Repos/PowerShell/scripts/cd-autostart.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -60,4 +60,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-crashdumps.md b/docs/cd-crashdumps.md index 39a7c2f4..9365fa38 100644 --- a/docs/cd-crashdumps.md +++ b/docs/cd-crashdumps.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the crash dumps director Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-crashdumps.ps1 [] +/Repos/PowerShell/scripts/cd-crashdumps.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -63,4 +63,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-desktop.md b/docs/cd-desktop.md index 5f631ead..cae5ea56 100644 --- a/docs/cd-desktop.md +++ b/docs/cd-desktop.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's desktop folde Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-desktop.ps1 [] +/Repos/PowerShell/scripts/cd-desktop.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -64,4 +64,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-docs.md b/docs/cd-docs.md index c2a07857..0366619c 100644 --- a/docs/cd-docs.md +++ b/docs/cd-docs.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the documents folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-docs.ps1 [] +/Repos/PowerShell/scripts/cd-docs.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -64,4 +64,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-downloads.md b/docs/cd-downloads.md index 1c5bde5b..bbe3da49 100644 --- a/docs/cd-downloads.md +++ b/docs/cd-downloads.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's downloads fol Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-downloads.ps1 [] +/Repos/PowerShell/scripts/cd-downloads.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -64,4 +64,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-dropbox.md b/docs/cd-dropbox.md index 5583c371..c89b4abc 100644 --- a/docs/cd-dropbox.md +++ b/docs/cd-dropbox.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's Dropbox folde Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-dropbox.ps1 [] +/Repos/PowerShell/scripts/cd-dropbox.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-etc.md b/docs/cd-etc.md index f97890d3..04c095bf 100644 --- a/docs/cd-etc.md +++ b/docs/cd-etc.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the /etc directory. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-etc.ps1 [] +/Repos/PowerShell/scripts/cd-etc.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -64,4 +64,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-fonts.md b/docs/cd-fonts.md index ecac70ba..6a742919 100644 --- a/docs/cd-fonts.md +++ b/docs/cd-fonts.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the fonts folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-fonts.ps1 [] +/Repos/PowerShell/scripts/cd-fonts.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -60,4 +60,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-home.md b/docs/cd-home.md index 86feed7f..bf6933c3 100644 --- a/docs/cd-home.md +++ b/docs/cd-home.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's home director Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-home.ps1 [] +/Repos/PowerShell/scripts/cd-home.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-jenkins.md b/docs/cd-jenkins.md index 55e11c17..4abbac49 100644 --- a/docs/cd-jenkins.md +++ b/docs/cd-jenkins.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the Jenkins home directo Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-jenkins.ps1 [] +/Repos/PowerShell/scripts/cd-jenkins.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -63,4 +63,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-logs.md b/docs/cd-logs.md index adce66f9..4d67576b 100644 --- a/docs/cd-logs.md +++ b/docs/cd-logs.md @@ -48,4 +48,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-music.md b/docs/cd-music.md index 1595bccd..c3e46328 100644 --- a/docs/cd-music.md +++ b/docs/cd-music.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's music folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-music.ps1 [] +/Repos/PowerShell/scripts/cd-music.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -64,4 +64,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-nextcloud.md b/docs/cd-nextcloud.md index dbc6a527..2995af9a 100644 --- a/docs/cd-nextcloud.md +++ b/docs/cd-nextcloud.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's NextCloud fol Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-nextcloud.ps1 [] +/Repos/PowerShell/scripts/cd-nextcloud.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-onedrive.md b/docs/cd-onedrive.md index 1cf40e81..bc784fd4 100644 --- a/docs/cd-onedrive.md +++ b/docs/cd-onedrive.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's OneDrive fold Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-onedrive.ps1 [] +/Repos/PowerShell/scripts/cd-onedrive.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-pics.md b/docs/cd-pics.md index f48e9729..9ac610b4 100644 --- a/docs/cd-pics.md +++ b/docs/cd-pics.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's pictures fold Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-pics.ps1 [] +/Repos/PowerShell/scripts/cd-pics.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -62,4 +62,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-public.md b/docs/cd-public.md index 39ddb928..91ea3b4f 100644 --- a/docs/cd-public.md +++ b/docs/cd-public.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the Public folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-public.ps1 [] +/Repos/PowerShell/scripts/cd-public.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -62,4 +62,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-recent.md b/docs/cd-recent.md index b86dea86..bf67241f 100644 --- a/docs/cd-recent.md +++ b/docs/cd-recent.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the 'recent' folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-recent.ps1 [] +/Repos/PowerShell/scripts/cd-recent.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -60,4 +60,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-recycle-bin.md b/docs/cd-recycle-bin.md index 141e207b..2d10cb22 100644 --- a/docs/cd-recycle-bin.md +++ b/docs/cd-recycle-bin.md @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-repo.md b/docs/cd-repo.md index 7ded4d76..a835ad69 100644 --- a/docs/cd-repo.md +++ b/docs/cd-repo.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the given local Git repo Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-repo.ps1 [[-folderName] ] [] +/Repos/PowerShell/scripts/cd-repo.ps1 [[-folderName] ] [] -folderName Specifies the folder name of the Git repository @@ -62,21 +62,28 @@ param([string]$folderName = "") try { if ("$folderName" -eq "") { $folderName = Read-Host "Enter the Git repository's folder name" } - if (Test-Path "~/Repos/" -pathType container) { # try short name - $path = "~/Repos/" - } elseif (Test-Path "~/repos/" -pathType container) { - $path = "~/repos/" - } elseif (Test-Path "~/Repositories/" -pathType container) { # try long name - $path = "~/Repositories/" - } elseif (Test-Path "~/source/repos/" -pathType container) { # try Visual Studio default - $path = "~/source/repos/" - } elseif (Test-Path "/Repos/" -pathType container) { - $path = "/Repos/" + if (Test-Path "~/Repos" -pathType Container) { # try short name in home dir + $path = "~/Repos" + } elseif (Test-Path "~/repos" -pathType Container) { + $path = "~/repos" + } elseif (Test-Path "~/Repositories" -pathType Container) { # try long name + $path = "~/Repositories" + } elseif (Test-Path "~/repositories" -pathType Container) { + $path = "~/repositories" + } elseif (Test-Path "/Repos" -pathType Container) { # try short name in root dir + $path = "/Repos" + } elseif (Test-Path "/repos" -pathType Container) { + $path = "/repos" + } elseif (Test-Path "/Repositories" -pathType Container) { # try long name + $path = "/Repositories" + } elseif (Test-Path "/repositories" -pathType Container) { + $path = "/repositories" + } elseif (Test-Path "~/source/repos" -pathType Container) { # try Visual Studio default + $path = "~/source/repos" } else { - throw "The folder for Git repositories doesn't exist (yet)" + throw "No Git repositories folder in your home directory or in the root folder yet" } - - $path += $folderName + $path += "/" + $folderName if (-not(Test-Path "$path" -pathType container)) { throw "The path to ๐Ÿ“‚$path doesn't exist (yet)" } $path = Resolve-Path "$path" @@ -90,4 +97,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-repos.md b/docs/cd-repos.md index 6d2652c8..1c10670f 100644 --- a/docs/cd-repos.md +++ b/docs/cd-repos.md @@ -1,12 +1,12 @@ The *cd-repos.ps1* Script =========================== -This PowerShell script changes the working directory to the user's Git repositories folder. +This PowerShell script changes the working directory to the Git repositories folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-repos.ps1 [] +/Repos/PowerShell/scripts/cd-repos.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -17,7 +17,7 @@ Example ------- ```powershell PS> ./cd-repos.ps1 -๐Ÿ“‚C:\Users\Markus\Repos +๐Ÿ“‚C:\Repos ``` @@ -34,14 +34,14 @@ Script Content ```powershell <# .SYNOPSIS - Sets the working directory to the user's repos folder + Sets the working directory to the Git repos folder .DESCRIPTION - This PowerShell script changes the working directory to the user's Git repositories folder. + This PowerShell script changes the working directory to the Git repositories folder. .PARAMETER subpath Specifies an additional relative subpath (optional) .EXAMPLE PS> ./cd-repos.ps1 - ๐Ÿ“‚C:\Users\Markus\Repos + ๐Ÿ“‚C:\Repos .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -49,21 +49,28 @@ Script Content #> try { - if (Test-Path "~/Repos/" -pathType Container) { # try short name - $path = "~/Repos/" - } elseif (Test-Path "~/repos/" -pathType Container) { - $path = "~/repos/" - } elseif (Test-Path "~/Repositories/" -pathType Container) { # try long name - $path = "~/Repositories/" - } elseif (Test-Path "~/source/repos/" -pathType Container) { # try Visual Studio default - $path = "~/source/repos/" - } elseif (Test-Path "/Repos/" -pathType Container) { - $path = "/Repos/" + if (Test-Path "~/Repos" -pathType Container) { # try short name in home dir + $path = "~/Repos" + } elseif (Test-Path "~/repos" -pathType Container) { + $path = "~/repos" + } elseif (Test-Path "~/Repositories" -pathType Container) { # try long name + $path = "~/Repositories" + } elseif (Test-Path "~/repositories" -pathType Container) { + $path = "~/repositories" + } elseif (Test-Path "/Repos" -pathType Container) { # try short name in root dir + $path = "/Repos" + } elseif (Test-Path "/repos" -pathType Container) { + $path = "/repos" + } elseif (Test-Path "/Repositories" -pathType Container) { # try long name + $path = "/Repositories" + } elseif (Test-Path "/repositories" -pathType Container) { + $path = "/repositories" + } elseif (Test-Path "~/source/repos" -pathType Container) { # try Visual Studio default + $path = "~/source/repos" } else { - throw "The folder for Git repositories doesn't exist (yet)" + throw "No Git repositories folder in your home directory or in the root folder yet" } - if (-not(Test-Path "$path" -pathType Container)) { throw "The path to ๐Ÿ“‚$path doesn't exist (yet)" } - $path = Resolve-Path "$path" + $path = Resolve-Path $path Set-Location "$path" "๐Ÿ“‚$path" exit 0 # success @@ -73,4 +80,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-root.md b/docs/cd-root.md index b665dcc0..66fc035b 100644 --- a/docs/cd-root.md +++ b/docs/cd-root.md @@ -6,7 +6,7 @@ This PowerShell script changes the current working directory to the root directo Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-root.ps1 [] +/Repos/PowerShell/scripts/cd-root.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-screenshots.md b/docs/cd-screenshots.md index ccd168a1..54d1328a 100644 --- a/docs/cd-screenshots.md +++ b/docs/cd-screenshots.md @@ -55,4 +55,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-scripts.md b/docs/cd-scripts.md index d3f62a9a..94da739f 100644 --- a/docs/cd-scripts.md +++ b/docs/cd-scripts.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the PowerShell scripts f Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-scripts.ps1 [] +/Repos/PowerShell/scripts/cd-scripts.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -16,8 +16,8 @@ Parameters Example ------- ```powershell -PS> ./cd-scripts -๐Ÿ“‚C:\Users\Markus\Repos\PowerShell\scripts +PS> ./cd-scripts.ps1 +๐Ÿ“‚C:\Repos\PowerShell\scripts ``` @@ -38,8 +38,8 @@ Script Content .DESCRIPTION This PowerShell script changes the working directory to the PowerShell scripts folder. .EXAMPLE - PS> ./cd-scripts - ๐Ÿ“‚C:\Users\Markus\Repos\PowerShell\scripts + PS> ./cd-scripts.ps1 + ๐Ÿ“‚C:\Repos\PowerShell\scripts .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-ssh.md b/docs/cd-ssh.md index 05847542..1952219d 100644 --- a/docs/cd-ssh.md +++ b/docs/cd-ssh.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's secure shell Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-ssh.ps1 [] +/Repos/PowerShell/scripts/cd-ssh.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -59,4 +59,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-temp.md b/docs/cd-temp.md index a6484e8f..96826164 100644 --- a/docs/cd-temp.md +++ b/docs/cd-temp.md @@ -50,4 +50,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-templates.md b/docs/cd-templates.md index 0b37c2f8..2bf00164 100644 --- a/docs/cd-templates.md +++ b/docs/cd-templates.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the templates folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-templates.ps1 [] +/Repos/PowerShell/scripts/cd-templates.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -62,4 +62,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-trash.md b/docs/cd-trash.md index 246356ef..fc8dba67 100644 --- a/docs/cd-trash.md +++ b/docs/cd-trash.md @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-up.md b/docs/cd-up.md index 298b5966..b8580352 100644 --- a/docs/cd-up.md +++ b/docs/cd-up.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to one directory level up. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-up.ps1 [] +/Repos/PowerShell/scripts/cd-up.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-up2.md b/docs/cd-up2.md index 976c52ae..fea611f4 100644 --- a/docs/cd-up2.md +++ b/docs/cd-up2.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to two directory level up. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-up2.ps1 [] +/Repos/PowerShell/scripts/cd-up2.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-up3.md b/docs/cd-up3.md index 27461009..53fd51e2 100644 --- a/docs/cd-up3.md +++ b/docs/cd-up3.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to three directory levels u Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-up3.ps1 [] +/Repos/PowerShell/scripts/cd-up3.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-up4.md b/docs/cd-up4.md index a638acc5..29013f2f 100644 --- a/docs/cd-up4.md +++ b/docs/cd-up4.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to four directory levels up Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-up4.ps1 [] +/Repos/PowerShell/scripts/cd-up4.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)* diff --git a/docs/cd-users.md b/docs/cd-users.md index f2274394..6baa921d 100644 --- a/docs/cd-users.md +++ b/docs/cd-users.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the users directory. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-users.ps1 [] +/Repos/PowerShell/scripts/cd-users.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/cd-videos.md b/docs/cd-videos.md index cf215c5d..4555afa7 100644 --- a/docs/cd-videos.md +++ b/docs/cd-videos.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's videos folder Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-videos.ps1 [] +/Repos/PowerShell/scripts/cd-videos.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -62,4 +62,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/cd-windows.md b/docs/cd-windows.md index eafecce5..0af45ba1 100644 --- a/docs/cd-windows.md +++ b/docs/cd-windows.md @@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the Windows directory. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/cd-windows.ps1 [] +/Repos/PowerShell/scripts/cd-windows.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/change-wallpaper.md b/docs/change-wallpaper.md index 8fb9ae34..e1df7512 100644 --- a/docs/change-wallpaper.md +++ b/docs/change-wallpaper.md @@ -6,7 +6,7 @@ This PowerShell script downloads a random photo from Unsplash and sets it as des Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/change-wallpaper.ps1 [[-Category] ] [] +/Repos/PowerShell/scripts/change-wallpaper.ps1 [[-Category] ] [] -Category Specifies the photo category (beach, city, ...) @@ -79,4 +79,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-admin.md b/docs/check-admin.md index 4b830cd6..dcd4158c 100644 --- a/docs/check-admin.md +++ b/docs/check-admin.md @@ -6,7 +6,7 @@ This PowerShell script checks if the user has administrator rights. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-admin.ps1 [] +/Repos/PowerShell/scripts/check-admin.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -67,4 +67,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-apps.md b/docs/check-apps.md index b57e357c..90fb54b8 100644 --- a/docs/check-apps.md +++ b/docs/check-apps.md @@ -72,4 +72,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-bios.md b/docs/check-bios.md index c50738d2..db589043 100644 --- a/docs/check-bios.md +++ b/docs/check-bios.md @@ -6,7 +6,7 @@ This PowerShell script queries the BIOS status and prints it. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-bios.ps1 [] +/Repos/PowerShell/scripts/check-bios.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-cpu.md b/docs/check-cpu.md index c95bc38b..980eda67 100644 --- a/docs/check-cpu.md +++ b/docs/check-cpu.md @@ -91,8 +91,6 @@ try { } elseif ($celsius -lt 0) { $temp = ", $($celsius)ยฐC TOO COLD" $status = "โš ๏ธ" - } elseif ($celsius -lt 30) { - $temp = ", $($celsius)ยฐC cool" } else { $temp = ", $($celsius)ยฐC" } @@ -106,4 +104,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-credentials.md b/docs/check-credentials.md index 903ebf70..f9f8f70f 100644 --- a/docs/check-credentials.md +++ b/docs/check-credentials.md @@ -6,7 +6,7 @@ This PowerShell script asks for credentials and checks them against saved ones ( Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-credentials.ps1 [[-TargetFile] ] [] +/Repos/PowerShell/scripts/check-credentials.ps1 [[-TargetFile] ] [] -TargetFile Specifies the target file ("$HOME\my.credentials" by default) @@ -82,4 +82,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-day.md b/docs/check-day.md index 0b983845..8ce2ca2e 100644 --- a/docs/check-day.md +++ b/docs/check-day.md @@ -6,7 +6,7 @@ This PowerShell script determines and speaks the current day by text-to-speech ( Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-day.ps1 [] +/Repos/PowerShell/scripts/check-day.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-dns.md b/docs/check-dns.md index 1039541c..0135562d 100644 --- a/docs/check-dns.md +++ b/docs/check-dns.md @@ -6,7 +6,7 @@ This PowerShell script measures the DNS resolution speed using 100 internet doma Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-dns.ps1 [] +/Repos/PowerShell/scripts/check-dns.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -17,7 +17,7 @@ Example ------- ```powershell PS> ./check-dns.ps1 -โœ… Internet DNS lookups in 33.6ms +โœ… Internet DNS: 33.6ms lookup time ``` @@ -39,7 +39,7 @@ Script Content This PowerShell script measures the DNS resolution speed using 100 internet domains and prints it. .EXAMPLE PS> ./check-dns.ps1 - โœ… Internet DNS lookups in 33.6ms + โœ… Internet DNS: 33.6ms lookup time .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -58,10 +58,12 @@ try { } [float]$elapsed = $stopWatch.Elapsed.TotalSeconds * 1000.0 $speed = [math]::round($elapsed / $table.Length, 1) - if ($speed -gt 100.0) { - Write-Host "โš ๏ธ Internet DNS lookups take $($speed)ms!" + if ($speed -lt 10.0) { + Write-Output "โœ… Internet DNS: $($speed)ms excellent lookup time" + } elseif ($speed -lt 100.0) { + Write-Output "โœ… Internet DNS: $($speed)ms lookup time" } else { - Write-Host "โœ… Internet DNS lookups in $($speed)ms" + Write-Output "โš ๏ธ Internet DNS: $($speed)ms slow lookup time" } exit 0 # success } catch { @@ -70,4 +72,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-drive-space.md b/docs/check-drive-space.md index 1534d202..f490771d 100644 --- a/docs/check-drive-space.md +++ b/docs/check-drive-space.md @@ -6,7 +6,7 @@ This PowerShell script checks the given drive for free space left (10 GB by defa Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-drive-space.ps1 [[-driveName] ] [[-minLevel] ] [] +/Repos/PowerShell/scripts/check-drive-space.ps1 [[-driveName] ] [[-minLevel] ] [] -driveName Specifies the drive name to check (e.g. "C") @@ -110,4 +110,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-drives.md b/docs/check-drives.md index 2df4e59b..2c90ae0d 100644 --- a/docs/check-drives.md +++ b/docs/check-drives.md @@ -6,7 +6,7 @@ This PowerShell script queries the free space of all drives and prints it. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-drives.ps1 [[-minLevel] ] [] +/Repos/PowerShell/scripts/check-drives.ps1 [[-minLevel] ] [] -minLevel Specifies the minimum warning level (5GB by default) @@ -102,4 +102,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-dusk.md b/docs/check-dusk.md index 19861d61..01d9c163 100644 --- a/docs/check-dusk.md +++ b/docs/check-dusk.md @@ -63,4 +63,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-easter-sunday.md b/docs/check-easter-sunday.md index 10a28ac3..167bbebd 100644 --- a/docs/check-easter-sunday.md +++ b/docs/check-easter-sunday.md @@ -6,7 +6,7 @@ This PowerShell script checks the time until Easter Sunday and replies by text-t Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-easter-sunday.ps1 [] +/Repos/PowerShell/scripts/check-easter-sunday.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -61,4 +61,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-file-system.md b/docs/check-file-system.md index eecb4159..684f3f82 100644 --- a/docs/check-file-system.md +++ b/docs/check-file-system.md @@ -6,7 +6,7 @@ This PowerShell script checks the file system of a drive. It needs admin rights. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-file-system.ps1 [[-Drive] ] [] +/Repos/PowerShell/scripts/check-file-system.ps1 [[-Drive] ] [] -Drive Specifies the drive to check @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-file.md b/docs/check-file.md index fd296204..b4f5f9a1 100644 --- a/docs/check-file.md +++ b/docs/check-file.md @@ -6,7 +6,7 @@ This PowerShell script determines and prints the file type of the given file. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-file.ps1 [[-Path] ] [] +/Repos/PowerShell/scripts/check-file.ps1 [[-Path] ] [] -Path Specifies the path to the file @@ -170,4 +170,4 @@ function Check-Header { param( $path ) Check-Header $Path ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-firewall.md b/docs/check-firewall.md index cacba536..88a98265 100644 --- a/docs/check-firewall.md +++ b/docs/check-firewall.md @@ -6,7 +6,7 @@ This PowerShell script queries the status of the firewall and prints it. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-firewall.ps1 [] +/Repos/PowerShell/scripts/check-firewall.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-gpu.md b/docs/check-gpu.md index 1a7fc2db..8bb8525e 100644 --- a/docs/check-gpu.md +++ b/docs/check-gpu.md @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-hardware.md b/docs/check-hardware.md index 653cc885..991170fe 100644 --- a/docs/check-hardware.md +++ b/docs/check-hardware.md @@ -6,7 +6,7 @@ This PowerShell script queries the hardware details of the local computer and pr Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-hardware.ps1 [] +/Repos/PowerShell/scripts/check-hardware.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -18,7 +18,7 @@ Example ```powershell PS> ./check-hardware.ps1 -H A R D W A R E + === H A R D W A R E === โœ… Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (CPU0, 2701MHz, socket U3E1, 30.1ยฐC) ... @@ -43,7 +43,7 @@ Script Content .EXAMPLE PS> ./check-hardware.ps1 - H A R D W A R E + === H A R D W A R E === โœ… Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (CPU0, 2701MHz, socket U3E1, 30.1ยฐC) ... .LINK @@ -52,7 +52,7 @@ Script Content Author: Markus Fleschutz | License: CC0 #> -Write-Host "`n H A R D W A R E" -foregroundColor green +Write-Host "`n === H A R D W A R E ===" -foregroundColor green & "$PSScriptRoot/check-cpu.ps1" & "$PSScriptRoot/check-ram.ps1" & "$PSScriptRoot/check-gpu.ps1" @@ -64,4 +64,4 @@ Write-Host "`n H A R D W A R E" -foregroundColor green exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-health.md b/docs/check-health.md index 1dc2f00f..249010fa 100644 --- a/docs/check-health.md +++ b/docs/check-health.md @@ -6,7 +6,7 @@ This PowerShell script queries the system health of the local computer (hardware Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-health.ps1 [] +/Repos/PowerShell/scripts/check-health.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-independence-day.md b/docs/check-independence-day.md index 40c78173..fa11acb0 100644 --- a/docs/check-independence-day.md +++ b/docs/check-independence-day.md @@ -6,7 +6,7 @@ This PowerShell script checks the time until Indepence Day and replies by text-t Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-independence-day.ps1 [] +/Repos/PowerShell/scripts/check-independence-day.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -61,4 +61,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-ipv4-address.md b/docs/check-ipv4-address.md index fd1f0a29..21769eca 100644 --- a/docs/check-ipv4-address.md +++ b/docs/check-ipv4-address.md @@ -6,7 +6,7 @@ This PowerShell script checks the given IPv4 address for validity. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-ipv4-address.ps1 [[-Address] ] [] +/Repos/PowerShell/scripts/check-ipv4-address.ps1 [[-Address] ] [] -Address Specifies the IPv4 address to check @@ -84,4 +84,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-ipv6-address.md b/docs/check-ipv6-address.md index d626f61c..b5d92bda 100644 --- a/docs/check-ipv6-address.md +++ b/docs/check-ipv6-address.md @@ -6,7 +6,7 @@ This PowerShell script checks the given IPv6 address for validity Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-ipv6-address.ps1 [[-Address] ] [] +/Repos/PowerShell/scripts/check-ipv6-address.ps1 [[-Address] ] [] -Address Specifies the IPv6 address to check @@ -98,4 +98,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-iss-position.md b/docs/check-iss-position.md index 9e367e18..109280dd 100644 --- a/docs/check-iss-position.md +++ b/docs/check-iss-position.md @@ -6,7 +6,7 @@ This PowerShell script queries the position of the International Space Station ( Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-iss-position.ps1 [] +/Repos/PowerShell/scripts/check-iss-position.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -55,4 +55,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-mac-address.md b/docs/check-mac-address.md index 9ec05551..f29b85f9 100644 --- a/docs/check-mac-address.md +++ b/docs/check-mac-address.md @@ -7,7 +7,7 @@ Supported MAC address formats are: 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000 Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-mac-address.ps1 [[-MAC] ] [] +/Repos/PowerShell/scripts/check-mac-address.ps1 [[-MAC] ] [] -MAC Specifies the MAC address to check @@ -87,4 +87,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-midnight.md b/docs/check-midnight.md index 7b3aa713..9e432407 100644 --- a/docs/check-midnight.md +++ b/docs/check-midnight.md @@ -60,4 +60,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-month.md b/docs/check-month.md index df6c1c22..310d09cf 100644 --- a/docs/check-month.md +++ b/docs/check-month.md @@ -6,7 +6,7 @@ This PowerShell script determines and speaks the current month name by text-to-s Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-month.ps1 [] +/Repos/PowerShell/scripts/check-month.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-moon-phase.md b/docs/check-moon-phase.md index 46f54877..b186acf0 100644 --- a/docs/check-moon-phase.md +++ b/docs/check-moon-phase.md @@ -6,7 +6,7 @@ This PowerShell script determines the Moon phase and answers by text-to-speech ( Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-moon-phase.ps1 [] +/Repos/PowerShell/scripts/check-moon-phase.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -76,4 +76,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-motherboard.md b/docs/check-motherboard.md index d13f2acf..bcf4593b 100644 --- a/docs/check-motherboard.md +++ b/docs/check-motherboard.md @@ -6,7 +6,7 @@ This PowerShell script lists the motherboard details. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-motherboard.ps1 [] +/Repos/PowerShell/scripts/check-motherboard.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -59,4 +59,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-network.md b/docs/check-network.md index 9f6104a9..77370653 100644 --- a/docs/check-network.md +++ b/docs/check-network.md @@ -6,7 +6,7 @@ This PowerShell script queries the network details of the local computer and pri Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-network.ps1 [] +/Repos/PowerShell/scripts/check-network.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -20,7 +20,7 @@ PS> ./check-network.ps1 -N E T W O R K +=== N E T W O R K === โœ… Firewall enabled ... @@ -45,7 +45,7 @@ Script Content .EXAMPLE PS> ./check-network.ps1 - N E T W O R K + === N E T W O R K === โœ… Firewall enabled ... .LINK @@ -54,17 +54,17 @@ Script Content Author: Markus Fleschutz | License: CC0 #> -Write-Host "`n N E T W O R K" -foregroundColor green +Write-Host "`n === N E T W O R K ===" -foregroundColor green & "$PSScriptRoot/check-firewall" & "$PSScriptRoot/list-local-ip.ps1" -& "$PSScriptRoot/list-network-shares.ps1" & "$PSScriptRoot/ping-local-devices.ps1" -& "$PSScriptRoot/check-vpn.ps1" +& "$PSScriptRoot/list-network-shares.ps1" & "$PSScriptRoot/list-internet-ip.ps1" & "$PSScriptRoot/ping-internet.ps1" & "$PSScriptRoot/check-dns.ps1" +& "$PSScriptRoot/check-vpn.ps1" & "$PSScriptRoot/list-ssh-key.ps1" exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-noon.md b/docs/check-noon.md index d8aa5b0a..53f35af3 100644 --- a/docs/check-noon.md +++ b/docs/check-noon.md @@ -59,4 +59,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-os.md b/docs/check-os.md index 7c3949d8..deb6eba2 100644 --- a/docs/check-os.md +++ b/docs/check-os.md @@ -6,7 +6,7 @@ This PowerShell script queries the operating system status and prints it. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-os.ps1 [] +/Repos/PowerShell/scripts/check-os.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -73,4 +73,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-outlook.md b/docs/check-outlook.md index c35299e5..26e2e679 100644 --- a/docs/check-outlook.md +++ b/docs/check-outlook.md @@ -6,7 +6,7 @@ This PowerShell script checks the inbox of Outlook for new/unread mails. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-outlook.ps1 [] +/Repos/PowerShell/scripts/check-outlook.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-password.md b/docs/check-password.md index 540a18d6..59efd3cc 100644 --- a/docs/check-password.md +++ b/docs/check-password.md @@ -6,7 +6,7 @@ This PowerShell script checks the security status of the given password by havei Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-password.ps1 [[-password] ] [] +/Repos/PowerShell/scripts/check-password.ps1 [[-password] ] [] -password @@ -94,4 +94,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-pending-reboot.md b/docs/check-pending-reboot.md index 5b5090d5..b109f859 100644 --- a/docs/check-pending-reboot.md +++ b/docs/check-pending-reboot.md @@ -90,4 +90,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-pnp-devices.md b/docs/check-pnp-devices.md index 3f955c0a..37f2426b 100644 --- a/docs/check-pnp-devices.md +++ b/docs/check-pnp-devices.md @@ -6,7 +6,7 @@ This PowerShell script checks all Plug'n'PLay devices connected to the local com Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-pnp-devices.ps1 [] +/Repos/PowerShell/scripts/check-pnp-devices.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-power.md b/docs/check-power.md index e3042017..8687644f 100644 --- a/docs/check-power.md +++ b/docs/check-power.md @@ -6,7 +6,7 @@ This PowerShell script queries the power status and prints it. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-power.ps1 [] +/Repos/PowerShell/scripts/check-power.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -61,9 +61,9 @@ try { if ($details.BatteryChargeStatus -eq "NoSystemBattery") { $reply = "โœ… AC powered" } elseif ($percent -ge 95) { - $reply = "โœ… Battery nearly full ($percent%, power scheme is '$powerScheme')" + $reply = "โœ… Battery full ($percent%, power scheme is '$powerScheme')" } else { - $reply = "โœ… Battery $percent% and charging (power scheme is '$powerScheme')" + $reply = "โœ… Battery charging ($percent%, power scheme is '$powerScheme')" } } else { # must be offline if (($remaining -eq 0) -and ($percent -ge 60)) { @@ -71,13 +71,13 @@ try { } elseif ($remaining -eq 0) { $reply = "โœ… Battery at $percent% (power scheme is '$powerScheme')" } elseif ($remaining -le 5) { - $reply = "โš ๏ธ Battery $percent% ONLY $($remaining)min remaining (power scheme is '$powerScheme')" + $reply = "โš ๏ธ Battery LOW ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')" } elseif ($remaining -le 30) { - $reply = "โš ๏ธ Battery $percent% only $($remaining)min remaining (power scheme is '$powerScheme')" + $reply = "โš ๏ธ Battery low ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')" } elseif ($percent -lt 10) { $reply = "โš ๏ธ Battery $percent% only with $($remaining)min remaining (power scheme is '$powerScheme') " } elseif ($percent -ge 90) { - $reply = "โœ… Battery $percent% full with $($remaining)min remaining (power scheme is '$powerScheme')" + $reply = "โœ… Battery full ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')" } else { $reply = "โœ… Battery $percent% with $($remaining)min remaining (power scheme is '$powerScheme') " } @@ -91,4 +91,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-powershell.md b/docs/check-powershell.md index 3fef3407..2537325e 100644 --- a/docs/check-powershell.md +++ b/docs/check-powershell.md @@ -59,4 +59,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-ps1-file.md b/docs/check-ps1-file.md index 0c9d4781..a8b853aa 100644 --- a/docs/check-ps1-file.md +++ b/docs/check-ps1-file.md @@ -6,7 +6,7 @@ This PowerShell script checks the given PowerShell script file(s) for validity. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-ps1-file.ps1 [[-filePattern] ] [] +/Repos/PowerShell/scripts/check-ps1-file.ps1 [[-filePattern] ] [] -filePattern Specifies the file pattern to the PowerShell file(s) @@ -76,4 +76,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-ram.md b/docs/check-ram.md index ed463c42..05de56a8 100644 --- a/docs/check-ram.md +++ b/docs/check-ram.md @@ -98,4 +98,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-repo.md b/docs/check-repo.md index 382c09d0..57c584f8 100644 --- a/docs/check-repo.md +++ b/docs/check-repo.md @@ -6,7 +6,7 @@ This PowerShell script verifies the integrity of a local Git repository and perf Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-repo.ps1 [[-pathToRepo] ] [] +/Repos/PowerShell/scripts/check-repo.ps1 [[-pathToRepo] ] [] -pathToRepo Specifies the file path to the local Git repository (current working directory by default) @@ -129,4 +129,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-repos.md b/docs/check-repos.md index 7e31e6ae..0820c913 100644 --- a/docs/check-repos.md +++ b/docs/check-repos.md @@ -6,7 +6,7 @@ This PowerShell script verifies the data integrity of all Git repositories in a Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-repos.ps1 [[-parentDir] ] [] +/Repos/PowerShell/scripts/check-repos.ps1 [[-parentDir] ] [] -parentDir Specifies the file path to the parent folder @@ -91,4 +91,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-santa.md b/docs/check-santa.md index 7fd73678..b5420a6f 100644 --- a/docs/check-santa.md +++ b/docs/check-santa.md @@ -6,7 +6,7 @@ This PowerShell script checks the time until Saint Nicholas Day and replies by t Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-santa.ps1 [] +/Repos/PowerShell/scripts/check-santa.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -56,4 +56,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-smart-devices.md b/docs/check-smart-devices.md index d05d2b06..78c9fa64 100644 --- a/docs/check-smart-devices.md +++ b/docs/check-smart-devices.md @@ -24,7 +24,7 @@ Script Content This PowerShell script queries the status of the SSD/HDD devices (supporting S.M.A.R.T.) and prints it. .EXAMPLE PS> ./check-smart-devices.ps1 - โœ… 1TB Samsung SSD 970 EVO via NVMe (37ยฐC, 2388 hours, 289x on/off, v2B2QEXE7, test passed) + โœ… 1TB Samsung SSD 970 EVO 1TB via NVMe (35ยฐC, 6142h, 770x on/off, 34TB read, 64TB written, v2B2QEXE7, test passed) .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -48,18 +48,15 @@ function Bytes2String([int64]$bytes) { } try { - #Write-Progress "(1/3) Searching for smartmontools..." $result = (smartctl --version) if ($lastExitCode -ne "0") { throw "Can't execute 'smartctl' - make sure smartmontools are installed" } - #Write-Progress "(2/3) Scanning S.M.A.R.T devices..." if ($IsLinux) { $devices = $(sudo smartctl --scan-open) } else { $devices = $(smartctl --scan-open) } - #Write-Progress "Querying S.M.A.R.T devices..." foreach($device in $devices) { $array = $device.split(" ") $dev = $array[0] @@ -81,37 +78,41 @@ try { } else { $capacity = "" } + $infos = "" if ($details.temperature.current -gt 50) { - $temp = "$($details.temperature.current)ยฐC TOO HOT" + $infos = "$($details.temperature.current)ยฐC TOO HOT" $status = "โš ๏ธ" } elseif ($details.temperature.current -lt 0) { - $temp = "$($details.temperature.current)ยฐC TOO COLD" + $infos = "$($details.temperature.current)ยฐC TOO COLD" $status = "โš ๏ธ" } else { - $temp = "$($details.temperature.current)ยฐC" + $infos = "$($details.temperature.current)ยฐC" } if ($details.power_on_time.hours -gt 87600) { # 10 years - $hours = "$($details.power_on_time.hours) hours (!)" + $infos += ", $($details.power_on_time.hours)h (!)" $status = "โš ๏ธ" } else { - $hours = "$($details.power_on_time.hours) hours" + $infos += ", $($details.power_on_time.hours)h" } if ($details.power_cycle_count -gt 100000) { - $powerOn = "$($details.power_cycle_count)x on/off (!)" + $infos += ", $($details.power_cycle_count)x on/off (!)" $status = "โš ๏ธ" } else { - $powerOn = "$($details.power_cycle_count)x on/off" - } + $infos += ", $($details.power_cycle_count)x on/off" + } + if ($details.nvme_smart_health_information_log.host_reads) { + $infos += ", $(Bytes2String ($details.nvme_smart_health_information_log.data_units_read * 512 * 1000)) read" + $infos += ", $(Bytes2String ($details.nvme_smart_health_information_log.data_units_written * 512 * 1000)) written" + } + $infos += ", v$($details.firmware_version)" if ($details.smart_status.passed) { - $selftest = "test passed" + $infos += ", test passed" } else { - $selftest = "test FAILED" + $infos += ", test FAILED" $status = "โš ๏ธ" } - $firmwareVersion = $details.firmware_version - Write-Host "$status $capacity$modelName via $protocol ($temp, $hours, $powerOn, v$firmwareVersion, $selftest)" + Write-Host "$status $capacity$modelName via $protocol ($infos)" } - #Write-Progress -completed "Done." exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -119,4 +120,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-software.md b/docs/check-software.md index 18eef935..a49e3d70 100644 --- a/docs/check-software.md +++ b/docs/check-software.md @@ -6,7 +6,7 @@ This PowerShell script queries the software status of the local computer and pri Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-software.ps1 [] +/Repos/PowerShell/scripts/check-software.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -20,7 +20,7 @@ PS> ./check-software.ps1 -S O F T W A R E +=== S O F T W A R E === โœ… Windows 10 Pro 64-Bit (v10.0.19045, since 5/2/2021) ... @@ -45,7 +45,7 @@ Script Content .EXAMPLE PS> ./check-software.ps1 - S O F T W A R E + === S O F T W A R E === โœ… Windows 10 Pro 64-Bit (v10.0.19045, since 5/2/2021) ... .LINK @@ -54,7 +54,7 @@ Script Content Author: Markus Fleschutz | License: CC0 #> -Write-Host "`n S O F T W A R E" -foregroundColor green +Write-Host "`n === S O F T W A R E ===" -foregroundColor green & "$PSScriptRoot/check-os.ps1" & "$PSScriptRoot/check-uptime.ps1" & "$PSScriptRoot/check-apps.ps1" @@ -64,4 +64,4 @@ Write-Host "`n S O F T W A R E" -foregroundColor green exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-subnet-mask.md b/docs/check-subnet-mask.md index e27fad9a..84869011 100644 --- a/docs/check-subnet-mask.md +++ b/docs/check-subnet-mask.md @@ -6,7 +6,7 @@ This PowerShell script checks the given subnet mask for validity. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-subnet-mask.ps1 [[-address] ] [] +/Repos/PowerShell/scripts/check-subnet-mask.ps1 [[-address] ] [] -address Specifies the subnet mask to check @@ -84,4 +84,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-swap-space.md b/docs/check-swap-space.md index 91597a79..b95f8a79 100644 --- a/docs/check-swap-space.md +++ b/docs/check-swap-space.md @@ -6,7 +6,7 @@ This PowerShell script queries the current status of the swap space and prints i Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-swap-space.ps1 [[-minLevel] ] [] +/Repos/PowerShell/scripts/check-swap-space.ps1 [[-minLevel] ] [] -minLevel Specifies the minimum level in MB (10 MB by default) @@ -107,4 +107,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-symlinks.md b/docs/check-symlinks.md index 644c1cd9..8f9bf3db 100644 --- a/docs/check-symlinks.md +++ b/docs/check-symlinks.md @@ -7,7 +7,7 @@ It returns the number of broken symlinks as exit value. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-symlinks.ps1 [[-Folder] ] [] +/Repos/PowerShell/scripts/check-symlinks.ps1 [[-Folder] ] [] -Folder Specifies the path to the folder @@ -100,4 +100,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-time-zone.md b/docs/check-time-zone.md index 11bc658b..8741606d 100644 --- a/docs/check-time-zone.md +++ b/docs/check-time-zone.md @@ -6,7 +6,7 @@ This PowerShell script queries the local time zone and prints it. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-time-zone.ps1 [] +/Repos/PowerShell/scripts/check-time-zone.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -66,4 +66,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-uptime.md b/docs/check-uptime.md index d505ab80..20c9fc60 100644 --- a/docs/check-uptime.md +++ b/docs/check-uptime.md @@ -103,7 +103,7 @@ try { } if ($reason -ne "") { $status = "โš ๏ธ" - $pending = "with pending reboot ($($reason.substring(2)) in registry)" + $pending = "with pending reboot (registry has $($reason.substring(2)))" } } Write-Host "$status $(hostname) is up for $(TimeSpanAsString $uptime) since $($lastBootTime.ToShortDateString()) $pending" @@ -114,4 +114,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-vpn.md b/docs/check-vpn.md index 0924a0e6..4c416d4a 100644 --- a/docs/check-vpn.md +++ b/docs/check-vpn.md @@ -6,7 +6,7 @@ This PowerShell script queries the status of the VPN connection(s) and prints it Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-vpn.ps1 [] +/Repos/PowerShell/scripts/check-vpn.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -17,7 +17,7 @@ Example ------- ```powershell PS> ./check-vpn.ps1 -โœ… VPN to NASA L2TP is connected +โœ… Internet VPN to NASA L2TP is connected ``` @@ -39,7 +39,7 @@ Script Content This PowerShell script queries the status of the VPN connection(s) and prints it. .EXAMPLE PS> ./check-vpn.ps1 - โœ… VPN to NASA L2TP is connected + โœ… Internet VPN to NASA L2TP is connected .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -53,7 +53,7 @@ try { } else { $connections = Get-VPNConnection foreach($connection in $connections) { - Write-Host "โœ… VPN to $($connection.Name) is $($connection.ConnectionStatus.ToLower())" + Write-Host "โœ… Internet VPN to $($connection.Name) is $($connection.ConnectionStatus.ToLower())" $noVPN = $false } } @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-weather.md b/docs/check-weather.md index f84a083e..ab911194 100644 --- a/docs/check-weather.md +++ b/docs/check-weather.md @@ -6,7 +6,7 @@ This PowerShell script checks the current weather report. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-weather.ps1 [[-location] ] [] +/Repos/PowerShell/scripts/check-weather.ps1 [[-location] ] [] -location Specifies the location to use (determined automatically per default) @@ -81,4 +81,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-week.md b/docs/check-week.md index cb2e1045..79f56a12 100644 --- a/docs/check-week.md +++ b/docs/check-week.md @@ -6,7 +6,7 @@ This PowerShell script determines and speaks the current week number by text-to- Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-week.ps1 [] +/Repos/PowerShell/scripts/check-week.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -54,4 +54,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-wind.md b/docs/check-wind.md index b23df69c..7e8d037b 100644 --- a/docs/check-wind.md +++ b/docs/check-wind.md @@ -6,7 +6,7 @@ This PowerShell script determines the current wind conditions and replies by tex Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-wind.ps1 [[-location] ] [] +/Repos/PowerShell/scripts/check-wind.ps1 [[-location] ] [] -location Specifies the location to use (determined automatically per default) @@ -72,4 +72,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-windows-system-files.md b/docs/check-windows-system-files.md index ed8d71c9..a3f4daf0 100644 --- a/docs/check-windows-system-files.md +++ b/docs/check-windows-system-files.md @@ -6,7 +6,7 @@ This PowerShell script checks the validity of the Windows system files. It requi Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-windows-system-files.ps1 [] +/Repos/PowerShell/scripts/check-windows-system-files.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -60,4 +60,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-xml-file.md b/docs/check-xml-file.md index a9efd69c..802ef99e 100644 --- a/docs/check-xml-file.md +++ b/docs/check-xml-file.md @@ -6,7 +6,7 @@ This PowerShell script checks the given XML file for validity. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-xml-file.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/check-xml-file.ps1 [[-path] ] [] -path Specifies the path to the XML file @@ -85,4 +85,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/check-xml-files.md b/docs/check-xml-files.md index d91e9efa..47d96407 100644 --- a/docs/check-xml-files.md +++ b/docs/check-xml-files.md @@ -6,7 +6,7 @@ This PowerShell script verifies any XML file (with suffix .xml) in the given dir Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/check-xml-files.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/check-xml-files.ps1 [[-path] ] [] -path Specifies the path to the directory tree (current working dir by default) @@ -83,4 +83,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/clean-repo.md b/docs/clean-repo.md index 0cfc294b..0681e906 100644 --- a/docs/clean-repo.md +++ b/docs/clean-repo.md @@ -7,7 +7,7 @@ NOTE: To be used with care! This cannot be undone! Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/clean-repo.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/clean-repo.ps1 [[-path] ] [] -path Specifies the file path to the local Git repository (current working directory by default) @@ -31,7 +31,7 @@ PS> ./clean-repo.ps1 C:\Repos\rust โณ (2/4) Checking local repository... C:\Repos\rust โณ (3/4) Removing untracked files in repository... โณ (4/4) Removing untracked files in submodules... -โœ… Cleaned up ๐Ÿ“‚rust repo in 2s. +โœ… Cleaned up repo ๐Ÿ“‚rust in 2s. ``` @@ -60,7 +60,7 @@ Script Content โณ (2/4) Checking local repository... C:\Repos\rust โณ (3/4) Removing untracked files in repository... โณ (4/4) Removing untracked files in submodules... - โœ… Cleaned up ๐Ÿ“‚rust repo in 2s. + โœ… Cleaned up repo ๐Ÿ“‚rust in 2s. .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -93,7 +93,7 @@ try { if ($lastExitCode -ne "0") { throw "'git clean' in the submodules failed with exit code $lastExitCode" } [int]$elapsed = $stopWatch.Elapsed.TotalSeconds - "โœ… Cleaned up ๐Ÿ“‚$repoName repo in $($elapsed)s." + "โœ… Cleaned up repo ๐Ÿ“‚$repoName in $($elapsed)s." exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -101,4 +101,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/clean-repos.md b/docs/clean-repos.md index fb6bd96b..9707a0a4 100644 --- a/docs/clean-repos.md +++ b/docs/clean-repos.md @@ -6,7 +6,7 @@ This PowerShell script cleans all Git repositories in a folder from untracked fi Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/clean-repos.ps1 [[-parentDir] ] [] +/Repos/PowerShell/scripts/clean-repos.ps1 [[-parentDir] ] [] -parentDir Specifies the path to the parent folder (current working dir by default) @@ -100,4 +100,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/clear-dns-cache.md b/docs/clear-dns-cache.md index 76d4b656..30e59656 100644 --- a/docs/clear-dns-cache.md +++ b/docs/clear-dns-cache.md @@ -6,7 +6,7 @@ This PowerShell script clears the DNS client cache of the local computer. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/clear-dns-cache.ps1 [] +/Repos/PowerShell/scripts/clear-dns-cache.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -60,4 +60,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/clear-recycle-bin.md b/docs/clear-recycle-bin.md index 46b33343..77710da1 100644 --- a/docs/clear-recycle-bin.md +++ b/docs/clear-recycle-bin.md @@ -7,7 +7,7 @@ IMPORTANT NOTE: this cannot be undo! Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/clear-recycle-bin.ps1 [] +/Repos/PowerShell/scripts/clear-recycle-bin.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/clone-repos.md b/docs/clone-repos.md index d1a0a09a..62ec9f99 100644 --- a/docs/clone-repos.md +++ b/docs/clone-repos.md @@ -6,7 +6,7 @@ This PowerShell script clones popular Git repositories into a common target dire Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/clone-repos.ps1 [[-targetDir] ] [] +/Repos/PowerShell/scripts/clone-repos.ps1 [[-targetDir] ] [] -targetDir Specifies the file path to the target directory (current working directory by default) @@ -118,4 +118,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/clone-shallow.md b/docs/clone-shallow.md index a1cfd1e4..57244fe2 100644 --- a/docs/clone-shallow.md +++ b/docs/clone-shallow.md @@ -6,7 +6,7 @@ This PowerShell script clones popular Git repositories into a common target dire Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/clone-shallow.ps1 [[-targetDir] ] [] +/Repos/PowerShell/scripts/clone-shallow.ps1 [[-targetDir] ] [] -targetDir Specifies the file path to the target directory (current working directory by default) @@ -74,4 +74,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/close-calculator.md b/docs/close-calculator.md index 76d2f89f..f048389d 100644 --- a/docs/close-calculator.md +++ b/docs/close-calculator.md @@ -6,7 +6,7 @@ This PowerShell script closes the calculator application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-calculator.ps1 [] +/Repos/PowerShell/scripts/close-calculator.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Stop-Process -name "CalculatorApp" exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/close-chrome.md b/docs/close-chrome.md index 0f14815e..1a7f2aee 100644 --- a/docs/close-chrome.md +++ b/docs/close-chrome.md @@ -6,7 +6,7 @@ This PowerShell script closes the Google Chrome Web browser gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-chrome.ps1 [] +/Repos/PowerShell/scripts/close-chrome.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/close-cortana.md b/docs/close-cortana.md index eed33020..db0fbe65 100644 --- a/docs/close-cortana.md +++ b/docs/close-cortana.md @@ -6,7 +6,7 @@ This PowerShell script closes Microsoft's Cortana application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-cortana.ps1 [] +/Repos/PowerShell/scripts/close-cortana.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/close-edge.md b/docs/close-edge.md index 42581953..43ae9142 100644 --- a/docs/close-edge.md +++ b/docs/close-edge.md @@ -6,7 +6,7 @@ This PowerShell script closes the Microsoft Edge Web browser gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-edge.ps1 [] +/Repos/PowerShell/scripts/close-edge.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -52,4 +52,4 @@ if ($lastExitCode -ne "0") { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/close-file-explorer.md b/docs/close-file-explorer.md index f4af1e8e..fbbd2bc5 100644 --- a/docs/close-file-explorer.md +++ b/docs/close-file-explorer.md @@ -6,7 +6,7 @@ This PowerShell script closes the Microsoft File Explorer application gracefully Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-file-explorer.ps1 [] +/Repos/PowerShell/scripts/close-file-explorer.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/close-firefox.md b/docs/close-firefox.md index 53319a56..1d494e82 100644 --- a/docs/close-firefox.md +++ b/docs/close-firefox.md @@ -6,7 +6,7 @@ This PowerShell script closes the Mozilla Firefox Web browser gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-firefox.ps1 [] +/Repos/PowerShell/scripts/close-firefox.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)* diff --git a/docs/close-git-extensions.md b/docs/close-git-extensions.md index 2e983a98..938db911 100644 --- a/docs/close-git-extensions.md +++ b/docs/close-git-extensions.md @@ -6,7 +6,7 @@ This PowerShell script closes the Git Extensions application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-git-extensions.ps1 [] +/Repos/PowerShell/scripts/close-git-extensions.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -52,4 +52,4 @@ if ($lastExitCode -ne "0") { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-magnifier.md b/docs/close-magnifier.md index 8b5adbd7..23b89dbb 100644 --- a/docs/close-magnifier.md +++ b/docs/close-magnifier.md @@ -6,7 +6,7 @@ This PowerShell script closes the Windows Screen Magnifier application gracefull Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-magnifier.ps1 [] +/Repos/PowerShell/scripts/close-magnifier.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ tskill magnify exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-microsoft-paint.md b/docs/close-microsoft-paint.md index 72718137..331526ad 100644 --- a/docs/close-microsoft-paint.md +++ b/docs/close-microsoft-paint.md @@ -6,7 +6,7 @@ This PowerShell script closes the Microsoft Paint application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-microsoft-paint.ps1 [] +/Repos/PowerShell/scripts/close-microsoft-paint.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -52,4 +52,4 @@ if ($lastExitCode -ne "0") { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-microsoft-store.md b/docs/close-microsoft-store.md index db0743b5..46ece023 100644 --- a/docs/close-microsoft-store.md +++ b/docs/close-microsoft-store.md @@ -6,7 +6,7 @@ This PowerShell script closes the Microsoft Store application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-microsoft-store.ps1 [] +/Repos/PowerShell/scripts/close-microsoft-store.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -52,4 +52,4 @@ if ($lastExitCode -ne "0") { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-netflix.md b/docs/close-netflix.md index a2583b18..4cd02770 100644 --- a/docs/close-netflix.md +++ b/docs/close-netflix.md @@ -6,7 +6,7 @@ This PowerShell script closes the Netflix application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-netflix.ps1 [] +/Repos/PowerShell/scripts/close-netflix.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-notepad.md b/docs/close-notepad.md index bffd2179..9d87c2a9 100644 --- a/docs/close-notepad.md +++ b/docs/close-notepad.md @@ -6,7 +6,7 @@ This PowerShell script closes the Notepad application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-notepad.ps1 [] +/Repos/PowerShell/scripts/close-notepad.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-obs-studio.md b/docs/close-obs-studio.md index c5837f18..f8dac957 100644 --- a/docs/close-obs-studio.md +++ b/docs/close-obs-studio.md @@ -6,7 +6,7 @@ This PowerShell script closes the OBS Studio application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-obs-studio.ps1 [] +/Repos/PowerShell/scripts/close-obs-studio.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -52,4 +52,4 @@ if ($lastExitCode -ne "0") { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-one-calendar.md b/docs/close-one-calendar.md index b7bdc3f6..6668acf3 100644 --- a/docs/close-one-calendar.md +++ b/docs/close-one-calendar.md @@ -6,7 +6,7 @@ This PowerShell script closes the OneCalendar application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-one-calendar.ps1 [] +/Repos/PowerShell/scripts/close-one-calendar.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -52,4 +52,4 @@ if ($lastExitCode -ne "0") { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-outlook.md b/docs/close-outlook.md index 0ec1c984..be504a3b 100644 --- a/docs/close-outlook.md +++ b/docs/close-outlook.md @@ -6,7 +6,7 @@ This PowerShell script closes the Microsoft Outlook email application gracefully Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-outlook.ps1 [] +/Repos/PowerShell/scripts/close-outlook.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -52,4 +52,4 @@ if ($lastExitCode -ne "0") { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-paint-three-d.md b/docs/close-paint-three-d.md index 43f6df0b..ec830b3c 100644 --- a/docs/close-paint-three-d.md +++ b/docs/close-paint-three-d.md @@ -6,7 +6,7 @@ This PowerShell script closes the Paint 3D application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-paint-three-d.ps1 [] +/Repos/PowerShell/scripts/close-paint-three-d.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -52,4 +52,4 @@ if ($lastExitCode -ne "0") { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-program.md b/docs/close-program.md index 8f79211c..f6742f00 100644 --- a/docs/close-program.md +++ b/docs/close-program.md @@ -6,7 +6,7 @@ This PowerShell script closes a program's processes gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-program.ps1 [[-fullProgramName] ] [[-programName] ] [[-programAliasName] ] [] +/Repos/PowerShell/scripts/close-program.ps1 [[-fullProgramName] ] [[-programName] ] [[-programAliasName] ] [] -fullProgramName Specifies the full program name @@ -118,4 +118,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-serenade.md b/docs/close-serenade.md index 7e5a6dac..c1bccf4b 100644 --- a/docs/close-serenade.md +++ b/docs/close-serenade.md @@ -6,7 +6,7 @@ This PowerShell script closes the Serenade.ai application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-serenade.ps1 [] +/Repos/PowerShell/scripts/close-serenade.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-snipping-tool.md b/docs/close-snipping-tool.md index 50ce5fe6..0f9dc599 100644 --- a/docs/close-snipping-tool.md +++ b/docs/close-snipping-tool.md @@ -6,7 +6,7 @@ This PowerShell script closes the Snipping Tool application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-snipping-tool.ps1 [] +/Repos/PowerShell/scripts/close-snipping-tool.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-spotify.md b/docs/close-spotify.md index 551014fe..81399455 100644 --- a/docs/close-spotify.md +++ b/docs/close-spotify.md @@ -6,7 +6,7 @@ This PowerShell script closes the Spotify application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-spotify.ps1 [] +/Repos/PowerShell/scripts/close-spotify.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-task-manager.md b/docs/close-task-manager.md index 205ac26d..2a8ea783 100644 --- a/docs/close-task-manager.md +++ b/docs/close-task-manager.md @@ -6,7 +6,7 @@ This PowerShell script closes the Task Manager application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-task-manager.ps1 [] +/Repos/PowerShell/scripts/close-task-manager.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ tskill taskmgr exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-three-d-viewer.md b/docs/close-three-d-viewer.md index b53a0e54..206ad3cb 100644 --- a/docs/close-three-d-viewer.md +++ b/docs/close-three-d-viewer.md @@ -6,7 +6,7 @@ This PowerShell script closes the 3D-Viewer application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-three-d-viewer.ps1 [] +/Repos/PowerShell/scripts/close-three-d-viewer.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -52,4 +52,4 @@ if ($lastExitCode -ne "0") { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-thunderbird.md b/docs/close-thunderbird.md index f9e03741..c28521fc 100644 --- a/docs/close-thunderbird.md +++ b/docs/close-thunderbird.md @@ -6,7 +6,7 @@ This PowerShell script closes the Mozilla Thunderbird email application graceful Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-thunderbird.ps1 [] +/Repos/PowerShell/scripts/close-thunderbird.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -52,4 +52,4 @@ if ($lastExitCode -ne "0") { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-visual-studio.md b/docs/close-visual-studio.md index 343cd297..ff26d21c 100644 --- a/docs/close-visual-studio.md +++ b/docs/close-visual-studio.md @@ -6,7 +6,7 @@ This PowerShell script closes the Microsoft Visual Studio application gracefully Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-visual-studio.ps1 [] +/Repos/PowerShell/scripts/close-visual-studio.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -52,4 +52,4 @@ if ($lastExitCode -ne "0") { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-vlc.md b/docs/close-vlc.md index e69c2d31..a5524398 100644 --- a/docs/close-vlc.md +++ b/docs/close-vlc.md @@ -6,7 +6,7 @@ This PowerShell script closes the VLC media player application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-vlc.ps1 [] +/Repos/PowerShell/scripts/close-vlc.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/close-windows-terminal.md b/docs/close-windows-terminal.md index d1e47777..e500379a 100644 --- a/docs/close-windows-terminal.md +++ b/docs/close-windows-terminal.md @@ -6,7 +6,7 @@ This PowerShell script closes the Windows Terminal application gracefully. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/close-windows-terminal.ps1 [] +/Repos/PowerShell/scripts/close-windows-terminal.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/configure-git.md b/docs/configure-git.md index 0f0307b5..815a7960 100644 --- a/docs/configure-git.md +++ b/docs/configure-git.md @@ -6,7 +6,7 @@ This PowerShell script configures your Git user settings. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/configure-git.ps1 [[-fullName] ] [[-emailAddress] ] [[-favoriteEditor] ] [] +/Repos/PowerShell/scripts/configure-git.ps1 [[-fullName] ] [[-emailAddress] ] [[-favoriteEditor] ] [] -fullName Specifies the user's full name @@ -141,4 +141,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/connect-vpn.md b/docs/connect-vpn.md index dedc0ca8..96211b53 100644 --- a/docs/connect-vpn.md +++ b/docs/connect-vpn.md @@ -6,7 +6,7 @@ This PowerShell script tries to connect to the VPN. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/connect-vpn.ps1 [] +/Repos/PowerShell/scripts/connect-vpn.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -62,4 +62,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-csv2txt.md b/docs/convert-csv2txt.md index 371c2cf7..f5c3c22b 100644 --- a/docs/convert-csv2txt.md +++ b/docs/convert-csv2txt.md @@ -6,7 +6,7 @@ This PowerShell script converts a .CSV file into a text file and prints it. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/convert-csv2txt.ps1 [[-Path] ] [] +/Repos/PowerShell/scripts/convert-csv2txt.ps1 [[-Path] ] [] -Path Specifies the path to the .CSV file @@ -72,4 +72,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-dir2zip.md b/docs/convert-dir2zip.md index d87dee16..b66a8044 100644 --- a/docs/convert-dir2zip.md +++ b/docs/convert-dir2zip.md @@ -6,7 +6,7 @@ This PowerShell script creates a new compressed .ZIP file from a directory (incl Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/convert-dir2zip.ps1 [[-dirPath] ] [[-zipPath] ] [] +/Repos/PowerShell/scripts/convert-dir2zip.ps1 [[-dirPath] ] [[-zipPath] ] [] -dirPath Specifies the path to the directory @@ -88,4 +88,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-docx2md.md b/docs/convert-docx2md.md index 179084c0..35ecd12f 100644 --- a/docs/convert-docx2md.md +++ b/docs/convert-docx2md.md @@ -6,7 +6,7 @@ This PowerShell script converts .DOCX file(s) into Markdown. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/convert-docx2md.ps1 [[-FilePattern] ] [] +/Repos/PowerShell/scripts/convert-docx2md.ps1 [[-FilePattern] ] [] -FilePattern Specifies the file pattern to the .DOCX file(s) @@ -81,4 +81,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-frames2mp4.md b/docs/convert-frames2mp4.md index 38ffb0ee..75ccdd7d 100644 --- a/docs/convert-frames2mp4.md +++ b/docs/convert-frames2mp4.md @@ -60,4 +60,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-image2ascii.md b/docs/convert-image2ascii.md index 9ac12332..fcc8272d 100644 --- a/docs/convert-image2ascii.md +++ b/docs/convert-image2ascii.md @@ -114,4 +114,4 @@ Script Content } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-image2blurred-frames.md b/docs/convert-image2blurred-frames.md index 1858ac40..be75f8ab 100644 --- a/docs/convert-image2blurred-frames.md +++ b/docs/convert-image2blurred-frames.md @@ -70,4 +70,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-image2pixelated-frames.md b/docs/convert-image2pixelated-frames.md index aaa13a79..bd484112 100644 --- a/docs/convert-image2pixelated-frames.md +++ b/docs/convert-image2pixelated-frames.md @@ -70,4 +70,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-md2docx.md b/docs/convert-md2docx.md index 279edd30..2df1b631 100644 --- a/docs/convert-md2docx.md +++ b/docs/convert-md2docx.md @@ -22,4 +22,4 @@ Script Content gci -r -i *.md |foreach{$docx=$_.directoryname+"\"+$_.basename+".docx";pandoc -f markdown -s --citeproc $_.name -o $docx} ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-md2html.md b/docs/convert-md2html.md index 2a08ec68..087c9c91 100644 --- a/docs/convert-md2html.md +++ b/docs/convert-md2html.md @@ -6,7 +6,7 @@ This PowerShell script converts Markdown file(s) into HTML. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/convert-md2html.ps1 [[-FilePattern] ] [] +/Repos/PowerShell/scripts/convert-md2html.ps1 [[-FilePattern] ] [] -FilePattern Specifies the file pattern to the Markdown file(s) @@ -80,4 +80,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-md2pdf.md b/docs/convert-md2pdf.md index d75b293b..ef5e6a8e 100644 --- a/docs/convert-md2pdf.md +++ b/docs/convert-md2pdf.md @@ -20,4 +20,4 @@ Script Content gci -r -i *.md |foreach{$pdf=$_.directoryname+"\"+$_.basename+".pdf";pandoc -f markdown -s --citeproc $_.name -o $pdf} ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-mysql2csv.md b/docs/convert-mysql2csv.md index e858703b..d5792765 100644 --- a/docs/convert-mysql2csv.md +++ b/docs/convert-mysql2csv.md @@ -6,7 +6,7 @@ This PowerShell script converts a MySQL database table to a .CSV file. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/convert-mysql2csv.ps1 [[-server] ] [[-database] ] [[-username] ] [[-password] ] [[-query] ] [] +/Repos/PowerShell/scripts/convert-mysql2csv.ps1 [[-server] ] [[-database] ] [[-username] ] [[-password] ] [[-query] ] [] -server Specifies the server's hostname or IP address @@ -119,4 +119,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-ps2bat.md b/docs/convert-ps2bat.md index 65473ed6..33a0ebad 100644 --- a/docs/convert-ps2bat.md +++ b/docs/convert-ps2bat.md @@ -6,7 +6,7 @@ This PowerShell script converts one or more PowerShell scripts to .bat batch fil Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/convert-ps2bat.ps1 [[-Filepattern] ] [] +/Repos/PowerShell/scripts/convert-ps2bat.ps1 [[-Filepattern] ] [] -Filepattern Specifies the file pattern @@ -89,4 +89,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-ps2md.md b/docs/convert-ps2md.md index e114b6b9..78a28fe1 100644 --- a/docs/convert-ps2md.md +++ b/docs/convert-ps2md.md @@ -6,7 +6,7 @@ This PowerShell script converts the comment-based help of a PowerShell script to Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/convert-ps2md.ps1 [[-filename] ] [] +/Repos/PowerShell/scripts/convert-ps2md.ps1 [[-filename] ] [] -filename Specifies the path to the PowerShell script @@ -178,11 +178,11 @@ try { "``````" "" $now = [datetime]::Now - "*(generated by convert-ps2md.ps1 as of $now)*" + "*(page generated by convert-ps2md.ps1 as of $now)*" } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" exit 1 } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-sql2csv.md b/docs/convert-sql2csv.md index 928c0d62..139a49ad 100644 --- a/docs/convert-sql2csv.md +++ b/docs/convert-sql2csv.md @@ -6,7 +6,7 @@ This PowerShell script converts a SQL database table to a .CSV file. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/convert-sql2csv.ps1 [[-server] ] [[-database] ] [[-username] ] [[-password] ] [[-query] ] [] +/Repos/PowerShell/scripts/convert-sql2csv.ps1 [[-server] ] [[-database] ] [[-username] ] [[-password] ] [[-query] ] [] -server Specifies the server's hostname or IP address @@ -120,4 +120,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/convert-txt2wav.md b/docs/convert-txt2wav.md index cae30c3a..e3bca8c5 100644 --- a/docs/convert-txt2wav.md +++ b/docs/convert-txt2wav.md @@ -6,7 +6,7 @@ This PowerShell script converts text to a .WAV audio file. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/convert-txt2wav.ps1 [[-Text] ] [[-WavFile] ] [] +/Repos/PowerShell/scripts/convert-txt2wav.ps1 [[-Text] ] [[-WavFile] ] [] -Text Specifies the text to use @@ -84,4 +84,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/copy-photos-sorted.md b/docs/copy-photos-sorted.md index 125033df..2d453379 100644 --- a/docs/copy-photos-sorted.md +++ b/docs/copy-photos-sorted.md @@ -29,7 +29,7 @@ Script Content .EXAMPLE PS> ./copy-photos-sorted.ps1 D:\iPhone\DCIM C:\MyPhotos โณ Copying IMG_20240903_134445.jpg to C:\MyPhotos\2024\09 SEP\... - โœ… Copied 1 photo (0 skipped) to ๐Ÿ“‚C:\MyPhotos in 41s. + โœ… Copied 1 photo to ๐Ÿ“‚C:\MyPhotos (0 skipped) in 41s. .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -107,7 +107,7 @@ try { } [int]$elapsed = $stopWatch.Elapsed.TotalSeconds [int]$copied = $files.Count - $skipped - "โœ… Copied $copied photos ($skipped skipped) to ๐Ÿ“‚$targetDir in $($elapsed)s." + "โœ… Copied $copied photos to ๐Ÿ“‚$targetDir ($skipped skipped) in $($elapsed)s." exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -115,4 +115,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/count-characters.md b/docs/count-characters.md index cde176dc..f01146e8 100644 --- a/docs/count-characters.md +++ b/docs/count-characters.md @@ -6,7 +6,7 @@ This PowerShell script counts the number of characters in the given string. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/count-characters.ps1 [[-givenString] ] [] +/Repos/PowerShell/scripts/count-characters.ps1 [[-givenString] ] [] -givenString Specifies the given string. @@ -71,4 +71,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/count-lines.md b/docs/count-lines.md index 5780f331..ed255741 100644 --- a/docs/count-lines.md +++ b/docs/count-lines.md @@ -6,7 +6,7 @@ This PowerShell script counts the number of lines in text files (.txt/.md/.c/.h/ Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/count-lines.ps1 [[-pathToDirTree] ] [] +/Repos/PowerShell/scripts/count-lines.ps1 [[-pathToDirTree] ] [] -pathToDirTree Specifies the path to the directory tree. @@ -83,4 +83,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/decrypt-file.md b/docs/decrypt-file.md index 84f49f1f..488590d9 100644 --- a/docs/decrypt-file.md +++ b/docs/decrypt-file.md @@ -6,7 +6,7 @@ This PowerShell script decrypts a file using the given password and AES encrypti Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/decrypt-file.ps1 [[-Path] ] [[-Password] ] [] +/Repos/PowerShell/scripts/decrypt-file.ps1 [[-Path] ] [[-Password] ] [] -Path Specifies the path to the file to decrypt @@ -197,4 +197,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/disable-ipv6.md b/docs/disable-ipv6.md index 0b8a0b0b..d1ed2817 100644 --- a/docs/disable-ipv6.md +++ b/docs/disable-ipv6.md @@ -6,7 +6,7 @@ This PowerShell script disables IPv6 on all network interfaces of the local comp Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/disable-ipv6.ps1 [] +/Repos/PowerShell/scripts/disable-ipv6.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -56,4 +56,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/disconnect-vpn.md b/docs/disconnect-vpn.md index dddce2f5..74ab743b 100644 --- a/docs/disconnect-vpn.md +++ b/docs/disconnect-vpn.md @@ -6,7 +6,7 @@ This PowerShell script disconnects the active VPN connection. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/disconnect-vpn.ps1 [] +/Repos/PowerShell/scripts/disconnect-vpn.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -63,4 +63,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/download-dir.md b/docs/download-dir.md index 29cafa30..4dd820c1 100644 --- a/docs/download-dir.md +++ b/docs/download-dir.md @@ -6,7 +6,7 @@ This PowerShell script downloads a folder (including subfolders) from the given Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/download-dir.ps1 [[-URL] ] [] +/Repos/PowerShell/scripts/download-dir.ps1 [[-URL] ] [] -URL Specifies the URL where to download from @@ -77,4 +77,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/download-file.md b/docs/download-file.md index c0be539d..cf897ca3 100644 --- a/docs/download-file.md +++ b/docs/download-file.md @@ -6,7 +6,7 @@ This PowerShell script downloads a file from the given URL Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/download-file.ps1 [[-URL] ] [] +/Repos/PowerShell/scripts/download-file.ps1 [[-URL] ] [] -URL Specifies the URL where to download from @@ -77,4 +77,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/edit.md b/docs/edit.md index 05dc9f0b..d67f7cfc 100644 --- a/docs/edit.md +++ b/docs/edit.md @@ -6,7 +6,7 @@ This PowerShell script opens a text editor with the given text file. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/edit.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/edit.ps1 [[-path] ] [] -path Specifies the path to the text file (will be queried if none given) @@ -93,4 +93,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/enable-crash-dumps.md b/docs/enable-crash-dumps.md index 0c0394d8..e3f50f79 100644 --- a/docs/enable-crash-dumps.md +++ b/docs/enable-crash-dumps.md @@ -6,7 +6,7 @@ This PowerShell script enables the writing of crash dumps. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/enable-crash-dumps.ps1 [] +/Repos/PowerShell/scripts/enable-crash-dumps.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -330,4 +330,4 @@ Else exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/enable-god-mode.md b/docs/enable-god-mode.md index b2f84485..14f5612c 100644 --- a/docs/enable-god-mode.md +++ b/docs/enable-god-mode.md @@ -6,7 +6,7 @@ This PowerShell script enables the god mode in Windows. It adds a new icon to th Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/enable-god-mode.ps1 [] +/Repos/PowerShell/scripts/enable-god-mode.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -17,7 +17,7 @@ Example ------- ```powershell PS> ./enable-god-mode.ps1 -โœ” God mode enabled, please click the new desktop icon +โœ” God mode enabled - just double-click the new desktop icon. ``` @@ -39,7 +39,7 @@ Script Content This PowerShell script enables the god mode in Windows. It adds a new icon to the desktop. .EXAMPLE PS> ./enable-god-mode.ps1 - โœ” God mode enabled, please click the new desktop icon + โœ” God mode enabled - just double-click the new desktop icon. .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -53,7 +53,7 @@ try { ItemType = 'Directory' } $null = New-Item @GodModeSplat - "โœ… God mode enabled, please click the new desktop icon" + "โœ… God mode enabled - just double-click the new desktop icon." exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -61,4 +61,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/enable-ipv6.md b/docs/enable-ipv6.md index 95a6ded5..0a868e75 100644 --- a/docs/enable-ipv6.md +++ b/docs/enable-ipv6.md @@ -6,7 +6,7 @@ This PowerShell script enables IPv6 on all network interfaces of the local compu Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/enable-ipv6.ps1 [] +/Repos/PowerShell/scripts/enable-ipv6.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -56,4 +56,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/encrypt-file.md b/docs/encrypt-file.md index a64e868e..2fca97cc 100644 --- a/docs/encrypt-file.md +++ b/docs/encrypt-file.md @@ -6,7 +6,7 @@ This PowerShell script encrypts a file using the given password and AES encrypti Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/encrypt-file.ps1 [[-Path] ] [[-Password] ] [] +/Repos/PowerShell/scripts/encrypt-file.ps1 [[-Path] ] [[-Password] ] [] -Path Specifies the path to the file to encrypt @@ -182,4 +182,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/enter-chat.md b/docs/enter-chat.md index acf4fdb1..c6d86cb9 100644 --- a/docs/enter-chat.md +++ b/docs/enter-chat.md @@ -6,7 +6,7 @@ This PowerShell script enters a chat using a common network shared file. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/enter-chat.ps1 [] +/Repos/PowerShell/scripts/enter-chat.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -125,4 +125,4 @@ function Get-ChatChannel } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/enter-host.md b/docs/enter-host.md index 2df61508..bdd59c0e 100644 --- a/docs/enter-host.md +++ b/docs/enter-host.md @@ -6,7 +6,7 @@ This PowerShell script logs into a remote host via secure shell (SSH). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/enter-host.ps1 [[-remoteHost] ] [] +/Repos/PowerShell/scripts/enter-host.ps1 [[-remoteHost] ] [] -remoteHost Specifies the remote hostname or IP address @@ -94,4 +94,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/export-to-manuals.md b/docs/export-to-manuals.md index affeb9a1..c87b7b54 100644 --- a/docs/export-to-manuals.md +++ b/docs/export-to-manuals.md @@ -6,7 +6,7 @@ This PowerShell script exports the comment-based help of all PowerShell scripts Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/export-to-manuals.ps1 [[-filePattern] ] [[-targetDir] ] [] +/Repos/PowerShell/scripts/export-to-manuals.ps1 [[-filePattern] ] [[-targetDir] ] [] -filePattern @@ -90,4 +90,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/fetch-repo.md b/docs/fetch-repo.md index 4b6302a0..a5a4b20a 100644 --- a/docs/fetch-repo.md +++ b/docs/fetch-repo.md @@ -6,7 +6,7 @@ This PowerShell script fetches remote updates into a local Git repository (inclu Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/fetch-repo.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/fetch-repo.ps1 [[-path] ] [] -path Specifies the file path to the local Git repository (default is working directory). @@ -89,4 +89,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/fetch-repos.md b/docs/fetch-repos.md index b974a7d1..4beebb54 100644 --- a/docs/fetch-repos.md +++ b/docs/fetch-repos.md @@ -6,7 +6,7 @@ This PowerShell script fetches updates into all Git repositories in a folder (in Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/fetch-repos.ps1 [[-parentDirPath] ] [] +/Repos/PowerShell/scripts/fetch-repos.ps1 [[-parentDirPath] ] [] -parentDirPath Specifies the path to the parent folder @@ -90,7 +90,7 @@ try { $step++ } [int]$elapsed = $stopWatch.Elapsed.TotalSeconds - "โœ… Fetched into $numFolders repos under ๐Ÿ“‚$parentDirPathName in $($elapsed)s." + "โœ… Fetched into $numFolders repos at ๐Ÿ“‚$parentDirPath in $($elapsed)s." exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -98,4 +98,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/firefox-installer.md b/docs/firefox-installer.md index d16ceb1c..2c3b7736 100644 --- a/docs/firefox-installer.md +++ b/docs/firefox-installer.md @@ -6,7 +6,7 @@ Download and install latest firefox Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/firefox-installer.ps1 [] +/Repos/PowerShell/scripts/firefox-installer.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -64,4 +64,4 @@ try { ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/get-md5.md b/docs/get-md5.md index 9863538c..3138e807 100644 --- a/docs/get-md5.md +++ b/docs/get-md5.md @@ -2,14 +2,15 @@ The *get-md5.ps1* Script =========================== This PowerShell script calculates and prints the MD5 checksum of the given file. +NOTE: MD5 is no longer considered secure, use it for simple change validation only! Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/get-md5.ps1 [[-file] ] [] +/Repos/PowerShell/scripts/get-md5.ps1 [[-path] ] [] --file - Specifies the path to the file +-path + Specifies the file path to the file Required? false Position? 1 @@ -25,7 +26,7 @@ Parameters Example ------- ```powershell -PS> ./get-md5 C:\MyFile.txt +PS> ./get-md5.ps1 C:\MyFile.txt โœ… MD5 hash is 041E16F16E60AD250EB794AF0681BD4A ``` @@ -46,10 +47,11 @@ Script Content Prints the MD5 checksum of a file .DESCRIPTION This PowerShell script calculates and prints the MD5 checksum of the given file. -.PARAMETER file - Specifies the path to the file + NOTE: MD5 is no longer considered secure, use it for simple change validation only! +.PARAMETER path + Specifies the file path to the file .EXAMPLE - PS> ./get-md5 C:\MyFile.txt + PS> ./get-md5.ps1 C:\MyFile.txt โœ… MD5 hash is 041E16F16E60AD250EB794AF0681BD4A .LINK https://github.com/fleschutz/PowerShell @@ -57,19 +59,20 @@ Script Content Author: Markus Fleschutz | License: CC0 #> -param([string]$file = "") +param([string]$path = "") try { - if ($file -eq "" ) { $file = Read-Host "Enter path to file" } + if ($path -eq "" ) { $path = Read-Host "Enter the file path" } + if (-not(Test-Path $path -pathType leaf)) { throw "Invalid file path given: $path" } - $Result = Get-Filehash $file -algorithm MD5 + $result = Get-FileHash -path $path -algorithm MD5 - "โœ… MD5 hash is $($Result.Hash)" + "โœ… MD5 hash is $($result.Hash)" exit 0 # success } catch { - "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + "โš ๏ธ Error: $($Error[0])" exit 1 } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/get-sha1.md b/docs/get-sha1.md index 5f3484de..249bbf1f 100644 --- a/docs/get-sha1.md +++ b/docs/get-sha1.md @@ -2,14 +2,15 @@ The *get-sha1.ps1* Script =========================== This PowerShell script calculates and prints the SHA1 checksum of the given file. +NOTE: SHA1 is no longer considered secure, use it for simple change validation only! Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/get-sha1.ps1 [[-file] ] [] +/Repos/PowerShell/scripts/get-sha1.ps1 [[-path] ] [] --file - Specifies the path to the file +-path + Specifies the local file path to the file Required? false Position? 1 @@ -25,7 +26,7 @@ Parameters Example ------- ```powershell -PS> ./get-sha1 C:\MyFile.txt +PS> ./get-sha1.ps1 C:\MyFile.txt โœ… SHA1 hash is 8105D424D350E308AED92BD9DDEB74A1B53C5D7C ``` @@ -43,13 +44,14 @@ Script Content ```powershell <# .SYNOPSIS - Prints the SHA1 checksum of a file + Prints the SHA1 hash of a file .DESCRIPTION This PowerShell script calculates and prints the SHA1 checksum of the given file. -.PARAMETER file - Specifies the path to the file + NOTE: SHA1 is no longer considered secure, use it for simple change validation only! +.PARAMETER path + Specifies the local file path to the file .EXAMPLE - PS> ./get-sha1 C:\MyFile.txt + PS> ./get-sha1.ps1 C:\MyFile.txt โœ… SHA1 hash is 8105D424D350E308AED92BD9DDEB74A1B53C5D7C .LINK https://github.com/fleschutz/PowerShell @@ -57,19 +59,20 @@ Script Content Author: Markus Fleschutz | License: CC0 #> -param([string]$file = "") +param([string]$path = "") try { - if ($file -eq "" ) { $file = Read-Host "Enter the filename" } + if ($path -eq "" ) { $path = Read-Host "Enter the file path" } + if (-not(Test-Path $path -pathType leaf)) { throw "Invalid file path given: $path" } - $Result = get-filehash $file -algorithm SHA1 + $result = Get-FileHash -path $path -algorithm SHA1 - "โœ… SHA1 hash is $($Result.Hash)" + "โœ… SHA1 hash is $($result.Hash)" exit 0 # success } catch { - "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + "โš ๏ธ Error: $($Error[0])" exit 1 } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/get-sha256.md b/docs/get-sha256.md index 2dd93bff..c5b3fc46 100644 --- a/docs/get-sha256.md +++ b/docs/get-sha256.md @@ -6,10 +6,10 @@ This PowerShell script calculates and prints the SHA256 checksum of the given fi Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/get-sha256.ps1 [[-file] ] [] +/Repos/PowerShell/scripts/get-sha256.ps1 [[-path] ] [] --file - Specifies the path to the file +-path + Specifies the local file path to the file Required? false Position? 1 @@ -25,8 +25,8 @@ Parameters Example ------- ```powershell -PS> ./get-sha256 C:\MyFile.txt -โœ… SHA256 hash is: CEB4AD71524996EB8AA3ADCE04F1E45636A4B58B8BF4462E6971CF2E56B4293E +PS> ./get-sha256.ps1 C:\MyFile.txt +โœ… SHA256 hash is CEB4AD71524996EB8AA3ADCE04F1E45636A4B58B8BF4462E6971CF2E56B4293E ``` @@ -43,33 +43,34 @@ Script Content ```powershell <# .SYNOPSIS - Prints the SHA256 checksum of a file + Prints the SHA256 hash of a file .DESCRIPTION This PowerShell script calculates and prints the SHA256 checksum of the given file. -.PARAMETER file - Specifies the path to the file +.PARAMETER path + Specifies the local file path to the file .EXAMPLE - PS> ./get-sha256 C:\MyFile.txt - โœ… SHA256 hash is: CEB4AD71524996EB8AA3ADCE04F1E45636A4B58B8BF4462E6971CF2E56B4293E + PS> ./get-sha256.ps1 C:\MyFile.txt + โœ… SHA256 hash is CEB4AD71524996EB8AA3ADCE04F1E45636A4B58B8BF4462E6971CF2E56B4293E .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz | License: CC0 #> -param([string]$file = "") +param([string]$path = "") try { - if ($file -eq "" ) { $file = Read-Host "Enter the filename" } + if ($path -eq "" ) { $path = Read-Host "Enter the file path" } + if (-not(Test-Path $path -pathType leaf)) { throw "Invalid file path given: $path" } - $Result = get-filehash $file -algorithm SHA256 + $result = Get-FileHash -path $path -algorithm SHA256 - "โœ… SHA256 hash is: $($Result.Hash)" + "โœ… SHA256 hash is $($result.Hash)" exit 0 # success } catch { - "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + "โš ๏ธ Error: $($Error[0])" exit 1 } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/get-sha512.md b/docs/get-sha512.md new file mode 100644 index 00000000..5ff76ea1 --- /dev/null +++ b/docs/get-sha512.md @@ -0,0 +1,76 @@ +The *get-sha512.ps1* Script +=========================== + +This PowerShell script calculates and prints the SHA512 checksum of the given file. + +Parameters +---------- +```powershell +/Repos/PowerShell/scripts/get-sha512.ps1 [[-path] ] [] + +-path + Specifies the local file path to the file + + 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, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +Example +------- +```powershell +PS> ./get-sha512.ps1 C:\MyFile.txt +โœ… SHA512 hash is CEB4AD71524996EB8AA3ADCE04F1E45636A4B58B8BF4462E6971CF2E56B4293E + +``` + +Notes +----- +Author: Markus Fleschutz | License: CC0 + +Related Links +------------- +https://github.com/fleschutz/PowerShell + +Script Content +-------------- +```powershell +<# +.SYNOPSIS + Prints the SHA512 hash of a file +.DESCRIPTION + This PowerShell script calculates and prints the SHA512 checksum of the given file. +.PARAMETER path + Specifies the local file path to the file +.EXAMPLE + PS> ./get-sha512.ps1 C:\MyFile.txt + โœ… SHA512 hash is CEB4AD71524996EB8AA3ADCE04F1E45636A4B58B8BF4462E6971CF2E56B4293E +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +param([string]$path = "") + +try { + if ($path -eq "" ) { $path = Read-Host "Enter the file path" } + if (-not(Test-Path $path -pathType leaf)) { throw "Invalid file path given: $path" } + + $result = Get-FileHash -path $path -algorithm SHA512 + + "โœ… SHA512 hash is $($result.Hash)" + exit 0 # success +} catch { + "โš ๏ธ Error: $($Error[0])" + exit 1 +} +``` + +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/hello-world.md b/docs/hello-world.md index b5500811..d5858072 100644 --- a/docs/hello-world.md +++ b/docs/hello-world.md @@ -6,7 +6,7 @@ This PowerShell script is a sample script writing "Hello World" to the console. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/hello-world.ps1 [] +/Repos/PowerShell/scripts/hello-world.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -50,4 +50,4 @@ Write-Output "Hello World" exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/hibernate.md b/docs/hibernate.md index 9f925632..aaa5a362 100644 --- a/docs/hibernate.md +++ b/docs/hibernate.md @@ -6,7 +6,7 @@ This PowerShell script hibernates the local computer immediately. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/hibernate.ps1 [] +/Repos/PowerShell/scripts/hibernate.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -59,4 +59,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:53)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/import-vm.md b/docs/import-vm.md index c8680b71..e2d6dc59 100644 --- a/docs/import-vm.md +++ b/docs/import-vm.md @@ -23,4 +23,4 @@ Start-VM $VMName exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/inspect-exe.md b/docs/inspect-exe.md index 23fe5d6d..3ea131ce 100644 --- a/docs/inspect-exe.md +++ b/docs/inspect-exe.md @@ -6,7 +6,7 @@ This PowerShell script prints basic information of an executable file. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/inspect-exe.ps1 [[-PathToExe] ] [] +/Repos/PowerShell/scripts/inspect-exe.ps1 [[-PathToExe] ] [] -PathToExe Specifies the path to the executable file @@ -68,4 +68,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/install-audacity.md b/docs/install-audacity.md index ff46d96f..117e48fb 100644 --- a/docs/install-audacity.md +++ b/docs/install-audacity.md @@ -6,7 +6,7 @@ This PowerShell script installs Audacity. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-audacity.ps1 [] +/Repos/PowerShell/scripts/install-audacity.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/install-basic-apps.md b/docs/install-basic-apps.md index 662f00cb..88472ab4 100644 --- a/docs/install-basic-apps.md +++ b/docs/install-basic-apps.md @@ -7,7 +7,7 @@ NOTE: Apps from Microsoft Store are preferred (due to security and automatic upd Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-basic-apps.ps1 [] +/Repos/PowerShell/scripts/install-basic-apps.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -93,4 +93,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/install-basic-snaps.md b/docs/install-basic-snaps.md index 2c2c9fef..120d7de5 100644 --- a/docs/install-basic-snaps.md +++ b/docs/install-basic-snaps.md @@ -6,7 +6,7 @@ This PowerShell script installs 18 basic Linux snaps. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-basic-snaps.ps1 [] +/Repos/PowerShell/scripts/install-basic-snaps.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -78,4 +78,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/install-calibre-server.md b/docs/install-calibre-server.md index 4dfe812d..52839ba1 100644 --- a/docs/install-calibre-server.md +++ b/docs/install-calibre-server.md @@ -6,7 +6,7 @@ This PowerShell script installs and starts a local Calibre server as background Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-calibre-server.ps1 [[-port] ] [[-mediaFolder] ] [[-userDB] ] [[-logfile] ] [] +/Repos/PowerShell/scripts/install-calibre-server.ps1 [[-port] ] [[-mediaFolder] ] [[-userDB] ] [[-logfile] ] [] -port Specifies the Web port number (8099 by default) @@ -18,26 +18,29 @@ Parameters Accept wildcard characters? false -mediaFolder + Specifies the file path to the media ('/opt/Calibre Library' by default) Required? false Position? 2 - Default value "$HOME/Calibre Library" + Default value /opt/Calibre Library Accept pipeline input? false Accept wildcard characters? false -userDB + Specifies the file path to the user database ('/opt/CalibreUsers.sqlite' by default) Required? false Position? 3 - Default value "$HOME/CalibreUsers.sqlite" + Default value /opt/CalibreUsers.sqlite Accept pipeline input? false Accept wildcard characters? false -logfile + Specifies the file path to the log file ('/opt/CalibreServer.log' by default) Required? false Position? 4 - Default value "$HOME/CalibreServer.log" + Default value /opt/CalibreServer.log Accept pipeline input? false Accept wildcard characters? false @@ -73,6 +76,12 @@ Script Content This PowerShell script installs and starts a local Calibre server as background process. .PARAMETER port Specifies the Web port number (8099 by default) +.PARAMETER mediaFolder + Specifies the file path to the media ('/opt/Calibre Library' by default) +.PARAMETER userDB + Specifies the file path to the user database ('/opt/CalibreUsers.sqlite' by default) +.PARAMETER logfile + Specifies the file path to the log file ('/opt/CalibreServer.log' by default) .EXAMPLE PS> ./install-calibre-server.ps1 โณ (1/5) Updating package infos... @@ -85,38 +94,39 @@ Script Content #Requires -RunAsAdministrator -param([int]$port = 8099, [string]$mediaFolder = "$HOME/Calibre Library", [string]$userDB = "$HOME/CalibreUsers.sqlite", [string]$logfile = "$HOME/CalibreServer.log") +param([int]$port = 8099, [string]$mediaFolder = "/opt/Calibre Library", [string]$userDB = "/opt/CalibreUsers.sqlite", [string]$logfile = "/opt/CalibreServer.log") try { if (-not $IsLinux) { throw "Sorry, currently only supported on Linux" } $stopWatch = [system.diagnostics.stopwatch]::startNew() - "โณ (1/5) Updating package infos..." + "`nโณ (1/5) Updating package infos..." & sudo apt update -y if ($lastExitCode -ne "0") { throw "'apt update' failed" } - "โณ (2/5) Installing Calibre package..." + "`nโณ (2/5) Installing Calibre package..." & sudo apt install calibre -y if ($lastExitCode -ne "0") { throw "'apt install calibre' failed" } - Write-Host "โณ (3/5) Searching for Calibre server executable... " -noNewline + "`nโณ (3/5) Searching for Calibre server executable..." & calibre-server --version if ($lastExitCode -ne "0") { throw "Can't execute 'calibre-server' - make sure Calibre server is installed and available" } - "โณ (4/5) Creating media folder at: $mediaFolder ... (if non-existent)" - mkdir $mediaFolder + "`nโณ (4/5) Creating media folder at: $mediaFolder ... (if non-existent)" + & mkdir $mediaFolder - "โณ (5/5) Starting Calibre server as background process..." - & calibre-server --port $port --num-per-page 100 --userdb $userDB --log $logfile --daemonize $HOME/'Calibre Library' + "`nโณ (5/5) Starting Calibre server as background process..." + & sudo calibre-server --port $port --num-per-page 100 --userdb $userDB --log $logfile --daemonize $mediaFolder [int]$elapsed = $stopWatch.Elapsed.TotalSeconds - "โœ… Installed Calibre server on port $port in $($elapsed)s (media at: $mediaFolder, user DB: $userDB, log to: $logfile)" + "โœ… Installed and started Calibre server on port $port in $($elapsed)s." + " (media at: $mediaFolder, user DB: $userDB, logging to: $logfile)" exit 0 # success } catch { -"โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" -exit 1 + "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/install-chocolatey.md b/docs/install-chocolatey.md index fc797d15..7621a646 100644 --- a/docs/install-chocolatey.md +++ b/docs/install-chocolatey.md @@ -6,7 +6,7 @@ This PowerShell script installs Chocolatey onto the local computer (needs admin Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-chocolatey.ps1 [] +/Repos/PowerShell/scripts/install-chocolatey.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -56,4 +56,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:52)* diff --git a/docs/install-chrome.md b/docs/install-chrome.md index ebc28e3d..a61c7afa 100644 --- a/docs/install-chrome.md +++ b/docs/install-chrome.md @@ -6,7 +6,7 @@ This PowerShell script installs the Google Chrome browser. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-chrome.ps1 [] +/Repos/PowerShell/scripts/install-chrome.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-crystal-disk-info.md b/docs/install-crystal-disk-info.md index 8438ea42..6c261e2b 100644 --- a/docs/install-crystal-disk-info.md +++ b/docs/install-crystal-disk-info.md @@ -6,7 +6,7 @@ This PowerShell script installs CrystalDiskInfo from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-crystal-disk-info.ps1 [] +/Repos/PowerShell/scripts/install-crystal-disk-info.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-crystal-disk-mark.md b/docs/install-crystal-disk-mark.md index 67ab8e00..c46e0904 100644 --- a/docs/install-crystal-disk-mark.md +++ b/docs/install-crystal-disk-mark.md @@ -6,7 +6,7 @@ This PowerShell script installs CrystalDiskMark from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-crystal-disk-mark.ps1 [] +/Repos/PowerShell/scripts/install-crystal-disk-mark.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-discord.md b/docs/install-discord.md index 07bc7eb1..73a8a6db 100644 --- a/docs/install-discord.md +++ b/docs/install-discord.md @@ -6,7 +6,7 @@ This PowerShell script installs Discord from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-discord.ps1 [] +/Repos/PowerShell/scripts/install-discord.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-edge.md b/docs/install-edge.md index 3b1cfe55..60dfcb96 100644 --- a/docs/install-edge.md +++ b/docs/install-edge.md @@ -6,7 +6,7 @@ This PowerShell script installs the Microsoft Edge Browser from the Microsoft St Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-edge.ps1 [] +/Repos/PowerShell/scripts/install-edge.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-evcc.md b/docs/install-evcc.md index cf07a940..76acee67 100644 --- a/docs/install-evcc.md +++ b/docs/install-evcc.md @@ -6,7 +6,7 @@ This PowerShell script installs evcc. Sevcc is an extensible EV Charge Controlle Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-evcc.ps1 [] +/Repos/PowerShell/scripts/install-evcc.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -77,4 +77,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-firefox.md b/docs/install-firefox.md index 704c9a0a..9dfc74a5 100644 --- a/docs/install-firefox.md +++ b/docs/install-firefox.md @@ -6,7 +6,7 @@ This PowerShell script installs Mozilla Firefox from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-firefox.ps1 [] +/Repos/PowerShell/scripts/install-firefox.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-git-extensions.md b/docs/install-git-extensions.md index 37919abc..8160cc88 100644 --- a/docs/install-git-extensions.md +++ b/docs/install-git-extensions.md @@ -6,7 +6,7 @@ This PowerShell script installs Git Extensions. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-git-extensions.ps1 [] +/Repos/PowerShell/scripts/install-git-extensions.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-git-for-windows.md b/docs/install-git-for-windows.md index a74579e7..a5b6364b 100644 --- a/docs/install-git-for-windows.md +++ b/docs/install-git-for-windows.md @@ -6,7 +6,7 @@ This PowerShell script installs Git for Windows. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-git-for-windows.ps1 [] +/Repos/PowerShell/scripts/install-git-for-windows.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-github-cli.md b/docs/install-github-cli.md index e031fc83..51b436d9 100644 --- a/docs/install-github-cli.md +++ b/docs/install-github-cli.md @@ -6,7 +6,7 @@ This PowerShell script installs the GitHub command-line interface (CLI). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-github-cli.ps1 [] +/Repos/PowerShell/scripts/install-github-cli.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -69,4 +69,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-gitlab.md b/docs/install-gitlab.md index b649cd14..36823702 100644 --- a/docs/install-gitlab.md +++ b/docs/install-gitlab.md @@ -31,4 +31,4 @@ Script Content ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-irfanview.md b/docs/install-irfanview.md index 698c95c5..4ecd7bbc 100644 --- a/docs/install-irfanview.md +++ b/docs/install-irfanview.md @@ -6,7 +6,7 @@ This PowerShell script installs IrfanView from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-irfanview.ps1 [] +/Repos/PowerShell/scripts/install-irfanview.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-jenkins-agent.md b/docs/install-jenkins-agent.md new file mode 100644 index 00000000..76baa10e --- /dev/null +++ b/docs/install-jenkins-agent.md @@ -0,0 +1,94 @@ +The *install-jenkins-agent.ps1* Script +=========================== + +This PowerShell script installs and starts the Jenkins Agent. + +Parameters +---------- +```powershell +/Repos/PowerShell/scripts/install-jenkins-agent.ps1 [[-installDir] ] [[-jenkinsURL] ] [[-secretKey] ] [] + +-installDir + + Required? false + Position? 1 + Default value /opt/jenkins-agent + Accept pipeline input? false + Accept wildcard characters? false + +-jenkinsURL + + Required? false + Position? 2 + Default value http://tux:8080 + Accept pipeline input? false + Accept wildcard characters? false + +-secretKey + + Required? false + Position? 3 + Default value + 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> ./install-jenkins-agent.ps1 + +``` + +Notes +----- +Author: Markus Fleschutz | License: CC0 + +Related Links +------------- +https://github.com/fleschutz/PowerShell + +Script Content +-------------- +```powershell +<# +.SYNOPSIS + Installs the Jenkins Agent +.DESCRIPTION + This PowerShell script installs and starts the Jenkins Agent. +.EXAMPLE + PS> ./install-jenkins-agent.ps1 +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +param([string]$installDir = "/opt/jenkins-agent", [string]$jenkinsURL = "http://tux:8080", [string]$secretKey = "") + +try { + "`nโณ (1/4) Installing Java Runtime Environment (JRE)..." + & sudo apt install default-jre + + "`nโณ (2/4) Creating installation folder at: $installDir ... (if non-existent)" + & mkdir $installDir + & cd $installDir + + "`nโณ (3/4) Loading current .JAR program from Jenkins controller..." + & curl -sO $jenkinsURL/jnlpJars/agent.jar + + "`nโณ (4/4) Starting Jenkins agent ..." + & java -jar agent.jar -url $jenkinsURL -secret $secretKey -name pi -webSocket -workDir $installDir + + exit 0 # success +} catch { + "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 +} +``` + +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-knot-resolver.md b/docs/install-knot-resolver.md index a04554ba..36521509 100644 --- a/docs/install-knot-resolver.md +++ b/docs/install-knot-resolver.md @@ -6,7 +6,7 @@ This PowerShell script installs Knot Resolver. Knot Resolver is a DNS resolver d Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-knot-resolver.ps1 [] +/Repos/PowerShell/scripts/install-knot-resolver.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -70,4 +70,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-microsoft-teams.md b/docs/install-microsoft-teams.md index e1f04b50..0418bc86 100644 --- a/docs/install-microsoft-teams.md +++ b/docs/install-microsoft-teams.md @@ -6,7 +6,7 @@ This PowerShell script installs Microsoft Teams from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-microsoft-teams.ps1 [] +/Repos/PowerShell/scripts/install-microsoft-teams.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-netflix.md b/docs/install-netflix.md index 32c08a43..0e567b6b 100644 --- a/docs/install-netflix.md +++ b/docs/install-netflix.md @@ -6,7 +6,7 @@ This PowerShell script installs Netflix from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-netflix.ps1 [] +/Repos/PowerShell/scripts/install-netflix.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-obs-studio.md b/docs/install-obs-studio.md index a6f7afa7..7b33d4b6 100644 --- a/docs/install-obs-studio.md +++ b/docs/install-obs-studio.md @@ -6,7 +6,7 @@ This PowerShell script installs OBS Studio (admin rights are needed). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-obs-studio.ps1 [] +/Repos/PowerShell/scripts/install-obs-studio.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -64,4 +64,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-octoprint.md b/docs/install-octoprint.md index 82faa6dd..3720645b 100644 --- a/docs/install-octoprint.md +++ b/docs/install-octoprint.md @@ -32,4 +32,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-one-calendar.md b/docs/install-one-calendar.md index e6bfc601..5db79915 100644 --- a/docs/install-one-calendar.md +++ b/docs/install-one-calendar.md @@ -6,7 +6,7 @@ This PowerShell script installs One Calendar from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-one-calendar.ps1 [] +/Repos/PowerShell/scripts/install-one-calendar.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-opera-browser.md b/docs/install-opera-browser.md index 468adc8c..ebff6833 100644 --- a/docs/install-opera-browser.md +++ b/docs/install-opera-browser.md @@ -6,7 +6,7 @@ This PowerShell script installs Opera Browser from Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-opera-browser.ps1 [] +/Repos/PowerShell/scripts/install-opera-browser.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-opera-gx.md b/docs/install-opera-gx.md index 959434fe..7833e178 100644 --- a/docs/install-opera-gx.md +++ b/docs/install-opera-gx.md @@ -6,7 +6,7 @@ This PowerShell script installs Opera GX from Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-opera-gx.ps1 [] +/Repos/PowerShell/scripts/install-opera-gx.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-paint-3d.md b/docs/install-paint-3d.md index e1786bb8..6884ed37 100644 --- a/docs/install-paint-3d.md +++ b/docs/install-paint-3d.md @@ -6,7 +6,7 @@ This PowerShell script installs Paint 3D from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-paint-3d.ps1 [] +/Repos/PowerShell/scripts/install-paint-3d.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-power-toys.md b/docs/install-power-toys.md index 87e4ceb3..f24572cf 100644 --- a/docs/install-power-toys.md +++ b/docs/install-power-toys.md @@ -6,7 +6,7 @@ This PowerShell script installs the Microsoft Powertoys. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-power-toys.ps1 [] +/Repos/PowerShell/scripts/install-power-toys.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-powershell.md b/docs/install-powershell.md index c7b9a53d..d2a7c05d 100644 --- a/docs/install-powershell.md +++ b/docs/install-powershell.md @@ -7,9 +7,9 @@ If '-Daily' is specified, then the latest PowerShell daily package will be insta Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-powershell.ps1 [-Destination ] [-Daily] [-DoNotOverwrite] [-AddToPath] [-Preview] [] +/Repos/PowerShell/scripts/install-powershell.ps1 [-Destination ] [-Daily] [-DoNotOverwrite] [-AddToPath] [-Preview] [] -/home/markus/Repos/PowerShell/scripts/install-powershell.ps1 [-UseMSI] [-Quiet] [-AddExplorerContextMenu] [-EnablePSRemoting] [-Preview] [] +/Repos/PowerShell/scripts/install-powershell.ps1 [-UseMSI] [-Quiet] [-AddExplorerContextMenu] [-EnablePSRemoting] [-Preview] [] -Destination The destination path to install PowerShell to. @@ -651,4 +651,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-rufus.md b/docs/install-rufus.md index c119e5f8..a8bbba16 100644 --- a/docs/install-rufus.md +++ b/docs/install-rufus.md @@ -6,7 +6,7 @@ This PowerShell script installs Rufus from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-rufus.ps1 [] +/Repos/PowerShell/scripts/install-rufus.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-salesforce-cli.md b/docs/install-salesforce-cli.md index 7611fb7b..b8d62295 100644 --- a/docs/install-salesforce-cli.md +++ b/docs/install-salesforce-cli.md @@ -6,7 +6,7 @@ This PowerShell script downloads and installs the Salesforce CLI on Windows. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-salesforce-cli.ps1 [] +/Repos/PowerShell/scripts/install-salesforce-cli.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -70,4 +70,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-signal-cli.md b/docs/install-signal-cli.md index 18206900..ab0e6155 100644 --- a/docs/install-signal-cli.md +++ b/docs/install-signal-cli.md @@ -7,7 +7,7 @@ See the Web page for the correct version number. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-signal-cli.ps1 [[-Version] ] [] +/Repos/PowerShell/scripts/install-signal-cli.ps1 [[-Version] ] [] -Version Specifies the version to install @@ -90,4 +90,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-skype.md b/docs/install-skype.md index 4c41ccfd..e641f27e 100644 --- a/docs/install-skype.md +++ b/docs/install-skype.md @@ -6,7 +6,7 @@ This PowerShell script installs Skype from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-skype.ps1 [] +/Repos/PowerShell/scripts/install-skype.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-spotify.md b/docs/install-spotify.md index fe577d64..27666745 100644 --- a/docs/install-spotify.md +++ b/docs/install-spotify.md @@ -6,7 +6,7 @@ This PowerShell script installs Spotify from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-spotify.ps1 [] +/Repos/PowerShell/scripts/install-spotify.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-ssh-client.md b/docs/install-ssh-client.md index 53cb0bd1..ef1dfdaa 100644 --- a/docs/install-ssh-client.md +++ b/docs/install-ssh-client.md @@ -6,7 +6,7 @@ This PowerShell script installs a SSH client (needs admin rights). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-ssh-client.ps1 [] +/Repos/PowerShell/scripts/install-ssh-client.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -64,4 +64,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-ssh-server.md b/docs/install-ssh-server.md index d4244c9d..3b5b73de 100644 --- a/docs/install-ssh-server.md +++ b/docs/install-ssh-server.md @@ -6,7 +6,7 @@ This PowerShell script installs a SSH server (needs admin rights). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-ssh-server.ps1 [] +/Repos/PowerShell/scripts/install-ssh-server.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -78,4 +78,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-thunderbird.md b/docs/install-thunderbird.md index a70ad5df..50b63daa 100644 --- a/docs/install-thunderbird.md +++ b/docs/install-thunderbird.md @@ -6,7 +6,7 @@ This PowerShell script installs Mozilla Thunderbird. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-thunderbird.ps1 [] +/Repos/PowerShell/scripts/install-thunderbird.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-twitter.md b/docs/install-twitter.md index 0da78ceb..a16b401b 100644 --- a/docs/install-twitter.md +++ b/docs/install-twitter.md @@ -6,7 +6,7 @@ This PowerShell script installs Twitter from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-twitter.ps1 [] +/Repos/PowerShell/scripts/install-twitter.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-unbound-server.md b/docs/install-unbound-server.md index 7117d205..f378d4a7 100644 --- a/docs/install-unbound-server.md +++ b/docs/install-unbound-server.md @@ -6,7 +6,7 @@ This PowerShell script installs Unbound, a validating, recursive, caching DNS re Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-unbound-server.ps1 [] +/Repos/PowerShell/scripts/install-unbound-server.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -99,4 +99,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-updates.md b/docs/install-updates.md index 317b75ae..1dee659a 100644 --- a/docs/install-updates.md +++ b/docs/install-updates.md @@ -2,12 +2,12 @@ The *install-updates.ps1* Script =========================== This PowerShell script installs software updates for the local machine (might need admin rights). -NOTE: Use the script 'list-updates.ps1' to list the latest software updates before. +HINT: Use the script 'list-updates.ps1' to list the latest software updates in advance. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-updates.ps1 [] +/Repos/PowerShell/scripts/install-updates.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -18,7 +18,7 @@ Example ------- ```powershell PS> ./install-updates.ps1 -โณ (1/2) Checking requirements... +โณ (1/2) Checking update requirements... โœ… Drive C: has 441 GB free (56% of 1TB used) โœ… Swap space has 1GB free (2% of 1GB used) โœ… No pending system reboot @@ -46,10 +46,10 @@ Script Content Installs software updates .DESCRIPTION This PowerShell script installs software updates for the local machine (might need admin rights). - NOTE: Use the script 'list-updates.ps1' to list the latest software updates before. + HINT: Use the script 'list-updates.ps1' to list the latest software updates in advance. .EXAMPLE PS> ./install-updates.ps1 - โณ (1/2) Checking requirements... + โณ (1/2) Checking update requirements... โœ… Drive C: has 441 GB free (56% of 1TB used) โœ… Swap space has 1GB free (2% of 1GB used) โœ… No pending system reboot @@ -66,7 +66,7 @@ try { $stopWatch = [system.diagnostics.stopwatch]::startNew() if ($IsLinux) { - "โณ (1/5) Checking requirements..." + "โณ (1/5) Checking update requirements..." & "$PSScriptRoot/check-smart-devices.ps1" & "$PSScriptRoot/check-drive-space.ps1" / & "$PSScriptRoot/check-swap-space.ps1" @@ -90,16 +90,17 @@ try { Write-Progress -completed " " } else { # Windows: - "โณ (1/2) Checking requirements..." + "โณ (1/2) Checking update requirements..." & "$PSScriptRoot/check-smart-devices.ps1" & "$PSScriptRoot/check-drive-space.ps1" C & "$PSScriptRoot/check-swap-space.ps1" & "$PSScriptRoot/check-pending-reboot.ps1" Start-Sleep -seconds 3 "" - "โณ (2/2) Installing updates from winget and Microsoft Store..." + "โณ (2/2) Installing updates from winget..." "" - & winget upgrade --all --include-unknown + & winget upgrade --all --source=winget + # & winget upgrade --all --source=msstore # does not work } [int]$elapsed = $stopWatch.Elapsed.TotalSeconds "โœ… Updates installed in $($elapsed)s." @@ -110,4 +111,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-visual-studio-code.md b/docs/install-visual-studio-code.md index c0abdb40..91a03a79 100644 --- a/docs/install-visual-studio-code.md +++ b/docs/install-visual-studio-code.md @@ -6,7 +6,7 @@ This PowerShell script installs Visual Studio Code. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-visual-studio-code.ps1 [] +/Repos/PowerShell/scripts/install-visual-studio-code.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-vivaldi.md b/docs/install-vivaldi.md index f5a74a0f..f4eafaaf 100644 --- a/docs/install-vivaldi.md +++ b/docs/install-vivaldi.md @@ -6,7 +6,7 @@ This PowerShell script installs the Vivaldi browser. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-vivaldi.ps1 [] +/Repos/PowerShell/scripts/install-vivaldi.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-vlc.md b/docs/install-vlc.md index 73e689f1..15a23afa 100644 --- a/docs/install-vlc.md +++ b/docs/install-vlc.md @@ -6,7 +6,7 @@ This PowerShell script installs the VLC media player. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-vlc.ps1 [] +/Repos/PowerShell/scripts/install-vlc.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -64,4 +64,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-windows-terminal.md b/docs/install-windows-terminal.md index a364622d..9556d111 100644 --- a/docs/install-windows-terminal.md +++ b/docs/install-windows-terminal.md @@ -6,7 +6,7 @@ This PowerShell script installs Windows Terminal from the Microsoft Store. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-windows-terminal.ps1 [] +/Repos/PowerShell/scripts/install-windows-terminal.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-wsl.md b/docs/install-wsl.md index 34f43dfe..52ada940 100644 --- a/docs/install-wsl.md +++ b/docs/install-wsl.md @@ -6,7 +6,7 @@ This PowerShell script installs Windows Subsystem for Linux. It needs admin righ Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-wsl.ps1 [] +/Repos/PowerShell/scripts/install-wsl.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -74,4 +74,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/install-zoom.md b/docs/install-zoom.md index cc24995b..7f1ff499 100644 --- a/docs/install-zoom.md +++ b/docs/install-zoom.md @@ -6,7 +6,7 @@ This PowerShell script installs Zoom. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/install-zoom.ps1 [] +/Repos/PowerShell/scripts/install-zoom.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/introduce-powershell.md b/docs/introduce-powershell.md index f5987c68..86ced88d 100644 --- a/docs/introduce-powershell.md +++ b/docs/introduce-powershell.md @@ -6,7 +6,7 @@ This PowerShell script introduces PowerShell to new users and gives an overview Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/introduce-powershell.ps1 [] +/Repos/PowerShell/scripts/introduce-powershell.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -92,4 +92,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-aliases.md b/docs/list-aliases.md index 28db595d..b02f3286 100644 --- a/docs/list-aliases.md +++ b/docs/list-aliases.md @@ -6,7 +6,7 @@ This PowerShell scripts lists all PowerShell aliases. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-aliases.ps1 [] +/Repos/PowerShell/scripts/list-aliases.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-anagrams.md b/docs/list-anagrams.md index c2283e30..d7136739 100644 --- a/docs/list-anagrams.md +++ b/docs/list-anagrams.md @@ -6,7 +6,7 @@ This PowerShell script lists all anagrams of the given word. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-anagrams.ps1 [[-Word] ] [[-Columns] ] [] +/Repos/PowerShell/scripts/list-anagrams.ps1 [[-Word] ] [[-Columns] ] [] -Word Specifies the word to use @@ -120,4 +120,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-apps.md b/docs/list-apps.md index 18d00b9d..6446ab58 100644 --- a/docs/list-apps.md +++ b/docs/list-apps.md @@ -6,7 +6,7 @@ This PowerShell script lists the installed applications (from Windows Store, or Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-apps.ps1 [] +/Repos/PowerShell/scripts/list-apps.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-ascii-table.md b/docs/list-ascii-table.md index 5986de04..0275f94f 100644 --- a/docs/list-ascii-table.md +++ b/docs/list-ascii-table.md @@ -6,7 +6,7 @@ This PowerShell script lists the ASCII table on the console. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-ascii-table.ps1 [] +/Repos/PowerShell/scripts/list-ascii-table.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -120,4 +120,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-automatic-variables.md b/docs/list-automatic-variables.md index 2b0cf98e..12c3b9a4 100644 --- a/docs/list-automatic-variables.md +++ b/docs/list-automatic-variables.md @@ -100,4 +100,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-battery-status.md b/docs/list-battery-status.md index 071634b0..bf2b8dd9 100644 --- a/docs/list-battery-status.md +++ b/docs/list-battery-status.md @@ -6,7 +6,7 @@ This PowerShell script lists the battery status. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-battery-status.ps1 [] +/Repos/PowerShell/scripts/list-battery-status.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -64,4 +64,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-bios.md b/docs/list-bios.md index d89d04a7..a209a3ee 100644 --- a/docs/list-bios.md +++ b/docs/list-bios.md @@ -6,7 +6,7 @@ This PowerShell script lists the BIOS details. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-bios.ps1 [] +/Repos/PowerShell/scripts/list-bios.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -63,4 +63,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-bluetooth-devices.md b/docs/list-bluetooth-devices.md index 18b22754..2d8e264a 100644 --- a/docs/list-bluetooth-devices.md +++ b/docs/list-bluetooth-devices.md @@ -6,7 +6,7 @@ This PowerShell script lists all Bluetooth devices connected to the local comput Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-bluetooth-devices.ps1 [] +/Repos/PowerShell/scripts/list-bluetooth-devices.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-branches.md b/docs/list-branches.md index e7afa0cc..2ff50ef3 100644 --- a/docs/list-branches.md +++ b/docs/list-branches.md @@ -6,7 +6,7 @@ This PowerShell script lists branches in a Git repository - either all (default) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-branches.ps1 [[-pathToRepo] ] [[-searchPattern] ] [] +/Repos/PowerShell/scripts/list-branches.ps1 [[-pathToRepo] ] [[-searchPattern] ] [] -pathToRepo Specifies the path to the Git repository (current working directory by default) @@ -107,4 +107,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:54)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-calendar.md b/docs/list-calendar.md index be26cc28..f54ac5bd 100644 --- a/docs/list-calendar.md +++ b/docs/list-calendar.md @@ -6,7 +6,7 @@ Lists calendar elements, either a single month or an entire year. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-calendar.ps1 [[-Month] ] [[-Year] ] [] +/Repos/PowerShell/scripts/list-calendar.ps1 [[-Month] ] [[-Year] ] [] -Month If specified, will limit output to a single month with this numeral value. @@ -245,4 +245,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-cheat-sheet.md b/docs/list-cheat-sheet.md index 50e3afdc..b6c01b76 100644 --- a/docs/list-cheat-sheet.md +++ b/docs/list-cheat-sheet.md @@ -6,7 +6,7 @@ This PowerShell script lists the PowerShell cheat sheet. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-cheat-sheet.ps1 [] +/Repos/PowerShell/scripts/list-cheat-sheet.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -75,4 +75,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-city-weather.md b/docs/list-city-weather.md index d370835f..8aa30caa 100644 --- a/docs/list-city-weather.md +++ b/docs/list-city-weather.md @@ -19,31 +19,36 @@ Script Content ```powershell <# .SYNOPSIS - Lists the weather of cities world-wide + Lists the weather of cities .DESCRIPTION This PowerShell script lists the current weather conditions of cities world-wide (west to east). .EXAMPLE PS> ./list-city-weather.ps1 + + CITY TEMP RAIN WIND SUN + ---- ---- ---- ---- --- + Hawaii โ›…๏ธ +25ยฐC 0.0mm 69% โ†™5km/h 06:49:15 โ†’ 17:47:57 + ... .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz | License: CC0 #> -function ListCityWeather { - $Cities="Hawaii","Los Angeles","Mexico City","Dallas","Miami","New York","Rio de Janeiro","Paris","London","Berlin","Cape Town","Dubai","Mumbai","Singapore","Hong Kong","Perth","Peking","Tokyo","Sydney" - - foreach($City in $Cities) { - $Temp = (Invoke-WebRequest http://wttr.in/${City}?format="%t %c " -UserAgent "curl" -useBasicParsing).Content - $Rain = (Invoke-WebRequest http://wttr.in/${City}?format="%p %h" -UserAgent "curl" -useBasicParsing).Content - $Wind = (Invoke-WebRequest http://wttr.in/${City}?format="%w" -UserAgent "curl" -useBasicParsing).Content - $Sun = (Invoke-WebRequest http://wttr.in/${City}?format="%S โ†’ %s" -UserAgent "curl" -useBasicParsing).Content - New-Object PSObject -Property @{ City="$City"; Temp="$Temp"; Rain="$Rain"; Wind="$Wind"; Sun="$Sun" } +function List-City-Weather { + $cities = @("Hawaii","Los Angeles","Mexico City","Dallas","Miami","New York","Rio de Janeiro","Paris","London","Berlin","Cape Town","Dubai","Mumbai","Singapore","Hong Kong","Perth","Peking","Tokyo","Sydney") + foreach($city in $cities) { + $icon = (Invoke-WebRequest http://wttr.in/${City}?format="%c" -UserAgent "curl" -useBasicParsing).Content + $temp = (Invoke-WebRequest http://wttr.in/${City}?format="%t" -UserAgent "curl" -useBasicParsing).Content + $rain = (Invoke-WebRequest http://wttr.in/${City}?format="%p %h" -UserAgent "curl" -useBasicParsing).Content + $wind = (Invoke-WebRequest http://wttr.in/${City}?format="%w" -UserAgent "curl" -useBasicParsing).Content + $sun = (Invoke-WebRequest http://wttr.in/${City}?format="%S โ†’ %s" -UserAgent "curl" -useBasicParsing).Content + New-Object PSObject -Property @{ CITY="$city $icon"; TEMP=$temp; RAIN=$rain; WIND=$wind; SUN=$sun } } } try { - ListCityWeather | Format-Table -property @{e='City';width=17},@{e='Temp';width=13},@{e='Rain';width=15},@{e='Wind';width=12},@{e='Sun';width=20} + List-City-Weather | Format-Table -property @{e='CITY';width=19},@{e='TEMP';width=9},@{e='RAIN';width=14},@{e='WIND';width=12},@{e='SUN';width=20} exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -51,4 +56,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-cli-tools.md b/docs/list-cli-tools.md index 955a01ef..4a836727 100644 --- a/docs/list-cli-tools.md +++ b/docs/list-cli-tools.md @@ -25,9 +25,9 @@ Script Content .EXAMPLE PS> ./list-cli-tools.ps1 - Tool Name Version Installation Path - --------- ------- ----------------- - 7z 23.01 /usr/bin/7z (38 bytes) + TOOL VERSION INSTALLATION PATH + ---- ------- ----------------- + arp 10.0.22621.4111 C:\Windows\system32\ARP.EXE (45K) ... .LINK https://github.com/fleschutz/PowerShell @@ -72,13 +72,13 @@ function ListTool([string]$Name, [string]$VersionArg) { } else { $Size = 0 } - New-Object PSObject -Property @{ 'Tool Name'=$Name; 'Version'=$Version; 'Installation Path'="$Path ($(Bytes2String $Size))" } + New-Object PSObject -Property @{ 'TOOL'=$Name; 'VERSION'=$Version; 'INSTALLATION PATH'="$Path ($(Bytes2String $Size))" } } catch { return } } -function ListTools { +function List-CLI-Tools { ListTool 7z "-version" ListTool ant "-v" ListTool apt "--version" @@ -350,7 +350,7 @@ function ListTools { } try { - ListTools | Format-Table -property @{e='Tool Name';width=15},@{e='Version';width=15},@{e='Installation Path';width=90} + List-CLI-Tools | Format-Table -property @{e='TOOL';width=15},@{e='VERSION';width=16},@{e='INSTALLATION PATH';width=90} exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -358,4 +358,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-clipboard.md b/docs/list-clipboard.md index b894113e..7d723ab6 100644 --- a/docs/list-clipboard.md +++ b/docs/list-clipboard.md @@ -6,7 +6,7 @@ This PowerShell script lists the contents of the clipboard. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-clipboard.ps1 [] +/Repos/PowerShell/scripts/list-clipboard.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -56,4 +56,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-cmdlets.md b/docs/list-cmdlets.md index 8a171488..57e117d0 100644 --- a/docs/list-cmdlets.md +++ b/docs/list-cmdlets.md @@ -6,7 +6,7 @@ This PowerShell script lists all PowerShell cmdlets. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-cmdlets.ps1 [] +/Repos/PowerShell/scripts/list-cmdlets.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -67,4 +67,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-coffee-prices.md b/docs/list-coffee-prices.md index 08127905..bb85c0de 100644 --- a/docs/list-coffee-prices.md +++ b/docs/list-coffee-prices.md @@ -78,4 +78,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-commit-stats.md b/docs/list-commit-stats.md index 9f3eef76..c4753813 100644 --- a/docs/list-commit-stats.md +++ b/docs/list-commit-stats.md @@ -6,7 +6,7 @@ This PowerShell script lists the commit statistics of a Git repository. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-commit-stats.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/list-commit-stats.ps1 [[-path] ] [] -path Specifies the path to the local Git repository (default is current working dir) @@ -93,4 +93,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-commits.md b/docs/list-commits.md index 394693e8..197b52eb 100644 --- a/docs/list-commits.md +++ b/docs/list-commits.md @@ -6,10 +6,9 @@ This PowerShell script lists all commits in a Git repository. Supported output f Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-commits.ps1 [[-RepoDir] ] [[-Format] ] [] +/Repos/PowerShell/scripts/list-commits.ps1 [[-pathToRepo] ] [[-format] ] [] --RepoDir - Specifies the path to the Git repository. +-pathToRepo Required? false Position? 1 @@ -17,7 +16,7 @@ Parameters Accept pipeline input? false Accept wildcard characters? false --Format +-format Specifies the output format: pretty|list|compact|normal|JSON (pretty by default) Required? false @@ -62,7 +61,7 @@ Script Content .DESCRIPTION This PowerShell script lists all commits in a Git repository. Supported output formats are: pretty, list, compact, normal or JSON. .PARAMETER RepoDir - Specifies the path to the Git repository. + Specifies the file path to the local Git repository. .PARAMETER Format Specifies the output format: pretty|list|compact|normal|JSON (pretty by default) .EXAMPLE @@ -78,40 +77,40 @@ Script Content Author: Markus Fleschutz | License: CC0 #> -param([string]$RepoDir = "$PWD", [string]$Format = "pretty") +param([string]$pathToRepo = "$PWD", [string]$format = "pretty") try { - if (-not(Test-Path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" } + if (-not(Test-Path "$pathToRepo" -pathType container)) { throw "Can't access directory: $pathToRepo" } - $Null = (git --version) + $null = (git --version) if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" } Write-Progress "Fetching latest updates..." - & git -C "$RepoDir" fetch --all --quiet + & git -C "$pathToRepo" fetch --all --quiet if ($lastExitCode -ne "0") { throw "'git fetch' failed" } Write-Progress -Completed "Done." - if ($Format -eq "pretty") { + if ($format -eq "pretty") { "" - & git -C "$RepoDir" log --graph --format=format:'%C(bold yellow)%s%C(reset)%d by %an ๐Ÿ•˜%cs ๐Ÿ”—%h' --all - } elseif ($Format -eq "list") { + & git -C "$pathToRepo" log --graph --format=format:'%C(bold yellow)%s%C(reset)%d by %an ๐Ÿ•˜%cs ๐Ÿ”—%h' --all + } elseif ($format -eq "list") { "" "Hash Date Author Description" "---- ---- ------ -----------" & git log --pretty=format:"%h%x09%cs%x09%an%x09%s" - } elseif ($Format -eq "compact") { + } elseif ($format -eq "compact") { "" "List of Git Commits" "-------------------" - & git -C "$RepoDir" log --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %C(bold blue)by %an %cr%Creset' --abbrev-commit + & git -C "$pathToRepo" log --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %C(bold blue)by %an %cr%Creset' --abbrev-commit if ($lastExitCode -ne "0") { throw "'git log' failed" } - } elseif ($Format -eq "JSON") { - & git -C "$RepoDir" log --pretty=format:'{%n "commit": "%H",%n "abbreviated_commit": "%h",%n "tree": "%T",%n "abbreviated_tree": "%t",%n "parent": "%P",%n "abbreviated_parent": "%p",%n "refs": "%D",%n "encoding": "%e",%n "subject": "%s",%n "sanitized_subject_line": "%f",%n "body": "%b",%n "commit_notes": "%N",%n "verification_flag": "%G?",%n "signer": "%GS",%n "signer_key": "%GK",%n "author": {%n "name": "%aN",%n "email": "%aE",%n "date": "%aD"%n },%n "commiter": {%n "name": "%cN",%n "email": "%cE",%n "date": "%cD"%n }%n},' + } elseif ($format -eq "JSON") { + & git -C "$pathToRepo" log --pretty=format:'{%n "commit": "%H",%n "abbreviated_commit": "%h",%n "tree": "%T",%n "abbreviated_tree": "%t",%n "parent": "%P",%n "abbreviated_parent": "%p",%n "refs": "%D",%n "encoding": "%e",%n "subject": "%s",%n "sanitized_subject_line": "%f",%n "body": "%b",%n "commit_notes": "%N",%n "verification_flag": "%G?",%n "signer": "%GS",%n "signer_key": "%GK",%n "author": {%n "name": "%aN",%n "email": "%aE",%n "date": "%aD"%n },%n "commiter": {%n "name": "%cN",%n "email": "%cE",%n "date": "%cD"%n }%n},' } else { "" "List of Git Commits" "-------------------" - & git -C "$RepoDir" log + & git -C "$pathToRepo" log if ($lastExitCode -ne "0") { throw "'git log' failed" } } exit 0 # success @@ -121,4 +120,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-console-colors.md b/docs/list-console-colors.md index b3822814..2b378637 100644 --- a/docs/list-console-colors.md +++ b/docs/list-console-colors.md @@ -6,7 +6,7 @@ This PowerShell script lists all available console colors. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-console-colors.ps1 [] +/Repos/PowerShell/scripts/list-console-colors.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -74,4 +74,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-countries.md b/docs/list-countries.md index 2f75411a..0e0548b6 100644 --- a/docs/list-countries.md +++ b/docs/list-countries.md @@ -52,4 +52,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-cpu.md b/docs/list-cpu.md index 247858cc..e7f577c6 100644 --- a/docs/list-cpu.md +++ b/docs/list-cpu.md @@ -6,7 +6,7 @@ This PowerShell script lists the CPU details. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-cpu.ps1 [] +/Repos/PowerShell/scripts/list-cpu.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -63,4 +63,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-crypto-rates.md b/docs/list-crypto-rates.md index 238784ed..8fe3194f 100644 --- a/docs/list-crypto-rates.md +++ b/docs/list-crypto-rates.md @@ -25,7 +25,7 @@ Script Content .EXAMPLE PS> ./list-crypto-rates.ps1 - Cryptocurrency USD EUR RUB CNY + CRYPTOCURRENCY USD EUR RUB CNY -------------- --- --- --- --- 1 Bitcoin (BTC) = 29054.01 26552.23 2786627.84 172521.27 ... @@ -36,8 +36,8 @@ Script Content #> function ListCryptoRate { param([string]$Symbol, [string]$Name) - $Rates = (Invoke-WebRequest -URI "https://min-api.cryptocompare.com/data/price?fsym=$Symbol&tsyms=USD,EUR,RUB,CNY" -userAgent "curl" -useBasicParsing).Content | ConvertFrom-Json - New-Object PSObject -property @{ 'Cryptocurrency' = "1 $Name ($Symbol) ="; 'USD' = "$($Rates.USD)"; 'EUR' = "$($Rates.EUR)"; 'RUB' = "$($Rates.RUB)"; 'CNY' = "$($Rates.CNY)" } + $rates = (Invoke-WebRequest -URI "https://min-api.cryptocompare.com/data/price?fsym=$Symbol&tsyms=USD,EUR,RUB,CNY" -userAgent "curl" -useBasicParsing).Content | ConvertFrom-Json + New-Object PSObject -property @{ 'CRYPTOCURRENCY' = "1 $Name ($Symbol) ="; 'USD' = "$($rates.USD)"; 'EUR' = "$($rates.EUR)"; 'RUB' = "$($rates.RUB)"; 'CNY' = "$($rates.CNY)" } } function ListCryptoRates { @@ -67,8 +67,8 @@ function ListCryptoRates { } try { - ListCryptoRates | Format-Table -property @{e='Cryptocurrency';width=28},USD,EUR,RUB,CNY - Write-Host "(by cryptocompare.com, Crypto is volatile and unregulated. Capital at risk. Taxes may apply)" + ListCryptoRates | Format-Table -property @{e='CRYPTOCURRENCY';width=28},USD,EUR,RUB,CNY + Write-Host "(by cryptocompare.com โ€ข Crypto is volatile and unregulated โ€ข Capital at risk โ€ข Taxes may apply)" exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -76,4 +76,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-defender-settings.md b/docs/list-defender-settings.md index e234c0cd..f6852c5b 100644 --- a/docs/list-defender-settings.md +++ b/docs/list-defender-settings.md @@ -7,7 +7,7 @@ NOTE: use 'Set-MpPreference' to change settings (e.g. DisableScanningNetworkFile Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-defender-settings.ps1 [] +/Repos/PowerShell/scripts/list-defender-settings.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -69,4 +69,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-dir-tree.md b/docs/list-dir-tree.md index 1bf4a30d..78f39331 100644 --- a/docs/list-dir-tree.md +++ b/docs/list-dir-tree.md @@ -6,7 +6,7 @@ This PowerShell script lists all files and folders in a neat directory tree (inc Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-dir-tree.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/list-dir-tree.ps1 [[-path] ] [] -path Specifies the path to the directory tree @@ -125,4 +125,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-dns-servers.md b/docs/list-dns-servers.md index 198b8677..c9c6f483 100644 --- a/docs/list-dns-servers.md +++ b/docs/list-dns-servers.md @@ -60,4 +60,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-drives.md b/docs/list-drives.md index 7d2cdb05..256a6d04 100644 --- a/docs/list-drives.md +++ b/docs/list-drives.md @@ -6,7 +6,7 @@ This PowerShell script lists all local drives as a table. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-drives.ps1 [] +/Repos/PowerShell/scripts/list-drives.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -63,4 +63,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-earthquakes.md b/docs/list-earthquakes.md index 2bd74398..932c50fc 100644 --- a/docs/list-earthquakes.md +++ b/docs/list-earthquakes.md @@ -6,7 +6,7 @@ This PowerShell script lists major earthquakes for the last 30 days. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-earthquakes.ps1 [[-minMagnitude] ] [] +/Repos/PowerShell/scripts/list-earthquakes.ps1 [[-minMagnitude] ] [] -minMagnitude Specifies the minimum magnitude to list (5.5 by default) @@ -29,7 +29,7 @@ PS> ./list-earthquakes.ps1 -Mag Location Depth Time UTC +MAG LOCATION DEPTH TIME UTC --- -------- ----- -------- 7.2 98 km S of Sand Point, Alaska 33 km 2023-07-16T06:48:22.606Z ... @@ -57,7 +57,7 @@ Script Content .EXAMPLE PS> ./list-earthquakes.ps1 - Mag Location Depth Time UTC + MAG LOCATION DEPTH TIME UTC --- -------- ----- -------- 7.2 98 km S of Sand Point, Alaska 33 km 2023-07-16T06:48:22.606Z ... @@ -79,13 +79,13 @@ function ListEarthquakes { foreach($quake in $quakes) { [int]$depth = $quake.depth - New-Object PSObject -Property @{ Mag=$quake.mag; Depth="$depth km"; Location=$quake.place; 'Time UTC'=$quake.time } + New-Object PSObject -Property @{ MAG=$quake.mag; DEPTH="$depth km"; LOCATION=$quake.place; 'TIME UTC'=$quake.time } } } try { - ListEarthquakes | Format-Table -property @{e='Mag';width=5},@{e='Location';width=42},@{e='Depth';width=12},'Time UTC' + ListEarthquakes | Format-Table -property @{e='MAG';width=5},@{e='LOCATION';width=50},@{e='DEPTH';width=8},'TIME UTC' exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -93,4 +93,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-emojis.md b/docs/list-emojis.md index 1e599706..9c6d6803 100644 --- a/docs/list-emojis.md +++ b/docs/list-emojis.md @@ -6,7 +6,7 @@ This PowerShell script lists the emojis of Unicode 13.0 sorted by category. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-emojis.ps1 [] +/Repos/PowerShell/scripts/list-emojis.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -72,4 +72,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-empty-dirs.md b/docs/list-empty-dirs.md index 617444ab..52d5ae57 100644 --- a/docs/list-empty-dirs.md +++ b/docs/list-empty-dirs.md @@ -6,7 +6,7 @@ This PowerShell script scans a directory tree and lists all empty directories. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-empty-dirs.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/list-empty-dirs.ps1 [[-path] ] [] -path Specifies the path to the directory tree (current working directory by default) @@ -81,4 +81,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-empty-files.md b/docs/list-empty-files.md index f08c53e4..7ab92514 100644 --- a/docs/list-empty-files.md +++ b/docs/list-empty-files.md @@ -6,7 +6,7 @@ This PowerShell script scans a directory tree and lists all empty files. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-empty-files.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/list-empty-files.ps1 [[-path] ] [] -path Specifies the path to the directory tree (default is current working dir) @@ -81,4 +81,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-encrypted-files.md b/docs/list-encrypted-files.md index 71d5a30f..0a75b1bc 100644 --- a/docs/list-encrypted-files.md +++ b/docs/list-encrypted-files.md @@ -6,7 +6,7 @@ This PowerShell script scans a directory tree and lists all encrypted files. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-encrypted-files.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/list-encrypted-files.ps1 [[-path] ] [] -path Specifies the path to the directory tree (default is current working dir) @@ -81,4 +81,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-environment-variables.md b/docs/list-environment-variables.md index 66c60cfb..2c7fdcea 100644 --- a/docs/list-environment-variables.md +++ b/docs/list-environment-variables.md @@ -6,7 +6,7 @@ This PowerShell script lists all environment variables. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-environment-variables.ps1 [] +/Repos/PowerShell/scripts/list-environment-variables.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-error-types.md b/docs/list-error-types.md index 7a453a46..ef6d7da4 100644 --- a/docs/list-error-types.md +++ b/docs/list-error-types.md @@ -26,4 +26,4 @@ Script Content } | Select BaseType,Name,FullName ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-exchange-rates.md b/docs/list-exchange-rates.md index 74e85d80..2deed055 100644 --- a/docs/list-exchange-rates.md +++ b/docs/list-exchange-rates.md @@ -6,7 +6,7 @@ This PowerShell script lists the current exchange rates for the given currency ( Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-exchange-rates.ps1 [[-currency] ] [] +/Repos/PowerShell/scripts/list-exchange-rates.ps1 [[-currency] ] [] -currency Specifies the base currency @@ -95,4 +95,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-executables.md b/docs/list-executables.md index a6e368aa..80ea6580 100644 --- a/docs/list-executables.md +++ b/docs/list-executables.md @@ -6,7 +6,7 @@ This PowerShell script scans a given directory tree and lists all executables wi Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-executables.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/list-executables.ps1 [[-path] ] [] -path Specifies the path to the directory tree (current working directory by default) @@ -83,4 +83,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:53)* diff --git a/docs/list-fibonacci.md b/docs/list-fibonacci.md index b8eafa78..1a16c14b 100644 --- a/docs/list-fibonacci.md +++ b/docs/list-fibonacci.md @@ -43,4 +43,4 @@ foreach ($i in 0..100) { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-files.md b/docs/list-files.md index d7687ae7..e62fb780 100644 --- a/docs/list-files.md +++ b/docs/list-files.md @@ -6,7 +6,7 @@ This PowerShell script lists all files within the given directory tree. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-files.ps1 [[-DirTree] ] [] +/Repos/PowerShell/scripts/list-files.ps1 [[-DirTree] ] [] -DirTree Specifies the path to the directory tree @@ -68,4 +68,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-folder.md b/docs/list-folder.md index 89883405..c2d1b279 100644 --- a/docs/list-folder.md +++ b/docs/list-folder.md @@ -6,7 +6,7 @@ This PowerShell script lists the content of a directory (alphabetically formatte Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-folder.ps1 [[-searchPattern] ] [] +/Repos/PowerShell/scripts/list-folder.ps1 [[-searchPattern] ] [] -searchPattern Specifies the search pattern ("*" by default which means anything) @@ -91,4 +91,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-fritzbox-calls.md b/docs/list-fritzbox-calls.md index 1376c481..dc5ba437 100644 --- a/docs/list-fritzbox-calls.md +++ b/docs/list-fritzbox-calls.md @@ -6,7 +6,7 @@ This PowerShell script lists the phone calls of the FRITZ!Box device. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-fritzbox-calls.ps1 [[-Username] ] [[-Password] ] [] +/Repos/PowerShell/scripts/list-fritzbox-calls.ps1 [[-Username] ] [[-Password] ] [] -Username Specifies the user name for FRITZ!Box @@ -153,4 +153,4 @@ echo $Result exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-fritzbox-devices.md b/docs/list-fritzbox-devices.md index 85b5aac0..2eec25cb 100644 --- a/docs/list-fritzbox-devices.md +++ b/docs/list-fritzbox-devices.md @@ -6,7 +6,7 @@ This PowerShell script lists FRITZ!Box's known devices. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-fritzbox-devices.ps1 [[-Username] ] [[-Password] ] [] +/Repos/PowerShell/scripts/list-fritzbox-devices.ps1 [[-Username] ] [[-Password] ] [] -Username Specifies the user name to FRITZ!Box @@ -105,4 +105,4 @@ $HostTable | format-table -property Active,IPAddress,MACAddress,HostName,Interfa exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-headlines.md b/docs/list-headlines.md index c4be0c7c..9fb2c00d 100644 --- a/docs/list-headlines.md +++ b/docs/list-headlines.md @@ -6,7 +6,7 @@ This PowerShell script lists the latest headlines by using a RSS (Really Simple Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-headlines.ps1 [[-RSS_URL] ] [[-maxLines] ] [] +/Repos/PowerShell/scripts/list-headlines.ps1 [[-RSS_URL] ] [[-maxLines] ] [] -RSS_URL Specifies the URL to the RSS feed (Yahoo World News by default) @@ -89,4 +89,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:55)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-hidden-files.md b/docs/list-hidden-files.md index 0a5c00ce..f925c841 100644 --- a/docs/list-hidden-files.md +++ b/docs/list-hidden-files.md @@ -6,7 +6,7 @@ This PowerShell script scans a directory tree and lists all hidden files. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-hidden-files.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/list-hidden-files.ps1 [[-path] ] [] -path Specifies the path to the directory tree (default is current working dir) @@ -81,4 +81,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-installed-languages.md b/docs/list-installed-languages.md index 203b5d79..885534d6 100644 --- a/docs/list-installed-languages.md +++ b/docs/list-installed-languages.md @@ -50,4 +50,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-installed-scripts.md b/docs/list-installed-scripts.md index 921a7564..9057f8b7 100644 --- a/docs/list-installed-scripts.md +++ b/docs/list-installed-scripts.md @@ -6,7 +6,7 @@ This PowerShell script lists all installed PowerShell scripts. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-installed-scripts.ps1 [] +/Repos/PowerShell/scripts/list-installed-scripts.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Get-InstalledScript exit # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-installed-software.md b/docs/list-installed-software.md index 8e10a133..7f3625e0 100644 --- a/docs/list-installed-software.md +++ b/docs/list-installed-software.md @@ -6,7 +6,7 @@ This PowerShell script lists the installed software (except Windows Store apps). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-installed-software.ps1 [] +/Repos/PowerShell/scripts/list-installed-software.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-internet-ip.md b/docs/list-internet-ip.md index 2f8ff39e..fc780c11 100644 --- a/docs/list-internet-ip.md +++ b/docs/list-internet-ip.md @@ -6,7 +6,7 @@ This PowerShell script queries all public IP address information and prints it. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-internet-ip.ps1 [] +/Repos/PowerShell/scripts/list-internet-ip.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -70,4 +70,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-ipv6.md b/docs/list-ipv6.md index 53f0c7b9..fbb6e66a 100644 --- a/docs/list-ipv6.md +++ b/docs/list-ipv6.md @@ -6,7 +6,7 @@ This PowerShell script lists the state of IPv6 on all network interfaces of the Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-ipv6.ps1 [] +/Repos/PowerShell/scripts/list-ipv6.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -63,4 +63,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-latest-tag.md b/docs/list-latest-tag.md index 9d243ea1..a5e673e3 100644 --- a/docs/list-latest-tag.md +++ b/docs/list-latest-tag.md @@ -6,7 +6,7 @@ This PowerShell script lists the latest tag in a local Git repository. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-latest-tag.ps1 [[-RepoDir] ] [] +/Repos/PowerShell/scripts/list-latest-tag.ps1 [[-RepoDir] ] [] -RepoDir Specifies the path to the local repository (current working dir by default) @@ -77,4 +77,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-latest-tags.md b/docs/list-latest-tags.md index 4b49996b..7e362eb5 100644 --- a/docs/list-latest-tags.md +++ b/docs/list-latest-tags.md @@ -6,7 +6,7 @@ This PowerShell script lists the latest tags in all Git repositories in the spec Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-latest-tags.ps1 [[-ParentDir] ] [] +/Repos/PowerShell/scripts/list-latest-tags.ps1 [[-ParentDir] ] [] -ParentDir Specifies the path to the parent folder @@ -85,4 +85,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-local-ip.md b/docs/list-local-ip.md index 8d24ff7c..326872bc 100644 --- a/docs/list-local-ip.md +++ b/docs/list-local-ip.md @@ -62,4 +62,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-mDNS.md b/docs/list-mDNS.md index d1d79d0a..074c0be9 100644 --- a/docs/list-mDNS.md +++ b/docs/list-mDNS.md @@ -21,4 +21,4 @@ Get-NetUDPEndpoint -localPort 5353 | Select-Object LocalAddress,LocalPort,Owning exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-memos.md b/docs/list-memos.md index 8456033f..5b892199 100644 --- a/docs/list-memos.md +++ b/docs/list-memos.md @@ -6,7 +6,7 @@ This PowerShell script lists all entries in 'Remember.csv' in your home folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-memos.ps1 [] +/Repos/PowerShell/scripts/list-memos.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -68,4 +68,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-mysql-tables.md b/docs/list-mysql-tables.md index 09d0fbba..c1273827 100644 --- a/docs/list-mysql-tables.md +++ b/docs/list-mysql-tables.md @@ -6,7 +6,7 @@ This PowerShell script lists all tables of the given MySQL database. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-mysql-tables.ps1 [-server] [-database] [-dbuser] [-dbpass] [] +/Repos/PowerShell/scripts/list-mysql-tables.ps1 [-server] [-database] [-dbuser] [-dbpass] [] -server @@ -90,4 +90,4 @@ $result = Invoke-MySqlQuery -ConnectionString "server=$server; database=$databa $result | Export-Csv $csvfilepath -NoTypeInformation ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-network-connections.md b/docs/list-network-connections.md index e53cd935..2918712f 100644 --- a/docs/list-network-connections.md +++ b/docs/list-network-connections.md @@ -6,7 +6,7 @@ This PowerShell script lists all active network connections on the local compute Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-network-connections.ps1 [] +/Repos/PowerShell/scripts/list-network-connections.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-network-neighbors.md b/docs/list-network-neighbors.md index 7039e6cf..2c8ed075 100644 --- a/docs/list-network-neighbors.md +++ b/docs/list-network-neighbors.md @@ -6,7 +6,7 @@ This PowerShell script lists all network neighbors of the local computer (using Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-network-neighbors.ps1 [] +/Repos/PowerShell/scripts/list-network-neighbors.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -71,4 +71,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-network-routes.md b/docs/list-network-routes.md index 75e7ff49..3fb622a9 100644 --- a/docs/list-network-routes.md +++ b/docs/list-network-routes.md @@ -6,7 +6,7 @@ This PowerShell script lists the network routes on the local computer. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-network-routes.ps1 [] +/Repos/PowerShell/scripts/list-network-routes.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-network-shares.md b/docs/list-network-shares.md index 06b33f8a..33eb8166 100644 --- a/docs/list-network-shares.md +++ b/docs/list-network-shares.md @@ -6,7 +6,7 @@ This PowerShell script lists all network shares (aka "shared folders") of the lo Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-network-shares.ps1 [] +/Repos/PowerShell/scripts/list-network-shares.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -17,7 +17,7 @@ Example ------- ```powershell PS> ./list-network-shares.ps1 -โœ… Network share \\LAPTOP\Public -> D:\Public ("Public folder for file transfer") +โœ… Shared folder \\LAPTOP\Public -> D:\Public ("Public folder for file transfer") ``` @@ -39,7 +39,7 @@ Script Content This PowerShell script lists all network shares (aka "shared folders") of the local computer. .EXAMPLE PS> ./list-network-shares.ps1 - โœ… Network share \\LAPTOP\Public -> D:\Public ("Public folder for file transfer") + โœ… Shared folder \\LAPTOP\Public -> D:\Public ("Public folder for file transfer") .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -52,7 +52,7 @@ try { } else { $shares = Get-WmiObject win32_share | where {$_.name -NotLike "*$"} foreach ($share in $shares) { - Write-Output "โœ… Network share \\$(hostname)\$($share.Name) -> $($share.Path) (`"$($share.Description)`")" + Write-Output "โœ… Shared folder \\$(hostname)\$($share.Name) -> $($share.Path) (`"$($share.Description)`")" } } exit 0 # success @@ -62,4 +62,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-news.md b/docs/list-news.md index d8d03160..686eac80 100644 --- a/docs/list-news.md +++ b/docs/list-news.md @@ -6,7 +6,7 @@ This PowerShell script lists the latest news by using a RSS (Really Simple Syndi Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-news.ps1 [[-RSS_URL] ] [[-maxLines] ] [[-speed] ] [] +/Repos/PowerShell/scripts/list-news.ps1 [[-RSS_URL] ] [[-maxLines] ] [[-speed] ] [] -RSS_URL Specifies the URL to the RSS feed (Yahoo World News by default) @@ -31,7 +31,7 @@ Parameters Required? false Position? 3 - Default value 10 + Default value 5 Accept pipeline input? false Accept wildcard characters? false @@ -45,9 +45,9 @@ Example ```powershell PS> ./list-news.ps1 - UTC Yahoo News - Latest News & Headlines - https://www.yahoo.com/news/world - --- ----------------------------------------------------------------------- -โ‡๏ธ 09:15 Deadly Mediterranean wildfires kill more than 40 + UTC HEADLINES (source: https://www.yahoo.com/news/world) + --- --------- +09:15 Deadly Mediterranean wildfires kill more than 40 ... ``` @@ -77,9 +77,9 @@ Script Content .EXAMPLE PS> ./list-news.ps1 - UTC Yahoo News - Latest News & Headlines - https://www.yahoo.com/news/world - --- ----------------------------------------------------------------------- - โ‡๏ธ 09:15 Deadly Mediterranean wildfires kill more than 40 + UTC HEADLINES (source: https://www.yahoo.com/news/world) + --- --------- + 09:15 Deadly Mediterranean wildfires kill more than 40 ... .LINK https://github.com/fleschutz/PowerShell @@ -87,22 +87,21 @@ Script Content Author: Markus Fleschutz | License: CC0 #> -param([string]$RSS_URL = "https://news.yahoo.com/rss/world", [int]$maxLines = 24, [int]$speed = 10) +param([string]$RSS_URL = "https://news.yahoo.com/rss/world", [int]$maxLines = 24, [int]$speed = 5) try { [xml]$content = (Invoke-WebRequest -URI $RSS_URL -useBasicParsing).Content - $title = $content.rss.channel.title $URL = $content.rss.channel.link - " " - " UTC $title - $URL" - " --- -----------------------------------------------------------------------" - + Write-Host "`n UTC HEADLINES (source: " -noNewline + Write-Host $URL -foregroundColor blue -noNewline + Write-Host ")" + Write-Host " --- ---------" [int]$count = 1 foreach ($item in $content.rss.channel.item) { - $title = $item.title + $title = $item.title -replace "รข","'" $time = $item.pubDate.Substring(11, 5) - & "$PSScriptRoot/write-typewriter.ps1" "โ‡๏ธ $time $title" $speed + & "$PSScriptRoot/write-typewriter.ps1" "$time $title" $speed if ($count++ -eq $maxLines) { break } } exit 0 # success @@ -112,4 +111,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-nic.md b/docs/list-nic.md index e5da95e9..03924827 100644 --- a/docs/list-nic.md +++ b/docs/list-nic.md @@ -6,7 +6,7 @@ This PowerShell script lists the details of the installed network interfaces. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-nic.ps1 [] +/Repos/PowerShell/scripts/list-nic.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-nina-warnings.md b/docs/list-nina-warnings.md index e872d2c5..09052001 100644 --- a/docs/list-nina-warnings.md +++ b/docs/list-nina-warnings.md @@ -6,7 +6,7 @@ This PowerShell script queries the current NINA warnings and lists it. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-nina-warnings.ps1 [[-ARS] ] [] +/Repos/PowerShell/scripts/list-nina-warnings.ps1 [[-ARS] ] [] -ARS Specifies the official regional key in Germany ("Amtlicher Regionalschlรผssel", e.g. 09777, none by default) @@ -104,4 +104,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-old-branches.md b/docs/list-old-branches.md index 962f0a68..03092e26 100644 --- a/docs/list-old-branches.md +++ b/docs/list-old-branches.md @@ -6,7 +6,7 @@ This PowerShell script lists branches in a Git repository matching: (1) search p Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-old-branches.ps1 [[-pathToRepo] ] [[-searchPattern] ] [] +/Repos/PowerShell/scripts/list-old-branches.ps1 [[-pathToRepo] ] [[-searchPattern] ] [] -pathToRepo Specifies the path to the Git repository (current working directory by default) @@ -84,4 +84,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-os-releases.md b/docs/list-os-releases.md index 0d646b2e..fb8768f6 100644 --- a/docs/list-os-releases.md +++ b/docs/list-os-releases.md @@ -6,7 +6,7 @@ This PowerShell script lists OS releases and download URL. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-os-releases.ps1 [] +/Repos/PowerShell/scripts/list-os-releases.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -66,4 +66,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-os-updates.md b/docs/list-os-updates.md index 1f308781..35f697a6 100644 --- a/docs/list-os-updates.md +++ b/docs/list-os-updates.md @@ -6,7 +6,7 @@ This PowerShell script lists the latest updates for operating systems. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-os-updates.ps1 [[-RSS_URL] ] [[-MaxCount] ] [] +/Repos/PowerShell/scripts/list-os-updates.ps1 [[-RSS_URL] ] [[-MaxCount] ] [] -RSS_URL Specifies the URL to the RSS feed @@ -89,4 +89,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-os.md b/docs/list-os.md index 90f3c383..7da1bbd2 100644 --- a/docs/list-os.md +++ b/docs/list-os.md @@ -6,7 +6,7 @@ This PowerShell script lists the exact operating system version. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-os.ps1 [] +/Repos/PowerShell/scripts/list-os.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -61,4 +61,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-outlook-inbox.md b/docs/list-outlook-inbox.md index 19e6b683..b5d2d333 100644 --- a/docs/list-outlook-inbox.md +++ b/docs/list-outlook-inbox.md @@ -6,7 +6,7 @@ This PowerShell script lists the emails in the inbox of Outlook. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-outlook-inbox.ps1 [] +/Repos/PowerShell/scripts/list-outlook-inbox.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -56,4 +56,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-outlook-sent.md b/docs/list-outlook-sent.md index dca7f88b..e8faf523 100644 --- a/docs/list-outlook-sent.md +++ b/docs/list-outlook-sent.md @@ -6,7 +6,7 @@ This PowerShell script lists the mails in the Sent Mail folder of Outlook. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-outlook-sent.ps1 [] +/Repos/PowerShell/scripts/list-outlook-sent.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -56,4 +56,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-passwords.md b/docs/list-passwords.md index 0f9e6cb3..4e57d195 100644 --- a/docs/list-passwords.md +++ b/docs/list-passwords.md @@ -6,7 +6,7 @@ This PowerShell script lists random passwords. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-passwords.ps1 [[-PasswordLength] ] [[-Columns] ] [[-Rows] ] [] +/Repos/PowerShell/scripts/list-passwords.ps1 [[-PasswordLength] ] [[-Columns] ] [[-Rows] ] [] -PasswordLength Specifies the length of the password @@ -111,4 +111,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-pins.md b/docs/list-pins.md index 9e926446..6040396d 100644 --- a/docs/list-pins.md +++ b/docs/list-pins.md @@ -6,7 +6,7 @@ This PowerShell script lists random PIN's. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-pins.ps1 [[-PinLength] ] [[-Columns] ] [[-Rows] ] [] +/Repos/PowerShell/scripts/list-pins.ps1 [[-PinLength] ] [[-Columns] ] [[-Rows] ] [] -PinLength Specifies the PIN length @@ -100,4 +100,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-power-schemes.md b/docs/list-power-schemes.md index 80a1a2af..e5c12ea6 100644 --- a/docs/list-power-schemes.md +++ b/docs/list-power-schemes.md @@ -21,4 +21,4 @@ powercfg /list exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-powershell-modules.md b/docs/list-powershell-modules.md index 7624cfc0..0df4cf03 100644 --- a/docs/list-powershell-modules.md +++ b/docs/list-powershell-modules.md @@ -6,7 +6,7 @@ This PowerShell script lists the installed PowerShell modules. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-powershell-modules.ps1 [] +/Repos/PowerShell/scripts/list-powershell-modules.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-powershell-profiles.md b/docs/list-powershell-profiles.md index 503251d2..c559c819 100644 --- a/docs/list-powershell-profiles.md +++ b/docs/list-powershell-profiles.md @@ -58,4 +58,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-powershell-verbs.md b/docs/list-powershell-verbs.md index 94043ab9..fb849a8c 100644 --- a/docs/list-powershell-verbs.md +++ b/docs/list-powershell-verbs.md @@ -6,7 +6,7 @@ This PowerShell script lists all allowed/recommended verbs in PowerShell. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-powershell-verbs.ps1 [] +/Repos/PowerShell/scripts/list-powershell-verbs.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-print-jobs.md b/docs/list-print-jobs.md index 07a03fe2..a2d97493 100644 --- a/docs/list-print-jobs.md +++ b/docs/list-print-jobs.md @@ -6,7 +6,7 @@ This PowerShell script lists all print jobs of all printer devices. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-print-jobs.ps1 [] +/Repos/PowerShell/scripts/list-print-jobs.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -87,4 +87,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-printers.md b/docs/list-printers.md index 07d3f32c..475683dd 100644 --- a/docs/list-printers.md +++ b/docs/list-printers.md @@ -6,7 +6,7 @@ This PowerShell script lists all printers known to the local computer. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-printers.ps1 [] +/Repos/PowerShell/scripts/list-printers.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -59,4 +59,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-processes.md b/docs/list-processes.md index 81157968..51ebf3b1 100644 --- a/docs/list-processes.md +++ b/docs/list-processes.md @@ -6,7 +6,7 @@ This PowerShell script lists all local computer processes. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-processes.ps1 [] +/Repos/PowerShell/scripts/list-processes.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-pull-requests.md b/docs/list-pull-requests.md index fb85c681..c5a0583e 100644 --- a/docs/list-pull-requests.md +++ b/docs/list-pull-requests.md @@ -6,7 +6,7 @@ This PowerShell script lists all pull requests for a Git repository. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-pull-requests.ps1 [[-RepoDir] ] [] +/Repos/PowerShell/scripts/list-pull-requests.ps1 [[-RepoDir] ] [] -RepoDir Specifies the file path to the local Git repository (default is working directory). @@ -83,4 +83,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-ram.md b/docs/list-ram.md index 34161b3f..65464dba 100644 --- a/docs/list-ram.md +++ b/docs/list-ram.md @@ -6,7 +6,7 @@ This PowerShell script lists the details of the installed RAM. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-ram.ps1 [] +/Repos/PowerShell/scripts/list-ram.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -63,4 +63,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-read-only-files.md b/docs/list-read-only-files.md index 209c92c8..f2915d2e 100644 --- a/docs/list-read-only-files.md +++ b/docs/list-read-only-files.md @@ -6,7 +6,7 @@ This PowerShell script scans a directory tree and lists all read-only files. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-read-only-files.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/list-read-only-files.ps1 [[-path] ] [] -path Specifies the path to the directory tree (current working dir by default) @@ -81,4 +81,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-recycle-bin.md b/docs/list-recycle-bin.md index 798db727..9aa3af51 100644 --- a/docs/list-recycle-bin.md +++ b/docs/list-recycle-bin.md @@ -6,7 +6,7 @@ This PowerShell script lists the content of the recycle bin folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-recycle-bin.ps1 [] +/Repos/PowerShell/scripts/list-recycle-bin.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-repos.md b/docs/list-repos.md index 70cc859d..b3be51c6 100644 --- a/docs/list-repos.md +++ b/docs/list-repos.md @@ -6,7 +6,7 @@ This PowerShell script lists all Git repositories under a folder with details su Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-repos.ps1 [[-parentDir] ] [] +/Repos/PowerShell/scripts/list-repos.ps1 [[-parentDir] ] [] -parentDir Specifies the path to the parent directory (current working directory by default) @@ -103,4 +103,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-scripts.md b/docs/list-scripts.md index d87e6c04..a7a40823 100644 --- a/docs/list-scripts.md +++ b/docs/list-scripts.md @@ -70,4 +70,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-scsi-devices.md b/docs/list-scsi-devices.md index 1b715ef4..03c1b9cc 100644 --- a/docs/list-scsi-devices.md +++ b/docs/list-scsi-devices.md @@ -6,7 +6,7 @@ This PowerShell script lists all SCSI devices connected to the local computer. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-scsi-devices.ps1 [] +/Repos/PowerShell/scripts/list-scsi-devices.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-services.md b/docs/list-services.md index f5e43122..11058ace 100644 --- a/docs/list-services.md +++ b/docs/list-services.md @@ -6,7 +6,7 @@ This PowerShell script lists all services installed on the local computer. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-services.ps1 [] +/Repos/PowerShell/scripts/list-services.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-special-folders.md b/docs/list-special-folders.md index bfab1af0..e69b56ca 100644 --- a/docs/list-special-folders.md +++ b/docs/list-special-folders.md @@ -105,4 +105,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-sql-tables.md b/docs/list-sql-tables.md index 1a7ca184..84ed3015 100644 --- a/docs/list-sql-tables.md +++ b/docs/list-sql-tables.md @@ -8,7 +8,7 @@ Run the above command if you do not have this module. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-sql-tables.ps1 [-server] [-database] [-username] [-password] [] +/Repos/PowerShell/scripts/list-sql-tables.ps1 [-server] [-database] [-username] [-password] [] -server @@ -93,4 +93,4 @@ $result = Invoke-SqlServerQuery -Credential $creds -ConnectionTimeout 10000 -Dat $result | Export-Csv $csvfilepath -NoTypeInformation ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-ssh-key.md b/docs/list-ssh-key.md index 0b566c2d..3158bd86 100644 --- a/docs/list-ssh-key.md +++ b/docs/list-ssh-key.md @@ -6,7 +6,7 @@ This PowerShell script lists the user's public SSH key. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-ssh-key.ps1 [] +/Repos/PowerShell/scripts/list-ssh-key.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -61,4 +61,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-submodules.md b/docs/list-submodules.md index 81ef288e..9b076b4c 100644 --- a/docs/list-submodules.md +++ b/docs/list-submodules.md @@ -6,7 +6,7 @@ This PowerShell script lists the submodules in the given Git repository. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-submodules.ps1 [[-RepoDir] ] [] +/Repos/PowerShell/scripts/list-submodules.ps1 [[-RepoDir] ] [] -RepoDir Specifies the path to the repository (current working directory by default) @@ -81,4 +81,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-suggestions.md b/docs/list-suggestions.md index 857f80fc..db2371d3 100644 --- a/docs/list-suggestions.md +++ b/docs/list-suggestions.md @@ -6,7 +6,7 @@ This PowerShell script lists "Did you mean?" suggestions from Google. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-suggestions.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/list-suggestions.ps1 [[-text] ] [] -text Specifies the word or sentence to get suggestions for. @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-system-devices.md b/docs/list-system-devices.md index c27b4151..274753cb 100644 --- a/docs/list-system-devices.md +++ b/docs/list-system-devices.md @@ -6,7 +6,7 @@ This PowerShell script lists all system devices connected to the local computer. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-system-devices.ps1 [] +/Repos/PowerShell/scripts/list-system-devices.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-system-files.md b/docs/list-system-files.md index c13e5557..72694615 100644 --- a/docs/list-system-files.md +++ b/docs/list-system-files.md @@ -6,7 +6,7 @@ This PowerShell script scans a directory tree and lists all system files. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-system-files.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/list-system-files.ps1 [[-path] ] [] -path Specifies the path to the directory tree (default is current working dir) @@ -81,4 +81,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-system-info.md b/docs/list-system-info.md index 5201cee3..b2f63b80 100644 --- a/docs/list-system-info.md +++ b/docs/list-system-info.md @@ -6,7 +6,7 @@ This PowerShell script lists system information of the local computer. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-system-info.ps1 [] +/Repos/PowerShell/scripts/list-system-info.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -141,4 +141,4 @@ $info exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-tags.md b/docs/list-tags.md index 88daea08..98067972 100644 --- a/docs/list-tags.md +++ b/docs/list-tags.md @@ -6,7 +6,7 @@ This PowerShell script fetches all tags in a local Git repository and lists it ( Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-tags.ps1 [[-repoDir] ] [[-searchPattern] ] [] +/Repos/PowerShell/scripts/list-tags.ps1 [[-repoDir] ] [[-searchPattern] ] [] -repoDir Specifies the path to the Git repository (current working directory by default) @@ -110,4 +110,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-tasks.md b/docs/list-tasks.md index 652d7150..ec8effe4 100644 --- a/docs/list-tasks.md +++ b/docs/list-tasks.md @@ -44,4 +44,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-timezone.md b/docs/list-timezone.md index a633f463..e1bd2664 100644 --- a/docs/list-timezone.md +++ b/docs/list-timezone.md @@ -6,7 +6,7 @@ This PowerShell script lists the details of the current time zone. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-timezone.ps1 [] +/Repos/PowerShell/scripts/list-timezone.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -64,4 +64,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-timezones.md b/docs/list-timezones.md index 4f741394..6d657eff 100644 --- a/docs/list-timezones.md +++ b/docs/list-timezones.md @@ -6,7 +6,7 @@ This PowerShell script lists all available time zones. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-timezones.ps1 [] +/Repos/PowerShell/scripts/list-timezones.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -67,4 +67,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-tiobe-index.md b/docs/list-tiobe-index.md index 5b6138f5..dad1e10e 100644 --- a/docs/list-tiobe-index.md +++ b/docs/list-tiobe-index.md @@ -78,4 +78,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-unused-files.md b/docs/list-unused-files.md index 04c3871a..7b12b94c 100644 --- a/docs/list-unused-files.md +++ b/docs/list-unused-files.md @@ -6,7 +6,7 @@ This PowerShell script scans a directory tree and lists unused files (no read/wr Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-unused-files.ps1 [[-path] ] [[-days] ] [] +/Repos/PowerShell/scripts/list-unused-files.ps1 [[-path] ] [[-days] ] [] -path Specifies the path to the directory tree (current working dir by default) @@ -95,4 +95,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-updates.md b/docs/list-updates.md index 92d1c475..5412f299 100644 --- a/docs/list-updates.md +++ b/docs/list-updates.md @@ -8,7 +8,7 @@ NOTE: Use the script 'install-updates.ps1' to install the listed updates. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-updates.ps1 [] +/Repos/PowerShell/scripts/list-updates.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -84,4 +84,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-usb-devices.md b/docs/list-usb-devices.md index 3e48584b..cba9bc8e 100644 --- a/docs/list-usb-devices.md +++ b/docs/list-usb-devices.md @@ -6,7 +6,7 @@ This PowerShell script lists all USB devices connected to the local computer. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-usb-devices.ps1 [] +/Repos/PowerShell/scripts/list-usb-devices.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-user-accounts.md b/docs/list-user-accounts.md index 53e86201..3c206189 100644 --- a/docs/list-user-accounts.md +++ b/docs/list-user-accounts.md @@ -6,7 +6,7 @@ This PowerShell script lists the user accounts on the local computer. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-user-accounts.ps1 [] +/Repos/PowerShell/scripts/list-user-accounts.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-user-groups.md b/docs/list-user-groups.md index 6dc25ffe..8e3debb0 100644 --- a/docs/list-user-groups.md +++ b/docs/list-user-groups.md @@ -6,7 +6,7 @@ This PowerShell script lists the user groups of the local computer. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-user-groups.ps1 [] +/Repos/PowerShell/scripts/list-user-groups.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-voices.md b/docs/list-voices.md index 3e04dc1f..c70c9386 100644 --- a/docs/list-voices.md +++ b/docs/list-voices.md @@ -6,7 +6,7 @@ This PowerShell script queries the installed text-to-speech (TTS) voices and pri Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-voices.ps1 [] +/Repos/PowerShell/scripts/list-voices.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -71,4 +71,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-weather.md b/docs/list-weather.md index fcc944da..6aba56f5 100644 --- a/docs/list-weather.md +++ b/docs/list-weather.md @@ -6,7 +6,7 @@ This PowerShell script queries the 48h weather report from wttr.in and lists it Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-weather.ps1 [[-location] ] [] +/Repos/PowerShell/scripts/list-weather.ps1 [[-location] ] [] -location Specifies the location to use (determined automatically by default) @@ -103,6 +103,7 @@ function GetDescription([string]$text) { "Patchy rain possible" { return "๐Ÿ’ง patchy rain possible" } "Patchy rain nearby" { return "๐Ÿ’ง patchy rain nearby" } "Patchy sleet nearby" { return "โ„๏ธ patchy sleet nearby" } + "Patchy snow nearby" { return "โ„๏ธ patchy snow nearby" } "Patchy snow possible" { return "โ„๏ธ patchy snow possible" } "Sunny" { return "โ˜€๏ธ sunny" } "Thundery outbreaks possible" { return "โšก๏ธthundery outbreaks possible" } @@ -177,4 +178,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-wifi.md b/docs/list-wifi.md index 39ecd11b..ae74cb79 100644 --- a/docs/list-wifi.md +++ b/docs/list-wifi.md @@ -6,7 +6,7 @@ This PowerShell script lists the WIFI networks. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-wifi.ps1 [] +/Repos/PowerShell/scripts/list-wifi.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-window-titles.md b/docs/list-window-titles.md index fdcf82c0..17d4f64c 100644 --- a/docs/list-window-titles.md +++ b/docs/list-window-titles.md @@ -6,7 +6,7 @@ This PowerShell script queries all main window titles and lists them as a table. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-window-titles.ps1 [] +/Repos/PowerShell/scripts/list-window-titles.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-workdir.md b/docs/list-workdir.md index a50c776c..a129ca6e 100644 --- a/docs/list-workdir.md +++ b/docs/list-workdir.md @@ -6,7 +6,7 @@ This PowerShell script lists the path to current working directory (but not the Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-workdir.ps1 [] +/Repos/PowerShell/scripts/list-workdir.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -56,4 +56,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/list-wsl-distros.md b/docs/list-wsl-distros.md index 2b918cc0..2b28e967 100644 --- a/docs/list-wsl-distros.md +++ b/docs/list-wsl-distros.md @@ -6,7 +6,7 @@ This PowerShell script lists installed/available Linux distributions for Windows Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/list-wsl-distros.ps1 [] +/Repos/PowerShell/scripts/list-wsl-distros.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/locate-city.md b/docs/locate-city.md index e31ae3b9..9c2f3a11 100644 --- a/docs/locate-city.md +++ b/docs/locate-city.md @@ -6,7 +6,7 @@ This PowerShell script prints the geographic location of the given city. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/locate-city.ps1 [[-city] ] [] +/Repos/PowerShell/scripts/locate-city.ps1 [[-city] ] [] -city Specifies the name of the city to look for @@ -87,4 +87,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/locate-ipaddress.md b/docs/locate-ipaddress.md index 3b8f9f19..e7adaee9 100644 --- a/docs/locate-ipaddress.md +++ b/docs/locate-ipaddress.md @@ -46,4 +46,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/locate-my-phone.md b/docs/locate-my-phone.md index c3ab64be..e7043f93 100644 --- a/docs/locate-my-phone.md +++ b/docs/locate-my-phone.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google Find My Device w Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/locate-my-phone.ps1 [] +/Repos/PowerShell/scripts/locate-my-phone.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:54)* diff --git a/docs/locate-zip-code.md b/docs/locate-zip-code.md index b86a7942..02e2c116 100644 --- a/docs/locate-zip-code.md +++ b/docs/locate-zip-code.md @@ -6,7 +6,7 @@ This PowerShell script prints the geographic location of the given zip-code. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/locate-zip-code.ps1 [[-CountryCode] ] [[-ZipCode] ] [] +/Repos/PowerShell/scripts/locate-zip-code.ps1 [[-CountryCode] ] [[-ZipCode] ] [] -CountryCode Specifies the country code @@ -101,4 +101,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/lock-desktop.md b/docs/lock-desktop.md index e3e1a3a5..0f7d8a89 100644 --- a/docs/lock-desktop.md +++ b/docs/lock-desktop.md @@ -6,7 +6,7 @@ This PowerShell script locks the local computer desktop immediately. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/lock-desktop.ps1 [] +/Repos/PowerShell/scripts/lock-desktop.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -54,4 +54,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/log-off.md b/docs/log-off.md index 5c7e6085..6500a363 100644 --- a/docs/log-off.md +++ b/docs/log-off.md @@ -6,7 +6,7 @@ This PowerShell script logs off the current Windows user. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/log-off.ps1 [] +/Repos/PowerShell/scripts/log-off.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/make-install.md b/docs/make-install.md index 39e88f01..e6866008 100644 --- a/docs/make-install.md +++ b/docs/make-install.md @@ -6,7 +6,7 @@ This PowerShell script copies newer EXE's + DLL's from the build directory to th Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/make-install.ps1 [] +/Repos/PowerShell/scripts/make-install.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -64,4 +64,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/measure-BubbleSort.md b/docs/measure-BubbleSort.md index 31af468a..5f3e2b48 100644 --- a/docs/measure-BubbleSort.md +++ b/docs/measure-BubbleSort.md @@ -10,7 +10,7 @@ comparison sort, is named for the way smaller or larger elements "bubble" to the Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/measure-BubbleSort.ps1 [[-numIntegers] ] [] +/Repos/PowerShell/scripts/measure-BubbleSort.ps1 [[-numIntegers] ] [] -numIntegers Specifies the number of integers to sort @@ -92,4 +92,4 @@ $elapsed3 = "{0:N3}" -f $elapsed # formatted to 3 decimal places exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/measure-BucketSort.md b/docs/measure-BucketSort.md index bd0656c8..667b64d3 100644 --- a/docs/measure-BucketSort.md +++ b/docs/measure-BucketSort.md @@ -15,7 +15,7 @@ to use, and whether the input is uniformly distributed. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/measure-BucketSort.ps1 [[-numIntegers] ] [] +/Repos/PowerShell/scripts/measure-BucketSort.ps1 [[-numIntegers] ] [] -numIntegers Specifies the number of integers to sort @@ -120,4 +120,4 @@ $elapsed3 = "{0:N3}" -f $elapsed # formatted to 3 decimal places exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/measure-CountingSort.md b/docs/measure-CountingSort.md index b44409e4..59ccabbd 100644 --- a/docs/measure-CountingSort.md +++ b/docs/measure-CountingSort.md @@ -15,7 +15,7 @@ can handle larger keys more efficiently. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/measure-CountingSort.ps1 [[-numIntegers] ] [] +/Repos/PowerShell/scripts/measure-CountingSort.ps1 [[-numIntegers] ] [] -numIntegers Specifies the number of integers to sort @@ -111,4 +111,4 @@ $elapsed3 = "{0:N3}" -f $elapsed # formatted to 3 decimal places exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/measure-HeapSort.md b/docs/measure-HeapSort.md index a3513daa..6655be66 100644 --- a/docs/measure-HeapSort.md +++ b/docs/measure-HeapSort.md @@ -13,7 +13,7 @@ find the largest element in each step. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/measure-HeapSort.ps1 [[-numIntegers] ] [] +/Repos/PowerShell/scripts/measure-HeapSort.ps1 [[-numIntegers] ] [] -numIntegers Specifies the number of integers to sort @@ -126,4 +126,4 @@ $elapsed3 = "{0:N3}" -f $elapsed # formatted to 3 decimal places exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/measure-InsertionSort.md b/docs/measure-InsertionSort.md index c5186801..613a4426 100644 --- a/docs/measure-InsertionSort.md +++ b/docs/measure-InsertionSort.md @@ -9,7 +9,7 @@ such as quicksort, heapsort, or merge sort. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/measure-InsertionSort.ps1 [[-numIntegers] ] [] +/Repos/PowerShell/scripts/measure-InsertionSort.ps1 [[-numIntegers] ] [] -numIntegers Specifies the number of integers to sort @@ -95,4 +95,4 @@ $elapsed3 = "{0:N3}" -f $elapsed # formatted to 3 decimal places exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/measure-MergeSort.md b/docs/measure-MergeSort.md index db4321a1..69b9b326 100644 --- a/docs/measure-MergeSort.md +++ b/docs/measure-MergeSort.md @@ -11,7 +11,7 @@ merge sort appeared in a report by Goldstine and von Neumann as early as 1948. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/measure-MergeSort.ps1 [[-numIntegers] ] [] +/Repos/PowerShell/scripts/measure-MergeSort.ps1 [[-numIntegers] ] [] -numIntegers Specifies the number of integers to sort @@ -120,4 +120,4 @@ $elapsed3 = "{0:N3}" -f $elapsed # formatted to 3 decimal places exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/measure-QuickSort.md b/docs/measure-QuickSort.md index def5ed17..29702355 100644 --- a/docs/measure-QuickSort.md +++ b/docs/measure-QuickSort.md @@ -10,7 +10,7 @@ two or three times faster than heapsort. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/measure-QuickSort.ps1 [[-numIntegers] ] [] +/Repos/PowerShell/scripts/measure-QuickSort.ps1 [[-numIntegers] ] [] -numIntegers Specifies the number of integers to sort @@ -101,4 +101,4 @@ $elapsed3 = "{0:N3}" -f $elapsed # formatted to 3 decimal places exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/measure-SelectionSort.md b/docs/measure-SelectionSort.md index 8f331e58..e9c2f4cd 100644 --- a/docs/measure-SelectionSort.md +++ b/docs/measure-SelectionSort.md @@ -11,7 +11,7 @@ is limited. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/measure-SelectionSort.ps1 [[-numIntegers] ] [] +/Repos/PowerShell/scripts/measure-SelectionSort.ps1 [[-numIntegers] ] [] -numIntegers Specifies the number of integers to sort @@ -94,4 +94,4 @@ $elapsed3 = "{0:N3}" -f $elapsed # formatted to 3 decimal places exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/measure-sorting-algorithms.md b/docs/measure-sorting-algorithms.md index 5de3abb5..2e01e954 100644 --- a/docs/measure-sorting-algorithms.md +++ b/docs/measure-sorting-algorithms.md @@ -6,7 +6,7 @@ This PowerShell script measures the speed of several sorting algorithms and prin Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/measure-sorting-algorithms.ps1 [[-numIntegers] ] [] +/Repos/PowerShell/scripts/measure-sorting-algorithms.ps1 [[-numIntegers] ] [] -numIntegers Specifies the number of integers to sort (3000 by default) @@ -73,4 +73,4 @@ param([int]$numIntegers = 3000) exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/merry-christmas.md b/docs/merry-christmas.md index 258bdb5c..6ec83028 100644 --- a/docs/merry-christmas.md +++ b/docs/merry-christmas.md @@ -6,7 +6,7 @@ This PowerShell script replies to 'Merry Christmas' by text-to-speech (TTS). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/merry-christmas.ps1 [] +/Repos/PowerShell/scripts/merry-christmas.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -50,4 +50,4 @@ $Reply = "Merry Christmas to you too!", "Happy Christmas to you too!" | Get-Rand exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/minimize-all-windows.md b/docs/minimize-all-windows.md index 09dee838..99343086 100644 --- a/docs/minimize-all-windows.md +++ b/docs/minimize-all-windows.md @@ -6,7 +6,7 @@ This PowerShell script minimizes all open windows. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/minimize-all-windows.ps1 [] +/Repos/PowerShell/scripts/minimize-all-windows.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -54,4 +54,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/move-mouse-pointer.md b/docs/move-mouse-pointer.md index cf35fe24..834229b7 100644 --- a/docs/move-mouse-pointer.md +++ b/docs/move-mouse-pointer.md @@ -6,7 +6,7 @@ This PowerShell script moves the mouse pointer either to the given x/y coordinat Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/move-mouse-pointer.ps1 [[-x] ] [[-y] ] [] +/Repos/PowerShell/scripts/move-mouse-pointer.ps1 [[-x] ] [[-y] ] [] -x Specifies the x coordinate in pixels @@ -84,4 +84,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/move-vm.md b/docs/move-vm.md index 48b5fca4..0d6308a7 100644 --- a/docs/move-vm.md +++ b/docs/move-vm.md @@ -22,4 +22,4 @@ Move-VM $VMName HOST2 -IncludeStorage -DestinationStoragePath "D:\VirtualMachine exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/my-profile.md b/docs/my-profile.md index ed375eca..c90fa165 100644 --- a/docs/my-profile.md +++ b/docs/my-profile.md @@ -17,26 +17,26 @@ Parameters Script Content -------------- ```powershell -# MY POWERSHELL PROFILE - it defines the look & feel of PowerShell. +# POWERSHELL PROFILE TO DEFINE THE LOOK & FEEL # WINDOW TITLE if ($IsLinux) { $username = $(whoami) } else { $username = $env:USERNAME } $host.ui.RawUI.WindowTitle = "$username @ $(hostname)" # GREETING -Write-Host "๐Ÿ‘‹ Welcome $username to $(hostname)'s PowerShell - type 'hlp' if you need help." -foregroundColor green +Write-Host "โœจ Welcome $username to $(hostname)'s PowerShell - type 'FAQ' for help." -foregroundColor green # PROMPT function prompt { Write-Host "`nโžค " -noNewline -foregroundColor yellow; return " " } # ALIASES -set-alias -name enter -value enter-host.ps1 -set-alias -name hlp -value write-help.ps1 -set-alias -name ll -value Get-ChildItem # ll = list folder (long format) -del alias:ls -force -errorAction SilentlyContinue -set-alias -name ls -value list-folder.ps1 # ls = list folder (short format) -del alias:pwd -force -errorAction SilentlyContinue -set-alias -name pwd -value list-workdir.ps1 # pwd = print working directory +Set-Alias -name enter -value enter-host.ps1 +Set-Alias -name FAQ -value write-help.ps1 +Set-Alias -name ll -value Get-ChildItem # ll = list folder (long format) +Del alias:ls -force -errorAction SilentlyContinue +Set-Alias -name ls -value list-folder.ps1 # ls = list folder (short format) +Del alias:pwd -force -errorAction SilentlyContinue +Set-Alias -name pwd -value list-workdir.ps1 # pwd = print working directory ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-branch.md b/docs/new-branch.md index 07666834..77aed814 100644 --- a/docs/new-branch.md +++ b/docs/new-branch.md @@ -6,7 +6,7 @@ This PowerShell script creates a new branch in a local Git repository and switch Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/new-branch.ps1 [[-newBranch] ] [[-pathToRepo] ] [] +/Repos/PowerShell/scripts/new-branch.ps1 [[-newBranch] ] [[-pathToRepo] ] [] -newBranch Specifies the new Git branch name @@ -128,4 +128,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-dir.md b/docs/new-dir.md index 5d28d97e..24ac1875 100644 --- a/docs/new-dir.md +++ b/docs/new-dir.md @@ -6,7 +6,7 @@ This PowerShell script creates an empty new directory in the filesystem. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/new-dir.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/new-dir.ps1 [[-path] ] [] -path Specifies the path and filename of the new directory @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-email.md b/docs/new-email.md index 745727bd..faa31444 100644 --- a/docs/new-email.md +++ b/docs/new-email.md @@ -6,7 +6,7 @@ This PowerShell script opens the default email client to write a new email. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/new-email.ps1 [[-EmailAddress] ] [] +/Repos/PowerShell/scripts/new-email.ps1 [[-EmailAddress] ] [] -EmailAddress Specifies the email address fill in @@ -67,4 +67,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-linux-vm.md b/docs/new-linux-vm.md index c8902abd..885d7597 100644 --- a/docs/new-linux-vm.md +++ b/docs/new-linux-vm.md @@ -38,4 +38,4 @@ $VMName = "linux" exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-power-plan.md b/docs/new-power-plan.md index b34a3b8e..8666bbe2 100644 --- a/docs/new-power-plan.md +++ b/docs/new-power-plan.md @@ -1,41 +1,39 @@ -## SYNOPSIS -Create and Set Custom Power Plan -## DESCRIPTION -Creates a custom power plan based on the active power plan, renames it, and sets it as the active power plan. -This PowerShell script: -1. Retrieves the active power plan GUID. -2. Duplicates the active power plan. -3. Renames the new power plan to a custom name. -4. Sets the newly created power plan as the active plan. -## EXAMPLE - PS> ./new-power-plan.ps1 +The *new-power-plan.ps1* Script +=========================== -## LINK -https://github.com/Arash-Seifi/PowerShell -## NOTES -Author: Arash Seifi | License: CC0 +new-power-plan.ps1 + + +Parameters +---------- +```powershell + + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. ``` -try { - # Step 1: Get the Active Power Plan GUID - $activeGuid = powercfg /getactivescheme | Select-String -Pattern "GUID" | ForEach-Object { $_.ToString().Split(' ')[3] } - Write-Output "Active Power Plan GUID: $activeGuid" - # Step 2: Duplicate the Active Power Plan and capture the new GUID - $newGuid = powercfg -duplicatescheme $activeGuid | ForEach-Object { $_.ToString().Split(' ')[3] } - Write-Output "New Power Plan GUID: $newGuid" +Script Content +-------------- +```powershell +# Step 1: Get the Active Power Plan GUID +$activeGuid = powercfg /getactivescheme | Select-String -Pattern "GUID" | ForEach-Object { $_.ToString().Split(' ')[3] } +Write-Output "Active Power Plan GUID: $activeGuid" - # Step 3: Rename the New Power Plan - $customName = "My Custom Plan" - powercfg -changename $newGuid $customName +# Step 2: Duplicate the Active Power Plan and capture the new GUID +$newGuid = powercfg -duplicatescheme $activeGuid | ForEach-Object { $_.ToString().Split(' ')[3] } +Write-Output "New Power Plan GUID: $newGuid" - # Step 4: Set the New Power Plan as Active - powercfg -setactive $newGuid +# Step 3: Rename the New Power Plan +$customName = "My Custom Plan" +powercfg -changename $newGuid $customName - # Output the new power plan GUID - Write-Output "New power plan created with GUID: $newGuid and set as active." -} -catch { - "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} +# Step 4: Set the New Power Plan as Active +powercfg -setactive $newGuid + +# Output the new power plan GUID +Write-Output "New power plan created with GUID: $newGuid and set as active." ``` + +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-qrcode.md b/docs/new-qrcode.md index 7d0dbca0..a7767c04 100644 --- a/docs/new-qrcode.md +++ b/docs/new-qrcode.md @@ -6,7 +6,7 @@ This PowerShell script generates a new QR code image file. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/new-qrcode.ps1 [[-text] ] [[-imageSize] ] [[-fileFormat] ] [] +/Repos/PowerShell/scripts/new-qrcode.ps1 [[-text] ] [[-imageSize] ] [[-fileFormat] ] [] -text Specifies the text to use @@ -110,4 +110,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-reboot-task.md b/docs/new-reboot-task.md index 9d1656de..f001216e 100644 --- a/docs/new-reboot-task.md +++ b/docs/new-reboot-task.md @@ -134,4 +134,4 @@ Else If ((Get-ScheduledTask -TaskName $Taskname).State -eq "Disabled") {Enable-ScheduledTask -TaskName $TaskName} ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-script.md b/docs/new-script.md index 2fcd60e0..7e796e11 100644 --- a/docs/new-script.md +++ b/docs/new-script.md @@ -6,7 +6,7 @@ This PowerShell script creates a new PowerShell script file by using the templat Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/new-script.ps1 [[-filename] ] [] +/Repos/PowerShell/scripts/new-script.ps1 [[-filename] ] [] -filename Specifies the path and filename to the new script @@ -74,4 +74,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-shortcut.md b/docs/new-shortcut.md index fde2488d..49d963c1 100644 --- a/docs/new-shortcut.md +++ b/docs/new-shortcut.md @@ -6,7 +6,7 @@ This PowerShell script creates a new shortcut file. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/new-shortcut.ps1 [[-shortcut] ] [[-target] ] [[-description] ] [] +/Repos/PowerShell/scripts/new-shortcut.ps1 [[-shortcut] ] [[-target] ] [[-description] ] [] -shortcut Specifies the shortcut filename @@ -100,4 +100,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-ssh-key.md b/docs/new-ssh-key.md index 9610955b..cca15dc3 100644 --- a/docs/new-ssh-key.md +++ b/docs/new-ssh-key.md @@ -6,7 +6,7 @@ This PowerShell script creates a new SSH key for the user. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/new-ssh-key.ps1 [] +/Repos/PowerShell/scripts/new-ssh-key.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -70,4 +70,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-symlink.md b/docs/new-symlink.md index 9cd04c7a..eb2232bb 100644 --- a/docs/new-symlink.md +++ b/docs/new-symlink.md @@ -6,10 +6,10 @@ This PowerShell script creates a new symbolic link file, linking to a target. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/new-symlink.ps1 [[-symlink] ] [[-target] ] [] +/Repos/PowerShell/scripts/new-symlink.ps1 [[-symlink] ] [[-target] ] [] -symlink - Specifies the path to the new symlink file + Specifies the file path to the new symlink file Required? false Position? 1 @@ -18,7 +18,7 @@ Parameters Accept wildcard characters? false -target - Specifies the path to the target + Specifies the file path to the target Required? false Position? 2 @@ -35,7 +35,7 @@ Example ------- ```powershell PS> ./new-symlink.ps1 C:\User\Markus\Windows C:\Windows -โœ… New symlink file 'C:\User\Markus\Windows' created, linking to: C:\Windows +โœ… Created new symlink 'C:\User\Markus\Windows' linking to: C:\Windows ``` @@ -56,12 +56,12 @@ Script Content .DESCRIPTION This PowerShell script creates a new symbolic link file, linking to a target. .PARAMETER symlink - Specifies the path to the new symlink file + Specifies the file path to the new symlink file .PARAMETER target - Specifies the path to the target + Specifies the file path to the target .EXAMPLE PS> ./new-symlink.ps1 C:\User\Markus\Windows C:\Windows - โœ… New symlink file 'C:\User\Markus\Windows' created, linking to: C:\Windows + โœ… Created new symlink 'C:\User\Markus\Windows' linking to: C:\Windows .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -75,8 +75,9 @@ try { if ($target -eq "" ) { $target = Read-Host "Enter path to target" } New-Item -path "$symlink" -itemType SymbolicLink -value "$target" + if ($lastExitCode -ne "0") { throw "Command 'New-Item' has failed" } - "โœ… New symlink file '$symlink' created, linking to: $target" + "โœ… Created new symlink '$symlink' linking to: $target" exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -84,4 +85,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-tag.md b/docs/new-tag.md index 9fe5ef58..14aeaf14 100644 --- a/docs/new-tag.md +++ b/docs/new-tag.md @@ -6,7 +6,7 @@ This PowerShell script creates a new tag in a Git repository. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/new-tag.ps1 [[-TagName] ] [[-RepoDir] ] [] +/Repos/PowerShell/scripts/new-tag.ps1 [[-TagName] ] [[-RepoDir] ] [] -TagName Specifies the new tag name @@ -101,4 +101,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-user.md b/docs/new-user.md index ec64455d..c03a1e29 100644 --- a/docs/new-user.md +++ b/docs/new-user.md @@ -6,7 +6,7 @@ This PowerShell script creates a new user account with an encrypted home directo Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/new-user.ps1 [[-username] ] [] +/Repos/PowerShell/scripts/new-user.ps1 [[-username] ] [] -username @@ -76,4 +76,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:57)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/new-windows-vm.md b/docs/new-windows-vm.md index 20408a05..c198fba6 100644 --- a/docs/new-windows-vm.md +++ b/docs/new-windows-vm.md @@ -37,4 +37,4 @@ $VMName = "windows" exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/on-desktop-login.md b/docs/on-desktop-login.md index 0d183bb5..8e6844ce 100644 --- a/docs/on-desktop-login.md +++ b/docs/on-desktop-login.md @@ -7,7 +7,7 @@ NOTE: for installation on Windows create and put a symbolic link to this script Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/on-desktop-login.ps1 [] +/Repos/PowerShell/scripts/on-desktop-login.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -73,4 +73,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-URL.md b/docs/open-URL.md index 460c1087..9fe6ef53 100644 --- a/docs/open-URL.md +++ b/docs/open-URL.md @@ -6,7 +6,7 @@ This PowerShell script launches a new tab in the default Web browser with the gi Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-URL.ps1 [[-URL] ] [[-text] ] [] +/Repos/PowerShell/scripts/open-URL.ps1 [[-URL] ] [[-text] ] [] -URL Specifies the URL @@ -86,4 +86,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-apps-folder.md b/docs/open-apps-folder.md index 7cfaea62..0d4e2ed6 100644 --- a/docs/open-apps-folder.md +++ b/docs/open-apps-folder.md @@ -6,7 +6,7 @@ This PowerShell script launches the File Explorer showing the UWP apps folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-apps-folder.ps1 [] +/Repos/PowerShell/scripts/open-apps-folder.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -49,4 +49,4 @@ exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-auto-start-folder.md b/docs/open-auto-start-folder.md index 74c80a11..50c636a1 100644 --- a/docs/open-auto-start-folder.md +++ b/docs/open-auto-start-folder.md @@ -6,7 +6,7 @@ This PowerShell script launches the File Explorer with the user's autostart fold Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-auto-start-folder.ps1 [] +/Repos/PowerShell/scripts/open-auto-start-folder.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-bing-maps.md b/docs/open-bing-maps.md index f675625d..8493bc0f 100644 --- a/docs/open-bing-maps.md +++ b/docs/open-bing-maps.md @@ -6,7 +6,7 @@ This PowerShell script launches the Bing Maps application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-bing-maps.ps1 [] +/Repos/PowerShell/scripts/open-bing-maps.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-booking-com.md b/docs/open-booking-com.md index f7efd9be..f5dfd1d4 100644 --- a/docs/open-booking-com.md +++ b/docs/open-booking-com.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Booking.com website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-booking-com.ps1 [] +/Repos/PowerShell/scripts/open-booking-com.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-c-drive.md b/docs/open-c-drive.md index 0e83d4da..df9a826a 100644 --- a/docs/open-c-drive.md +++ b/docs/open-c-drive.md @@ -6,7 +6,7 @@ This PowerShell script launches the File Explorer with the C: drive folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-c-drive.ps1 [] +/Repos/PowerShell/scripts/open-c-drive.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-calculator.md b/docs/open-calculator.md index c8ec0f68..6e0c13e5 100644 --- a/docs/open-calculator.md +++ b/docs/open-calculator.md @@ -6,7 +6,7 @@ This PowerShell script launches the calculator application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-calculator.ps1 [] +/Repos/PowerShell/scripts/open-calculator.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-chrome.md b/docs/open-chrome.md index 0885db1a..d43be979 100644 --- a/docs/open-chrome.md +++ b/docs/open-chrome.md @@ -6,7 +6,7 @@ This PowerShell script launches the Google Chrome Web browser. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-chrome.ps1 [[-URL] ] [] +/Repos/PowerShell/scripts/open-chrome.ps1 [[-URL] ] [] -URL Specifies an optional URL @@ -66,4 +66,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-clock.md b/docs/open-clock.md index 49930392..794dd87d 100644 --- a/docs/open-clock.md +++ b/docs/open-clock.md @@ -6,7 +6,7 @@ This PowerShell script launches the Clock application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-clock.ps1 [] +/Repos/PowerShell/scripts/open-clock.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-cortana.md b/docs/open-cortana.md index 254ee0a5..ce2de97c 100644 --- a/docs/open-cortana.md +++ b/docs/open-cortana.md @@ -6,7 +6,7 @@ This PowerShell script launches the Cortana application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-cortana.ps1 [] +/Repos/PowerShell/scripts/open-cortana.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-d-drive.md b/docs/open-d-drive.md index e834a903..44997064 100644 --- a/docs/open-d-drive.md +++ b/docs/open-d-drive.md @@ -6,7 +6,7 @@ This PowerShell script launches the File Explorer with the D: drive folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-d-drive.ps1 [] +/Repos/PowerShell/scripts/open-d-drive.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -47,4 +47,4 @@ Script Content & "$PSScriptRoot/open-file-explorer.ps1" "D:" ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-dashboards.md b/docs/open-dashboards.md index 0567c221..1b325226 100644 --- a/docs/open-dashboards.md +++ b/docs/open-dashboards.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with 20 tabs of popular dashboar Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-dashboards.ps1 [[-timeInterval] ] [] +/Repos/PowerShell/scripts/open-dashboards.ps1 [[-timeInterval] ] [] -timeInterval Specifies the time interval between each tab (110ms per default) @@ -83,4 +83,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-deep-l-translator.md b/docs/open-deep-l-translator.md index b667d293..3182e27d 100644 --- a/docs/open-deep-l-translator.md +++ b/docs/open-deep-l-translator.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the DeepL Translator websit Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-deep-l-translator.ps1 [] +/Repos/PowerShell/scripts/open-deep-l-translator.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-default-browser.md b/docs/open-default-browser.md index 880b700b..1f867a53 100644 --- a/docs/open-default-browser.md +++ b/docs/open-default-browser.md @@ -6,7 +6,7 @@ This PowerShell script launches the default Web browser, optional with a given U Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-default-browser.ps1 [[-URL] ] [] +/Repos/PowerShell/scripts/open-default-browser.ps1 [[-URL] ] [] -URL Specifies the URL @@ -66,4 +66,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-desktop-folder.md b/docs/open-desktop-folder.md index 08647058..19e663eb 100644 --- a/docs/open-desktop-folder.md +++ b/docs/open-desktop-folder.md @@ -6,7 +6,7 @@ This PowerShell script launches the File Explorer with the user's desktop folder Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-desktop-folder.ps1 [] +/Repos/PowerShell/scripts/open-desktop-folder.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-documents-folder.md b/docs/open-documents-folder.md index 26ad6734..5347c680 100644 --- a/docs/open-documents-folder.md +++ b/docs/open-documents-folder.md @@ -6,7 +6,7 @@ This PowerShell script launches the File Explorer with the user's documents fold Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-documents-folder.ps1 [] +/Repos/PowerShell/scripts/open-documents-folder.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-downloads-folder.md b/docs/open-downloads-folder.md index 632293f0..15cb0af6 100644 --- a/docs/open-downloads-folder.md +++ b/docs/open-downloads-folder.md @@ -6,7 +6,7 @@ This PowerShell script launches the File Explorer showing the user's downloads f Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-downloads-folder.ps1 [] +/Repos/PowerShell/scripts/open-downloads-folder.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -61,4 +61,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-dropbox-folder.md b/docs/open-dropbox-folder.md index ca98f1b7..05882978 100644 --- a/docs/open-dropbox-folder.md +++ b/docs/open-dropbox-folder.md @@ -6,7 +6,7 @@ This PowerShell script launches the File Explorer with the user's Dropbox folder Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-dropbox-folder.ps1 [] +/Repos/PowerShell/scripts/open-dropbox-folder.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-duck-duck-go.md b/docs/open-duck-duck-go.md index b60d3011..a4f74c38 100644 --- a/docs/open-duck-duck-go.md +++ b/docs/open-duck-duck-go.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the DuckDuckGo website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-duck-duck-go.ps1 [] +/Repos/PowerShell/scripts/open-duck-duck-go.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-e-drive.md b/docs/open-e-drive.md index d90ad6f8..5b877e74 100644 --- a/docs/open-e-drive.md +++ b/docs/open-e-drive.md @@ -6,7 +6,7 @@ This PowerShell script launches the File Explorer with the E: drive folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-e-drive.ps1 [] +/Repos/PowerShell/scripts/open-e-drive.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -47,4 +47,4 @@ Script Content & "$PSScriptRoot/open-file-explorer.ps1" "E:" ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-edge.md b/docs/open-edge.md index 21621854..686f253f 100644 --- a/docs/open-edge.md +++ b/docs/open-edge.md @@ -6,7 +6,7 @@ This PowerShell script launches the Microsoft Edge Web browser. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-edge.ps1 [] +/Repos/PowerShell/scripts/open-edge.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Start-Process microsoft-edge:// exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-egg-timer.md b/docs/open-egg-timer.md index 919dce6e..64eb21d1 100644 --- a/docs/open-egg-timer.md +++ b/docs/open-egg-timer.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the eggtimer website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-egg-timer.ps1 [] +/Repos/PowerShell/scripts/open-egg-timer.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-email-client.md b/docs/open-email-client.md index 6b29d255..f8e8a076 100644 --- a/docs/open-email-client.md +++ b/docs/open-email-client.md @@ -6,7 +6,7 @@ This PowerShell script launches the default email client. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-email-client.ps1 [] +/Repos/PowerShell/scripts/open-email-client.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-f-drive.md b/docs/open-f-drive.md index 7b1ca697..6e71e942 100644 --- a/docs/open-f-drive.md +++ b/docs/open-f-drive.md @@ -6,7 +6,7 @@ This PowerShell script launches the File Explorer with the F: drive folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-f-drive.ps1 [] +/Repos/PowerShell/scripts/open-f-drive.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-file-explorer.md b/docs/open-file-explorer.md index 273ea1af..a18cfc31 100644 --- a/docs/open-file-explorer.md +++ b/docs/open-file-explorer.md @@ -6,7 +6,7 @@ This PowerShell script launches the File Explorer. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-file-explorer.ps1 [[-Path] ] [] +/Repos/PowerShell/scripts/open-file-explorer.ps1 [[-Path] ] [] -Path Specifies the path to the folder to display @@ -70,4 +70,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-fire-place.md b/docs/open-fire-place.md index 646c97b7..dab3254d 100644 --- a/docs/open-fire-place.md +++ b/docs/open-fire-place.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with a fire place website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-fire-place.ps1 [] +/Repos/PowerShell/scripts/open-fire-place.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-firefox.md b/docs/open-firefox.md index 7e567f3a..e633a661 100644 --- a/docs/open-firefox.md +++ b/docs/open-firefox.md @@ -6,7 +6,7 @@ This PowerShell script launches the Mozilla Firefox Web browser. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-firefox.ps1 [[-URL] ] [] +/Repos/PowerShell/scripts/open-firefox.ps1 [[-URL] ] [] -URL Specifies an URL @@ -73,4 +73,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-flight-radar.md b/docs/open-flight-radar.md index b673d1b9..1cdd0ad7 100644 --- a/docs/open-flight-radar.md +++ b/docs/open-flight-radar.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the FlightRadar24 website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-flight-radar.ps1 [] +/Repos/PowerShell/scripts/open-flight-radar.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-g-drive.md b/docs/open-g-drive.md index 7ccee4f7..9d8ab8c7 100644 --- a/docs/open-g-drive.md +++ b/docs/open-g-drive.md @@ -6,7 +6,7 @@ This PowerShell script launches the File Explorer with the G: drive folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-g-drive.ps1 [] +/Repos/PowerShell/scripts/open-g-drive.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-git-extensions.md b/docs/open-git-extensions.md index 1c51dcc4..5aba6fa1 100644 --- a/docs/open-git-extensions.md +++ b/docs/open-git-extensions.md @@ -48,4 +48,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-google-books.md b/docs/open-google-books.md index 0282c83b..e1a72910 100644 --- a/docs/open-google-books.md +++ b/docs/open-google-books.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google Books website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-google-books.ps1 [] +/Repos/PowerShell/scripts/open-google-books.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-google-calendar.md b/docs/open-google-calendar.md index 70bbab83..a177c307 100644 --- a/docs/open-google-calendar.md +++ b/docs/open-google-calendar.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google Calendar website Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-google-calendar.ps1 [] +/Repos/PowerShell/scripts/open-google-calendar.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-google-contacts.md b/docs/open-google-contacts.md index 2b439b72..54a3059b 100644 --- a/docs/open-google-contacts.md +++ b/docs/open-google-contacts.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google Contacts website Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-google-contacts.ps1 [] +/Repos/PowerShell/scripts/open-google-contacts.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-google-docs.md b/docs/open-google-docs.md index 87620c7c..1df4f543 100644 --- a/docs/open-google-docs.md +++ b/docs/open-google-docs.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google Docs website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-google-docs.ps1 [] +/Repos/PowerShell/scripts/open-google-docs.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-google-earth.md b/docs/open-google-earth.md index 4b224883..6a87855a 100644 --- a/docs/open-google-earth.md +++ b/docs/open-google-earth.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google Earth website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-google-earth.ps1 [] +/Repos/PowerShell/scripts/open-google-earth.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-google-mail.md b/docs/open-google-mail.md index cb46d352..146227aa 100644 --- a/docs/open-google-mail.md +++ b/docs/open-google-mail.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google Mail website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-google-mail.ps1 [] +/Repos/PowerShell/scripts/open-google-mail.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-google-maps.md b/docs/open-google-maps.md index 8265cd32..04530098 100644 --- a/docs/open-google-maps.md +++ b/docs/open-google-maps.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google Maps website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-google-maps.ps1 [] +/Repos/PowerShell/scripts/open-google-maps.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-google-news.md b/docs/open-google-news.md index 5a1b139a..2babdec6 100644 --- a/docs/open-google-news.md +++ b/docs/open-google-news.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google News website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-google-news.ps1 [] +/Repos/PowerShell/scripts/open-google-news.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-google-photos.md b/docs/open-google-photos.md index 76f46b03..4a3f9429 100644 --- a/docs/open-google-photos.md +++ b/docs/open-google-photos.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google Photos website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-google-photos.ps1 [] +/Repos/PowerShell/scripts/open-google-photos.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-google-play.md b/docs/open-google-play.md index e20af2c5..47b0f64b 100644 --- a/docs/open-google-play.md +++ b/docs/open-google-play.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google Play website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-google-play.ps1 [] +/Repos/PowerShell/scripts/open-google-play.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-google-search.md b/docs/open-google-search.md index 98618f6e..774d6b2b 100644 --- a/docs/open-google-search.md +++ b/docs/open-google-search.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google Search website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-google-search.ps1 [] +/Repos/PowerShell/scripts/open-google-search.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-google-stadia.md b/docs/open-google-stadia.md index 70928fa4..13174209 100644 --- a/docs/open-google-stadia.md +++ b/docs/open-google-stadia.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google Stadia website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-google-stadia.ps1 [] +/Repos/PowerShell/scripts/open-google-stadia.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-google-translate.md b/docs/open-google-translate.md index b7868624..e4068145 100644 --- a/docs/open-google-translate.md +++ b/docs/open-google-translate.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with the Google Translate websit Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-google-translate.ps1 [] +/Repos/PowerShell/scripts/open-google-translate.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-home-folder.md b/docs/open-home-folder.md index 7afb4ece..e591f752 100644 --- a/docs/open-home-folder.md +++ b/docs/open-home-folder.md @@ -6,7 +6,7 @@ This script launches the File Explorer with the user's home folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-home-folder.ps1 [] +/Repos/PowerShell/scripts/open-home-folder.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-internet-archive.md b/docs/open-internet-archive.md index 635c60df..815df206 100644 --- a/docs/open-internet-archive.md +++ b/docs/open-internet-archive.md @@ -6,7 +6,7 @@ This script launches the Web browser with the Internet Archive website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-internet-archive.ps1 [] +/Repos/PowerShell/scripts/open-internet-archive.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-jitsi-meet.md b/docs/open-jitsi-meet.md index f8c9cfa7..84903a76 100644 --- a/docs/open-jitsi-meet.md +++ b/docs/open-jitsi-meet.md @@ -6,7 +6,7 @@ This script launches the Web browser with the Jitsi Meet website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-jitsi-meet.ps1 [] +/Repos/PowerShell/scripts/open-jitsi-meet.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-m-drive.md b/docs/open-m-drive.md index e265fd5f..8f637f34 100644 --- a/docs/open-m-drive.md +++ b/docs/open-m-drive.md @@ -6,7 +6,7 @@ This script launches the File Explorer with the M: drive folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-m-drive.ps1 [] +/Repos/PowerShell/scripts/open-m-drive.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-magnifier.md b/docs/open-magnifier.md index eb382b06..4ad4c657 100644 --- a/docs/open-magnifier.md +++ b/docs/open-magnifier.md @@ -6,7 +6,7 @@ This script launches the Windows Screen Magnifier application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-magnifier.ps1 [] +/Repos/PowerShell/scripts/open-magnifier.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-microsoft-paint.md b/docs/open-microsoft-paint.md index ea5358b1..2a1b19aa 100644 --- a/docs/open-microsoft-paint.md +++ b/docs/open-microsoft-paint.md @@ -6,7 +6,7 @@ This script launches the Microsoft Paint application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-microsoft-paint.ps1 [] +/Repos/PowerShell/scripts/open-microsoft-paint.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-microsoft-solitaire.md b/docs/open-microsoft-solitaire.md index c81feaaf..24235c5c 100644 --- a/docs/open-microsoft-solitaire.md +++ b/docs/open-microsoft-solitaire.md @@ -6,7 +6,7 @@ This script launches the Microsoft Solitaire application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-microsoft-solitaire.ps1 [] +/Repos/PowerShell/scripts/open-microsoft-solitaire.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Start-Process xboxliveapp-1297287741: exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-microsoft-store.md b/docs/open-microsoft-store.md index f4339266..a0d3fef8 100644 --- a/docs/open-microsoft-store.md +++ b/docs/open-microsoft-store.md @@ -6,7 +6,7 @@ This script launches the Microsoft Store application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-microsoft-store.ps1 [] +/Repos/PowerShell/scripts/open-microsoft-store.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Start-Process ms-windows-store: exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-microsoft-teams.md b/docs/open-microsoft-teams.md index e7d8ea5c..7c010ab4 100644 --- a/docs/open-microsoft-teams.md +++ b/docs/open-microsoft-teams.md @@ -6,7 +6,7 @@ This script launches the Microsoft Teams application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-microsoft-teams.ps1 [] +/Repos/PowerShell/scripts/open-microsoft-teams.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-music-folder.md b/docs/open-music-folder.md index 9d84dec3..d871aae2 100644 --- a/docs/open-music-folder.md +++ b/docs/open-music-folder.md @@ -6,7 +6,7 @@ This script launches the File Explorer with the user's music folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-music-folder.ps1 [] +/Repos/PowerShell/scripts/open-music-folder.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-netflix.md b/docs/open-netflix.md index d08a38c9..79ef2eb6 100644 --- a/docs/open-netflix.md +++ b/docs/open-netflix.md @@ -6,7 +6,7 @@ This script launches the Netflix application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-netflix.ps1 [] +/Repos/PowerShell/scripts/open-netflix.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Start-Process netflix: exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-notepad.md b/docs/open-notepad.md index 9cdf17d1..f325bf79 100644 --- a/docs/open-notepad.md +++ b/docs/open-notepad.md @@ -6,7 +6,7 @@ This PowerShell script launches the Notepad application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-notepad.ps1 [] +/Repos/PowerShell/scripts/open-notepad.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-obs-studio.md b/docs/open-obs-studio.md index 07a90eb8..c9cfd084 100644 --- a/docs/open-obs-studio.md +++ b/docs/open-obs-studio.md @@ -47,4 +47,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-office-365.md b/docs/open-office-365.md index 7d67aac0..bc77cfd4 100644 --- a/docs/open-office-365.md +++ b/docs/open-office-365.md @@ -6,7 +6,7 @@ This script launches the Web browser with the Microsoft Office 365 website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-office-365.ps1 [] +/Repos/PowerShell/scripts/open-office-365.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-one-drive-folder.md b/docs/open-one-drive-folder.md index 32b0c747..17d74045 100644 --- a/docs/open-one-drive-folder.md +++ b/docs/open-one-drive-folder.md @@ -6,7 +6,7 @@ This script launches the File Explorer with the user's OneDrive folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-one-drive-folder.ps1 [] +/Repos/PowerShell/scripts/open-one-drive-folder.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:55)* diff --git a/docs/open-outlook.md b/docs/open-outlook.md index 616b44d1..2dfc104d 100644 --- a/docs/open-outlook.md +++ b/docs/open-outlook.md @@ -47,4 +47,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-paint-three-d.md b/docs/open-paint-three-d.md index ff136926..dd92d72c 100644 --- a/docs/open-paint-three-d.md +++ b/docs/open-paint-three-d.md @@ -6,7 +6,7 @@ This script launches the Paint 3D application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-paint-three-d.ps1 [] +/Repos/PowerShell/scripts/open-paint-three-d.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-pictures-folder.md b/docs/open-pictures-folder.md index 662d1a78..e831caf2 100644 --- a/docs/open-pictures-folder.md +++ b/docs/open-pictures-folder.md @@ -6,7 +6,7 @@ This script launches the File Explorer with the user's pictures folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-pictures-folder.ps1 [] +/Repos/PowerShell/scripts/open-pictures-folder.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-rdp.md b/docs/open-rdp.md index a86b00e5..feefcf41 100644 --- a/docs/open-rdp.md +++ b/docs/open-rdp.md @@ -7,7 +7,7 @@ NOTE: Documentation of mstsc at: https://learn.microsoft.com/en-us/windows-serve Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-rdp.ps1 [[-hostname] ] [] +/Repos/PowerShell/scripts/open-rdp.ps1 [[-hostname] ] [] -hostname @@ -64,4 +64,4 @@ if ($hostname -eq "") { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-recycle-bin-folder.md b/docs/open-recycle-bin-folder.md index 93fbfdd4..ae49e639 100644 --- a/docs/open-recycle-bin-folder.md +++ b/docs/open-recycle-bin-folder.md @@ -6,7 +6,7 @@ This script launches the File Explorer with the user's recycle bin folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-recycle-bin-folder.ps1 [] +/Repos/PowerShell/scripts/open-recycle-bin-folder.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-remote-desktop.md b/docs/open-remote-desktop.md index 0e65413b..1e1b00a3 100644 --- a/docs/open-remote-desktop.md +++ b/docs/open-remote-desktop.md @@ -6,7 +6,7 @@ This script launches the Remote Desktop application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-remote-desktop.ps1 [] +/Repos/PowerShell/scripts/open-remote-desktop.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-repos-folder.md b/docs/open-repos-folder.md index 349da3b9..4e7e32a4 100644 --- a/docs/open-repos-folder.md +++ b/docs/open-repos-folder.md @@ -6,7 +6,7 @@ This script launches the File Explorer with the user's Git repositories folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-repos-folder.ps1 [] +/Repos/PowerShell/scripts/open-repos-folder.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-screen-clip.md b/docs/open-screen-clip.md index 5de68cc7..242c7c6b 100644 --- a/docs/open-screen-clip.md +++ b/docs/open-screen-clip.md @@ -6,7 +6,7 @@ This script launches the Screen Clip application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-screen-clip.ps1 [] +/Repos/PowerShell/scripts/open-screen-clip.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-screen-sketch.md b/docs/open-screen-sketch.md index af6d7000..80c091ae 100644 --- a/docs/open-screen-sketch.md +++ b/docs/open-screen-sketch.md @@ -6,7 +6,7 @@ This script launches the Screen Sketch application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-screen-sketch.ps1 [] +/Repos/PowerShell/scripts/open-screen-sketch.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-skype.md b/docs/open-skype.md index 46b69331..d8554830 100644 --- a/docs/open-skype.md +++ b/docs/open-skype.md @@ -6,7 +6,7 @@ This script launches the Skype application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-skype.ps1 [] +/Repos/PowerShell/scripts/open-skype.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-snipping-tool.md b/docs/open-snipping-tool.md index 97f0b2b2..63cff762 100644 --- a/docs/open-snipping-tool.md +++ b/docs/open-snipping-tool.md @@ -6,7 +6,7 @@ This script launches the Snipping Tool application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-snipping-tool.ps1 [] +/Repos/PowerShell/scripts/open-snipping-tool.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Start-Process SnippingTool.exe exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-speed-test.md b/docs/open-speed-test.md index d143fbba..2c25816c 100644 --- a/docs/open-speed-test.md +++ b/docs/open-speed-test.md @@ -6,7 +6,7 @@ This script launches the Web browser with Cloudflare's speed test website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-speed-test.ps1 [] +/Repos/PowerShell/scripts/open-speed-test.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-spotify.md b/docs/open-spotify.md index 230b0ec0..bf55ed93 100644 --- a/docs/open-spotify.md +++ b/docs/open-spotify.md @@ -6,7 +6,7 @@ This script launches the Spotify application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-spotify.ps1 [] +/Repos/PowerShell/scripts/open-spotify.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Start-Process spotify: exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-stack-overflow.md b/docs/open-stack-overflow.md index 4df08618..f94657ea 100644 --- a/docs/open-stack-overflow.md +++ b/docs/open-stack-overflow.md @@ -6,7 +6,7 @@ This script launches the Web browser with the Stack Overflow website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-stack-overflow.ps1 [] +/Repos/PowerShell/scripts/open-stack-overflow.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-start-page.md b/docs/open-start-page.md index 3d68827f..aa440ce1 100644 --- a/docs/open-start-page.md +++ b/docs/open-start-page.md @@ -6,7 +6,7 @@ This script launches the Web browser with the Startpage website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-start-page.ps1 [] +/Repos/PowerShell/scripts/open-start-page.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-street-map.md b/docs/open-street-map.md index 5eef5f91..451eb7f2 100644 --- a/docs/open-street-map.md +++ b/docs/open-street-map.md @@ -6,7 +6,7 @@ This script launches the Web browser with the OpenStreetMap website. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-street-map.ps1 [] +/Repos/PowerShell/scripts/open-street-map.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-task-manager.md b/docs/open-task-manager.md index 0d5e9025..cbd34adc 100644 --- a/docs/open-task-manager.md +++ b/docs/open-task-manager.md @@ -6,7 +6,7 @@ This script launches the Windows Task Manager application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-task-manager.ps1 [] +/Repos/PowerShell/scripts/open-task-manager.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-temporary-folder.md b/docs/open-temporary-folder.md index 229eb671..4fc977c4 100644 --- a/docs/open-temporary-folder.md +++ b/docs/open-temporary-folder.md @@ -50,4 +50,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-three-d-viewer.md b/docs/open-three-d-viewer.md index d1e7f79d..3ed7318f 100644 --- a/docs/open-three-d-viewer.md +++ b/docs/open-three-d-viewer.md @@ -6,7 +6,7 @@ This script launches the 3D-Viewer application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-three-d-viewer.ps1 [] +/Repos/PowerShell/scripts/open-three-d-viewer.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Start-Process com.microsoft.3dviewer: exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-thunderbird.md b/docs/open-thunderbird.md index 6333bbaf..ce9d6c7e 100644 --- a/docs/open-thunderbird.md +++ b/docs/open-thunderbird.md @@ -45,4 +45,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:58)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-videos-folders.md b/docs/open-videos-folders.md index 62bb5fac..e8fa62bd 100644 --- a/docs/open-videos-folders.md +++ b/docs/open-videos-folders.md @@ -6,7 +6,7 @@ This script launches the File Explorer with the user's videos folder. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-videos-folders.ps1 [] +/Repos/PowerShell/scripts/open-videos-folders.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-visual-studio.md b/docs/open-visual-studio.md index 9603e6d1..7af2d34d 100644 --- a/docs/open-visual-studio.md +++ b/docs/open-visual-studio.md @@ -47,4 +47,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-voice-recorder.md b/docs/open-voice-recorder.md index e20b5d6e..cf1157b7 100644 --- a/docs/open-voice-recorder.md +++ b/docs/open-voice-recorder.md @@ -6,7 +6,7 @@ This PowerShell script launches the Windows Voice Recorder application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-voice-recorder.ps1 [] +/Repos/PowerShell/scripts/open-voice-recorder.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-vpn-settings.md b/docs/open-vpn-settings.md index 48f8de50..89e9a037 100644 --- a/docs/open-vpn-settings.md +++ b/docs/open-vpn-settings.md @@ -6,7 +6,7 @@ This PowerShell script launches the VPN settings of Windows. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-vpn-settings.ps1 [] +/Repos/PowerShell/scripts/open-vpn-settings.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Start-Process ms-settings:network-vpn exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-windows-defender.md b/docs/open-windows-defender.md index f0aa6eae..cf35b970 100644 --- a/docs/open-windows-defender.md +++ b/docs/open-windows-defender.md @@ -6,7 +6,7 @@ This script launches the Windows Defender application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-windows-defender.ps1 [] +/Repos/PowerShell/scripts/open-windows-defender.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Start-Process windowsdefender: exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-windows-terminal.md b/docs/open-windows-terminal.md index 347614f0..55e541e2 100644 --- a/docs/open-windows-terminal.md +++ b/docs/open-windows-terminal.md @@ -6,7 +6,7 @@ This script launches the Windows Terminal application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-windows-terminal.ps1 [] +/Repos/PowerShell/scripts/open-windows-terminal.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Start-Process wt.exe exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/open-xing.md b/docs/open-xing.md index 4e4a365e..1d7b09f7 100644 --- a/docs/open-xing.md +++ b/docs/open-xing.md @@ -6,7 +6,7 @@ This script launches the XING application. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/open-xing.ps1 [] +/Repos/PowerShell/scripts/open-xing.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Start-Process xing: exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/pick-commit.md b/docs/pick-commit.md index 64d853b1..95f26592 100644 --- a/docs/pick-commit.md +++ b/docs/pick-commit.md @@ -7,7 +7,7 @@ NOTE: in case of merge conflicts the script stops immediately! Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/pick-commit.ps1 [[-CommitID] ] [[-CommitMessage] ] [[-Branches] ] [[-RepoDir] ] [] +/Repos/PowerShell/scripts/pick-commit.ps1 [[-CommitID] ] [[-CommitMessage] ] [[-Branches] ] [[-RepoDir] ] [] -CommitID Specifies the commit ID @@ -151,4 +151,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/ping-host.md b/docs/ping-host.md index 47149bf9..e1fdece6 100644 --- a/docs/ping-host.md +++ b/docs/ping-host.md @@ -6,14 +6,14 @@ This PowerShell script pings the given host. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/ping-host.ps1 [[-hostname] ] [] +/Repos/PowerShell/scripts/ping-host.ps1 [[-hostname] ] [] -hostname - Specifies the hostname or IP address to ping (windows.com by default) + Specifies the hostname or IP address to ping (x.com by default) Required? false Position? 1 - Default value windows.com + Default value x.com Accept pipeline input? false Accept wildcard characters? false @@ -26,7 +26,7 @@ Example ------- ```powershell PS> ./ping-host.ps1 x.com -โœ… x.com is up and running (11ms latency). +โœ… Host 'x.com' with 20ms latency at IP 104.244.42.1 is up ๐Ÿ‘ ``` @@ -47,38 +47,37 @@ Script Content .DESCRIPTION This PowerShell script pings the given host. .PARAMETER hostname - Specifies the hostname or IP address to ping (windows.com by default) + Specifies the hostname or IP address to ping (x.com by default) .EXAMPLE PS> ./ping-host.ps1 x.com - โœ… x.com is up and running (11ms latency). + โœ… Host 'x.com' with 20ms latency at IP 104.244.42.1 is up ๐Ÿ‘ .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz | License: CC0 #> -param([string]$hostname = "windows.com") - -function GetPingLatency([string]$hostname) { - $hostsArray = $hostname.Split(",") - $tasks = $hostsArray | foreach { (New-Object Net.NetworkInformation.Ping).SendPingAsync($_,1500) } - [Threading.Tasks.Task]::WaitAll($tasks) - foreach($ping in $tasks.Result) { if ($ping.Status -eq "Success") { return $ping.RoundtripTime } } - return 1500 -} +param([string]$hostname = "x.com") try { - [int]$latency = GetPingLatency($hostname) - if ($latency -eq 1500) { - Write-Host "โš ๏ธ Host '$hostname' doesn't respond - check the connection or maybe the host is down." - exit 1 - } - Write-Host "โœ… $hostname is up and running ($($latency)ms latency)." - exit 0 # success + $remoteHosts = $hostname.Split(",") + $tasks = $remoteHosts | foreach { (New-Object Net.NetworkInformation.Ping).SendPingAsync($_,5000) } + [Threading.Tasks.Task]::WaitAll($tasks) + foreach($ping in $tasks.Result) { + if ($ping.Status -eq "Success") { + Write-Output "โœ… Host '$hostname' with $($ping.RoundtripTime)ms latency at IP $($ping.Address) is up ๐Ÿ‘" + exit 0 # success + } else { + Write-Output "โš ๏ธ No reply from '$hostname' (IP $($ping.Address)) - check the connection or maybe the host is down." + exit 1 + } + } + Write-Output "โš ๏ธ No reply from host '$hostname' - check the connection or maybe the host is down." + exit 1 } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" exit 1 } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/ping-internet.md b/docs/ping-internet.md index e1809f7f..7761be0f 100644 --- a/docs/ping-internet.md +++ b/docs/ping-internet.md @@ -6,7 +6,7 @@ This PowerShell script measures the ping roundtrip times from the local computer Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/ping-internet.ps1 [[-hosts] ] [] +/Repos/PowerShell/scripts/ping-internet.ps1 [[-hosts] ] [] -hosts Specifies the hosts to ping, seperated by commata (10 Internet servers by default) @@ -26,7 +26,7 @@ Example ------- ```powershell PS> ./ping-internet.ps1 -โœ… Internet ping takes 12ms (9...18ms range) +โœ… Internet ping: 12ms (9...18ms range) ``` @@ -50,7 +50,7 @@ Script Content Specifies the hosts to ping, seperated by commata (10 Internet servers by default) .EXAMPLE PS> ./ping-internet.ps1 - โœ… Internet ping takes 12ms (9...18ms range) + โœ… Internet ping: 12ms (9...18ms range) .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -82,12 +82,7 @@ try { Write-Host "โœ… Online with $loss/$total ping loss and $($min)...$($max)ms latency - $($speed)ms average" } else { [float]$speed = [math]::round([float]$avg / [float]$success, 1) - if ($speed -lt 20.0) { $result = "excellent" - } elseif ($speed -lt 50.0) { $result = "good" - } elseif ($speed -lt 100.0) { $result = "average" - } elseif ($speed -lt 150.0) { $result = "okay" - } else { $result = "laggy" } - Write-Host "โœ… Internet ping is $($result): $($speed)ms ($($min)-$($max)ms range)" + Write-Host "โœ… Internet ping: $($speed)ms ($min...$($max)ms range)" } exit 0 # success } catch { @@ -96,4 +91,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/ping-local-devices.md b/docs/ping-local-devices.md index bf4aff74..71d39d2f 100644 --- a/docs/ping-local-devices.md +++ b/docs/ping-local-devices.md @@ -6,7 +6,7 @@ This PowerShell script pings devices in the local network and lists which one ar Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/ping-local-devices.ps1 [[-timeout] ] [] +/Repos/PowerShell/scripts/ping-local-devices.ps1 [[-timeout] ] [] -timeout @@ -58,7 +58,7 @@ param([int]$timeout = 600) # ms ping timeout try { - $names = @('accesspoint','AD','AP','amnesiac','archlinux','auriga','berlin','boston','brother','canon','castor','cisco','echodot','epson','epson2815','fedora','fireball','firewall','fritz.box','fritz.nas','fritz.powerline','fritz.repeater','gassensor','gateway','hippo','heizung','hodor','homemanager','io','iphone','jarvis','jenkins','LA','laptop','linux','jupiter','mars','mercury','miami','mobile','none','none-1','none-2','NY','o2.lte','octo','office','officepc','paris','PI','pixel-6a','PC','pluto','printer','proxy','R2D2','raspberry','raspi','rocket','rome','router','sentinel','server','shelly','shelly1','smartphone','smartwatch','soundbar','speedport.ip','sunnyboy','surface','switch','tablet','tau','tigercat','tolino','tux','TV','ubuntu','vega','venus','xrx','zeus') # sorted alphabetically + $names = @('accesspoint','AD','AP','amnesiac','archlinux','auriga','berlin','berry','boston','brother','canon','castor','cisco','echodot','epson','epson2815','fedora','fireball','firewall','fritz.box','fritz.nas','fritz.powerline','fritz.repeater','gassensor','gateway','hippo','heizung','hodor','homemanager','io','iphone','jarvis','jenkins','LA','laptop','linux','jupiter','mars','mercury','miami','mobile','nas','none','none-1','none-2','NY','o2.lte','octo','office','officepc','paris','PI','pixel-6a','PC','pluto','printer','proxy','R2D2','raspberry','raspi','rocket','rome','router','sentinel','server','shelly','shelly1','smartphone','smartwatch','soundbar','speedport.ip','synologynas','sunnyboy','surface','switch','tablet','tau','tigercat','tolino','tux','TV','ubuntu','vega','venus','xrx','zeus') # sorted alphabetically $queue = [System.Collections.Queue]::new() foreach($name in $names) { $ping = [System.Net.Networkinformation.Ping]::new() $queue.Enqueue( @{Host=$name;Ping=$ping;Async=$ping.SendPingAsync($name,$timeout)} ) @@ -81,4 +81,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/ping-weather.md b/docs/ping-weather.md index ca73cd78..aab7cbc0 100644 --- a/docs/ping-weather.md +++ b/docs/ping-weather.md @@ -6,7 +6,7 @@ This PowerShell script continuously shows the current weather conditions (simila Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/ping-weather.ps1 [[-Location] ] [[-UpdateInterval] ] [] +/Repos/PowerShell/scripts/ping-weather.ps1 [[-Location] ] [[-UpdateInterval] ] [] -Location Specifies the location to use (determined automatically per default) @@ -99,4 +99,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-bee-sound.md b/docs/play-bee-sound.md index 7369091e..2ac4bfd6 100644 --- a/docs/play-bee-sound.md +++ b/docs/play-bee-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a bee sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-bee-sound.ps1 [] +/Repos/PowerShell/scripts/play-bee-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-beep-sound.md b/docs/play-beep-sound.md index 7aa5f338..32cbda9f 100644 --- a/docs/play-beep-sound.md +++ b/docs/play-beep-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a short beep sound at 500Hz for 300ms. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-beep-sound.ps1 [] +/Repos/PowerShell/scripts/play-beep-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -56,4 +56,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-big-ben.md b/docs/play-big-ben.md index c23b1d06..4a557f64 100644 --- a/docs/play-big-ben.md +++ b/docs/play-big-ben.md @@ -6,7 +6,7 @@ This PowerShell script plays the sound of Big Ben. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-big-ben.ps1 [] +/Repos/PowerShell/scripts/play-big-ben.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -50,4 +50,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-cat-sound.md b/docs/play-cat-sound.md index 00d6dd5f..fa9a72ab 100644 --- a/docs/play-cat-sound.md +++ b/docs/play-cat-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a cat sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-cat-sound.ps1 [] +/Repos/PowerShell/scripts/play-cat-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-chess.md b/docs/play-chess.md index 445616d9..4bb24c62 100644 --- a/docs/play-chess.md +++ b/docs/play-chess.md @@ -9,7 +9,7 @@ they only appear when run in PowerShell ISE. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-chess.ps1 [] +/Repos/PowerShell/scripts/play-chess.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -1260,4 +1260,4 @@ while ($Script:gameStatus -eq [gamestatus]::ongoing) { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-cow-sound.md b/docs/play-cow-sound.md index f638df90..69c57090 100644 --- a/docs/play-cow-sound.md +++ b/docs/play-cow-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a cow sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-cow-sound.ps1 [] +/Repos/PowerShell/scripts/play-cow-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-dog-sound.md b/docs/play-dog-sound.md index 8e48205a..d9d2819d 100644 --- a/docs/play-dog-sound.md +++ b/docs/play-dog-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a dog sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-dog-sound.ps1 [] +/Repos/PowerShell/scripts/play-dog-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-donkey-sound.md b/docs/play-donkey-sound.md index bf9e7d5d..1194ba9e 100644 --- a/docs/play-donkey-sound.md +++ b/docs/play-donkey-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a donkey sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-donkey-sound.ps1 [] +/Repos/PowerShell/scripts/play-donkey-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-elephant-sound.md b/docs/play-elephant-sound.md index 77dea444..43d97e92 100644 --- a/docs/play-elephant-sound.md +++ b/docs/play-elephant-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays an elephant sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-elephant-sound.ps1 [] +/Repos/PowerShell/scripts/play-elephant-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-elk-sound.md b/docs/play-elk-sound.md index 59a10558..f2ced791 100644 --- a/docs/play-elk-sound.md +++ b/docs/play-elk-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays an elk sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-elk-sound.ps1 [] +/Repos/PowerShell/scripts/play-elk-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-files.md b/docs/play-files.md index fc8d4bf9..19df6cdf 100644 --- a/docs/play-files.md +++ b/docs/play-files.md @@ -1,15 +1,15 @@ The *play-files.ps1* Script =========================== -This PowerShell script plays the given audio files (supporting MP3 and WAV format). +This PowerShell script plays the given audio files (supporting .MP3 and .WAV format). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-files.ps1 [[-FilePattern] ] [] +/Repos/PowerShell/scripts/play-files.ps1 [[-filePattern] ] [] --FilePattern - Specifies the file pattern +-filePattern + Specifies the file pattern ('*' by default) Required? false Position? 1 @@ -25,7 +25,9 @@ Parameters Example ------- ```powershell -PS> ./play-files *.mp3 +PS> ./play-files.ps1 *.mp3 + โ–ถ๏ธ Playing '01 Sandy beaches - strong waves.mp3' (02:54) ... + ... ``` @@ -42,33 +44,41 @@ Script Content ```powershell <# .SYNOPSIS - Plays audio files (MP3 and WAV) + Plays audio files .DESCRIPTION - This PowerShell script plays the given audio files (supporting MP3 and WAV format). -.PARAMETER FilePattern - Specifies the file pattern + This PowerShell script plays the given audio files (supporting .MP3 and .WAV format). +.PARAMETER filePattern + Specifies the file pattern ('*' by default) .EXAMPLE - PS> ./play-files *.mp3 + PS> ./play-files.ps1 *.mp3 + โ–ถ๏ธ Playing '01 Sandy beaches - strong waves.mp3' (02:54) ... + ... .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz | License: CC0 #> -param([string]$FilePattern = "*") +param([string]$filePattern = "*") try { - $Files = (get-childItem -path "$FilePattern" -attributes !Directory) - "Playing $($Files.Count) files ..." - foreach ($File in $Files) { - if ("$File" -like "*.mp3") { - & "$PSScriptRoot/play-mp3.ps1" "$File" + $stopWatch = [system.diagnostics.stopwatch]::startNew() + + $files = (Get-ChildItem -path "$filePattern" -attributes !Directory) + [int]$count = 0 + foreach ($file in $files) { + if ("$file" -like "*.mp3") { + & "$PSScriptRoot/play-mp3.ps1" "$file" + $count++ } elseif ("$File" -like "*.wav") { - & "$PSScriptRoot/play-mp3.ps1" "$File" + & "$PSScriptRoot/play-mp3.ps1" "$file" + $count++ } else { - "Skipping $File ..." + "Skipping $file (no audio file)..." } } + [int]$elapsed = $stopWatch.Elapsed.TotalSeconds + "โœ… Played $count audio files for $($elapsed)s." exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -76,4 +86,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-frog-sound.md b/docs/play-frog-sound.md index a40576ec..eabc82fd 100644 --- a/docs/play-frog-sound.md +++ b/docs/play-frog-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a frog sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-frog-sound.ps1 [] +/Repos/PowerShell/scripts/play-frog-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-goat-sound.md b/docs/play-goat-sound.md index fe0393cb..49c2d013 100644 --- a/docs/play-goat-sound.md +++ b/docs/play-goat-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a goat sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-goat-sound.ps1 [] +/Repos/PowerShell/scripts/play-goat-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-gorilla-sound.md b/docs/play-gorilla-sound.md index 5ec3c374..49754077 100644 --- a/docs/play-gorilla-sound.md +++ b/docs/play-gorilla-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a gorilla sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-gorilla-sound.ps1 [] +/Repos/PowerShell/scripts/play-gorilla-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-happy-birthday.md b/docs/play-happy-birthday.md index ebdd1619..14563685 100644 --- a/docs/play-happy-birthday.md +++ b/docs/play-happy-birthday.md @@ -6,7 +6,7 @@ This PowerShell script plays the famous Happy Birthday song. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-happy-birthday.ps1 [] +/Repos/PowerShell/scripts/play-happy-birthday.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -79,4 +79,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-horse-sound.md b/docs/play-horse-sound.md index ed6f6488..144ef80b 100644 --- a/docs/play-horse-sound.md +++ b/docs/play-horse-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a horse sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-horse-sound.ps1 [] +/Repos/PowerShell/scripts/play-horse-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-imperial-march.md b/docs/play-imperial-march.md index 598ea627..326db8fe 100644 --- a/docs/play-imperial-march.md +++ b/docs/play-imperial-march.md @@ -6,7 +6,7 @@ This PowerShell script plays the Imperial March used in the Star Wars film serie Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-imperial-march.ps1 [] +/Repos/PowerShell/scripts/play-imperial-march.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -72,4 +72,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-jingle-bells.md b/docs/play-jingle-bells.md index ab795555..ba5619bc 100644 --- a/docs/play-jingle-bells.md +++ b/docs/play-jingle-bells.md @@ -6,7 +6,7 @@ This PowerShell script plays the famous Jingle Bells song. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-jingle-bells.ps1 [] +/Repos/PowerShell/scripts/play-jingle-bells.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -201,4 +201,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-lion-sound.md b/docs/play-lion-sound.md index b038a3d9..6c7fbaea 100644 --- a/docs/play-lion-sound.md +++ b/docs/play-lion-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a lion sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-lion-sound.ps1 [] +/Repos/PowerShell/scripts/play-lion-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-m3u.md b/docs/play-m3u.md index 5188daac..e517264f 100644 --- a/docs/play-m3u.md +++ b/docs/play-m3u.md @@ -6,7 +6,7 @@ This PowerShell script plays the given playlist (in .M3U file format) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-m3u.ps1 [[-filename] ] [] +/Repos/PowerShell/scripts/play-m3u.ps1 [[-filename] ] [] -filename Specifies the path to the playlist @@ -25,7 +25,9 @@ Parameters Example ------- ```powershell -PS> ./play-m3u C:\MyPlaylist.m3u +PS> ./play-m3u.ps1 C:\MyPlaylist.m3u + โ–ถ๏ธ Playing '01 Sandy beach - strong waves.mp3' (02:54) ... + ... ``` @@ -42,13 +44,15 @@ Script Content ```powershell <# .SYNOPSIS - Plays a playlist (.M3U format) + Plays a .M3U playlist .DESCRIPTION This PowerShell script plays the given playlist (in .M3U file format) .PARAMETER filename Specifies the path to the playlist .EXAMPLE - PS> ./play-m3u C:\MyPlaylist.m3u + PS> ./play-m3u.ps1 C:\MyPlaylist.m3u + โ–ถ๏ธ Playing '01 Sandy beach - strong waves.mp3' (02:54) ... + ... .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -58,32 +62,20 @@ Script Content param([string]$filename = "") try { - if ($filename -eq "" ) { $filename = read-host "Enter the M3U playlist filename" } + if ($filename -eq "" ) { $filename = Read-Host "Enter the path to the .M3U playlist file" } - if (-not(test-path "$filename" -pathType leaf)) { throw "Can't access playlist file: $filename" } - $Lines = get-content $filename + if (-not(Test-Path "$filename" -pathType leaf)) { throw "Can't access playlist file: $filename" } + $lines = Get-Content $filename - add-type -assemblyName presentationCore - $MediaPlayer = new-object system.windows.media.mediaplayer + Add-Type -assemblyName presentationCore + $MediaPlayer = New-Object system.windows.media.mediaplayer - for ([int]$i=0; $i -lt $Lines.Count; $i++) { - $Line = $Lines[$i] - if ($Line[0] -eq "#") { continue } - if (-not(test-path "$Line" -pathType leaf)) { throw "Can't access audio file: $Line" } - $FullPath = (get-childItem "$Line").fullname - $filename = (get-item "$FullPath").name - do { - $MediaPlayer.open("$FullPath") - $Milliseconds = $MediaPlayer.NaturalDuration.TimeSpan.TotalMilliseconds - } until ($Milliseconds) - [int]$Minutes = $Milliseconds / 60000 - [int]$Seconds = ($Milliseconds / 1000) % 60 - "โ–ถ๏ธPlaying ๐ŸŽต$filename ($($Minutes.ToString('00')):$($Seconds.ToString('00'))) ..." - $MediaPlayer.Volume = 1 - $MediaPlayer.play() - start-sleep -milliseconds $Milliseconds - $MediaPlayer.stop() - $MediaPlayer.close() + foreach ($line in $lines) { + if ($line[0] -eq "#") { continue } + if (-not(Test-Path "$line" -pathType leaf)) { throw "Can't access audio file: $line" } + $fullPath = (Get-ChildItem "$line").fullname + + & "$PSScriptRoot/play-mp3.ps1" $fullPath } exit 0 # success } catch { @@ -92,4 +84,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-mission-impossible.md b/docs/play-mission-impossible.md index abd34ac8..e09dcae7 100644 --- a/docs/play-mission-impossible.md +++ b/docs/play-mission-impossible.md @@ -6,7 +6,7 @@ This PowerShell script plays the Mission Impossible theme. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-mission-impossible.ps1 [] +/Repos/PowerShell/scripts/play-mission-impossible.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -100,4 +100,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-mp3.md b/docs/play-mp3.md index 436e0cd2..95e3a22c 100644 --- a/docs/play-mp3.md +++ b/docs/play-mp3.md @@ -6,7 +6,7 @@ This PowerShell script plays the given sound file (MPEG-1 audio layer-3 file for Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-mp3.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/play-mp3.ps1 [[-path] ] [] -path Specifies the file path to the .MP3 file @@ -26,6 +26,7 @@ Example ------- ```powershell PS> ./play-mp3.ps1 C:\thunder.mp3 + โ–ถ๏ธ Playing 'thunder.mp3' (00:03) ... ``` @@ -49,6 +50,7 @@ Script Content Specifies the file path to the .MP3 file .EXAMPLE PS> ./play-mp3.ps1 C:\thunder.mp3 + โ–ถ๏ธ Playing 'thunder.mp3' (00:03) ... .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -75,16 +77,17 @@ try { [int]$minutes = $milliseconds / 60000 [int]$seconds = ($milliseconds / 1000) % 60 Write-Host " โ–ถ๏ธ" -noNewline -foregroundColor green - Write-Host "Playing $filename for $($minutes.ToString('00')):$($seconds.ToString('00'))s..." + Write-Host "Playing '$filename' ($($minutes.ToString('00')):$($seconds.ToString('00'))) ..." $previousTitle = $host.ui.RawUI.WindowTitle $host.ui.RawUI.WindowTitle = "โ–ถ๏ธ $filename" + $mediaPlayer.Volume = 1 $mediaPlayer.play() Start-Sleep -milliseconds $milliseconds - $mediaPlayer.stop() $mediaPlayer.close() + $host.ui.RawUI.WindowTitle = $previousTitle exit 0 # success } catch { @@ -93,4 +96,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-parrot-sound.md b/docs/play-parrot-sound.md index 38b77158..40cdac1d 100644 --- a/docs/play-parrot-sound.md +++ b/docs/play-parrot-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a parrot sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-parrot-sound.ps1 [] +/Repos/PowerShell/scripts/play-parrot-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-pig-sound.md b/docs/play-pig-sound.md index 85b00de2..19f66b63 100644 --- a/docs/play-pig-sound.md +++ b/docs/play-pig-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a pig sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-pig-sound.ps1 [] +/Repos/PowerShell/scripts/play-pig-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-pong.md b/docs/play-pong.md index 08488fdb..0336d414 100644 --- a/docs/play-pong.md +++ b/docs/play-pong.md @@ -176,4 +176,4 @@ while ($true) { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-rattlesnake-sound.md b/docs/play-rattlesnake-sound.md index d613ebf3..6257a9fc 100644 --- a/docs/play-rattlesnake-sound.md +++ b/docs/play-rattlesnake-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a rattlesnake sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-rattlesnake-sound.ps1 [] +/Repos/PowerShell/scripts/play-rattlesnake-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-rick.md b/docs/play-rick.md index 993c4076..958ac6be 100644 --- a/docs/play-rick.md +++ b/docs/play-rick.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with YouTube playing Rick Astley Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-rick.ps1 [] +/Repos/PowerShell/scripts/play-rick.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -49,4 +49,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-snake.md b/docs/play-snake.md index ff876676..1bc0f78f 100644 --- a/docs/play-snake.md +++ b/docs/play-snake.md @@ -7,7 +7,7 @@ NOTE: use the arrow keys to control the snake Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-snake.ps1 [] +/Repos/PowerShell/scripts/play-snake.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -86,4 +86,4 @@ Start-Sleep -milliseconds 300 exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-super-mario.md b/docs/play-super-mario.md index 8af8063c..18bbda0e 100644 --- a/docs/play-super-mario.md +++ b/docs/play-super-mario.md @@ -6,7 +6,7 @@ This PowerShell script plays the Super Mario intro. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-super-mario.ps1 [] +/Repos/PowerShell/scripts/play-super-mario.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -71,4 +71,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-system-sounds.md b/docs/play-system-sounds.md index 600a54f2..1f0539ca 100644 --- a/docs/play-system-sounds.md +++ b/docs/play-system-sounds.md @@ -21,18 +21,34 @@ Script Content .SYNOPSIS Plays all system sounds .DESCRIPTION - This PowerShell script plays all operating system sounds. + This PowerShell script plays all available system sounds. .EXAMPLE PS> ./play-system-sounds.ps1 - (listen and enjoy) + (listen and enjoy) .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz | License: CC0 #> +function GetPathToSystemMedia { + if ($IsLinux) { + throw "Not supported for Linux yet" + } elseif ($IsMacOS) { + throw "Not supported for MacOS yet" + } else { + $WinPath = Resolve-Path "$env:WINDIR" + if (-not(Test-Path "$WinPath" -pathType container)) { throw "Windows folder at ๐Ÿ“‚$WinPath doesn't exist" } + + $MediaPath = "$WinPath\Media" + if (-not(Test-Path "$MediaPath" -pathType container)) { throw "Windows media at ๐Ÿ“‚$MediaPath doesn't exist" } + + return $MediaPath + } +} + function PlaySoundFiles([string]$filePattern) { - $files = (Get-ChildItem "$filePattern") + $files = Get-ChildItem "$filePattern" foreach($file in $files) { & "$PSScriptRoot/play-mp3.ps1" "$file" Start-Sleep -milliseconds 500 @@ -40,14 +56,10 @@ function PlaySoundFiles([string]$filePattern) { } try { - if ($IsLinux -or $IsMacOS) { throw "Currently only supported for Windows" } - - $WinDir = Resolve-Path "$env:WINDIR" - if (-not(Test-Path "$WinDir" -pathType container)) { throw "Windows directory at ๐Ÿ“‚$Path doesn't exist" } - - Write-Host "`n Windows System Sounds at $WinDir\Media" -foregroundColor green - PlaySoundFiles "$WinDir\Media\*.wav" - PlaySoundFiles "$WinDir\Media\*\*.wav" + $path = GetPathToSystemMedia + Write-Host "`n S Y S T E M S O U N D S (at: $path)" -foregroundColor green + PlaySoundFiles "$path\*.wav" + PlaySoundFiles "$path\*\*.wav" exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -55,4 +67,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-tetris-melody.md b/docs/play-tetris-melody.md index 4c957db9..5a020d53 100644 --- a/docs/play-tetris-melody.md +++ b/docs/play-tetris-melody.md @@ -6,7 +6,7 @@ This PowerShell script plays the Tetris melody. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-tetris-melody.ps1 [] +/Repos/PowerShell/scripts/play-tetris-melody.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -161,4 +161,4 @@ Start-Sleep -milliseconds 500 exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-vulture-sound.md b/docs/play-vulture-sound.md index bdd61118..08553e8f 100644 --- a/docs/play-vulture-sound.md +++ b/docs/play-vulture-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a vulture sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-vulture-sound.ps1 [] +/Repos/PowerShell/scripts/play-vulture-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/play-wolf-sound.md b/docs/play-wolf-sound.md index a748419e..21960f62 100644 --- a/docs/play-wolf-sound.md +++ b/docs/play-wolf-sound.md @@ -6,7 +6,7 @@ This PowerShell script plays a wolf sound. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/play-wolf-sound.ps1 [] +/Repos/PowerShell/scripts/play-wolf-sound.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/poweroff.md b/docs/poweroff.md index dd905690..fb8d9da0 100644 --- a/docs/poweroff.md +++ b/docs/poweroff.md @@ -6,7 +6,7 @@ This script halts the local computer immediately (needs admin rights). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/poweroff.ps1 [] +/Repos/PowerShell/scripts/poweroff.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -59,4 +59,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/print-image.md b/docs/print-image.md index 92a30252..043471ff 100644 --- a/docs/print-image.md +++ b/docs/print-image.md @@ -6,7 +6,7 @@ This PowerShell script shows the printer dialogue to print the given image file. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/print-image.ps1 [[-Path] ] [] +/Repos/PowerShell/scripts/print-image.ps1 [[-Path] ] [] -Path Specifies the path to the image file @@ -69,4 +69,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/publish-to-ipfs.md b/docs/publish-to-ipfs.md index 0565836d..933a87d8 100644 --- a/docs/publish-to-ipfs.md +++ b/docs/publish-to-ipfs.md @@ -6,7 +6,7 @@ This script publishes the given files and folders to IPFS. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/publish-to-ipfs.ps1 [[-FilePattern] ] [[-HashList] ] [[-DF_Hashes] ] [] +/Repos/PowerShell/scripts/publish-to-ipfs.ps1 [[-FilePattern] ] [[-HashList] ] [[-DF_Hashes] ] [] -FilePattern Specifies the file pattern @@ -119,4 +119,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/pull-repo.md b/docs/pull-repo.md index 16746e80..4d8c3f1d 100644 --- a/docs/pull-repo.md +++ b/docs/pull-repo.md @@ -6,7 +6,7 @@ This PowerShell script pulls remote updates into a local Git repository (includi Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/pull-repo.ps1 [[-pathToRepo] ] [] +/Repos/PowerShell/scripts/pull-repo.ps1 [[-pathToRepo] ] [] -pathToRepo Specifies the file path to the local Git repository (default is working directory) @@ -100,4 +100,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/pull-repos.md b/docs/pull-repos.md index 933e5985..a170ea59 100644 --- a/docs/pull-repos.md +++ b/docs/pull-repos.md @@ -6,7 +6,7 @@ This PowerShell script pulls updates into all Git repositories in a folder (incl Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/pull-repos.ps1 [[-parentDir] ] [] +/Repos/PowerShell/scripts/pull-repos.ps1 [[-parentDir] ] [] -parentDir Specifies the path to the parent folder @@ -28,7 +28,7 @@ Example PS> ./pull-repos C:\MyRepos โณ (1) Searching for Git executable... git version 2.43.0 โณ (2) Checking parent folder... 33 subfolders -โณ (3/35) Pulling into ๐Ÿ“‚base256unicode... +โณ (3/35) Pulling into ๐Ÿ“‚base256U... ... ``` @@ -55,7 +55,7 @@ Script Content PS> ./pull-repos C:\MyRepos โณ (1) Searching for Git executable... git version 2.43.0 โณ (2) Checking parent folder... 33 subfolders - โณ (3/35) Pulling into ๐Ÿ“‚base256unicode... + โณ (3/35) Pulling into ๐Ÿ“‚base256U... ... .LINK https://github.com/fleschutz/PowerShell @@ -94,10 +94,10 @@ try { } [int]$elapsed = $stopWatch.Elapsed.TotalSeconds if ($failed -eq 0) { - "โœ… Updated $numFolders repos at ๐Ÿ“‚$parentDir in $($elapsed)s." + "โœ… Pulled into $numFolders repos at ๐Ÿ“‚$parentDir in $($elapsed)s." exit 0 # success } else { - "โš ๏ธ Updated $numFolders repos at ๐Ÿ“‚$parentDir in $($elapsed)s but $failed failed!" + "โš ๏ธ Pulled into $numFolders repos at ๐Ÿ“‚$parentDir in $($elapsed)s but $failed failed!" exit 1 } } catch { @@ -106,4 +106,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/query-smart-data.md b/docs/query-smart-data.md index 1a029a03..7daed452 100644 --- a/docs/query-smart-data.md +++ b/docs/query-smart-data.md @@ -8,7 +8,7 @@ Queries the S.M.A.R.T. data of your HDD/SSD's and saves it to the current/given Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/query-smart-data.ps1 [[-Directory] ] [] +/Repos/PowerShell/scripts/query-smart-data.ps1 [[-Directory] ] [] -Directory Specifies the path to the target directory @@ -106,4 +106,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/reboot-fritzbox.md b/docs/reboot-fritzbox.md index 06269bef..84232bc1 100644 --- a/docs/reboot-fritzbox.md +++ b/docs/reboot-fritzbox.md @@ -6,7 +6,7 @@ This PowerShell script reboots the FRITZ!Box device Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/reboot-fritzbox.ps1 [[-Username] ] [[-Password] ] [] +/Repos/PowerShell/scripts/reboot-fritzbox.ps1 [[-Username] ] [[-Password] ] [] -Username Specifies the user name @@ -152,4 +152,4 @@ echo $Result exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/reboot.md b/docs/reboot.md index e9daf65c..751e5cd6 100644 --- a/docs/reboot.md +++ b/docs/reboot.md @@ -6,7 +6,7 @@ This PowerShell script reboots the local computer immediately (needs admin right Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/reboot.ps1 [] +/Repos/PowerShell/scripts/reboot.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -59,4 +59,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/remember.md b/docs/remember.md index 98c681a1..0234fcdf 100644 --- a/docs/remember.md +++ b/docs/remember.md @@ -6,7 +6,7 @@ This PowerShell script saves the given text to 'Remember.csv' in your home folde Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/remember.ps1 [[-text1] ] [[-text2] ] [[-text3] ] [] +/Repos/PowerShell/scripts/remember.ps1 [[-text1] ] [[-text2] ] [[-text3] ] [] -text1 Specifies the text to memorize @@ -101,4 +101,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/remind-me.md b/docs/remind-me.md index 1ef5f0ed..3dc75fd3 100644 --- a/docs/remind-me.md +++ b/docs/remind-me.md @@ -6,7 +6,7 @@ This PowerShell script creates a scheduled task that will display a popup messag Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/remind-me.ps1 [[-Message] ] [[-Time] ] [] +/Repos/PowerShell/scripts/remind-me.ps1 [[-Message] ] [[-Time] ] [] -Message @@ -88,4 +88,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/remove-dir-tree.md b/docs/remove-dir-tree.md index 5581e445..4af0b1f1 100644 --- a/docs/remove-dir-tree.md +++ b/docs/remove-dir-tree.md @@ -6,7 +6,7 @@ This PowerShell script silently removes a directory tree recursively. Use it wit Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/remove-dir-tree.ps1 [[-pathToDirTree] ] [] +/Repos/PowerShell/scripts/remove-dir-tree.ps1 [[-pathToDirTree] ] [] -pathToDirTree Specifies the file path to the directory tree @@ -69,4 +69,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/remove-empty-dirs.md b/docs/remove-empty-dirs.md index db29c28f..090f5552 100644 --- a/docs/remove-empty-dirs.md +++ b/docs/remove-empty-dirs.md @@ -6,7 +6,7 @@ This PowerShell script removes all empty subfolders within a directory tree. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/remove-empty-dirs.ps1 [[-DirTree] ] [] +/Repos/PowerShell/scripts/remove-empty-dirs.ps1 [[-DirTree] ] [] -DirTree Specifies the path to the directory tree @@ -91,4 +91,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/remove-old-dirs.md b/docs/remove-old-dirs.md index 1eb7f1e2..628f95c9 100644 --- a/docs/remove-old-dirs.md +++ b/docs/remove-old-dirs.md @@ -6,7 +6,7 @@ This PowerShell script removes any subfolder in a parent folder older than ] [[-numDays] ] [] +/Repos/PowerShell/scripts/remove-old-dirs.ps1 [[-path] ] [[-numDays] ] [] -path Specifies the file path to the parent folder @@ -40,7 +40,11 @@ PS> ./remove-old-dirs.ps1 C:\Temp 90 Notes ----- -Author: Markus Fleschutz +Author: Markus Fleschutz | License: CC0 + +Related Links +------------- +https://github.com/fleschutz/PowerShell Script Content -------------- @@ -56,35 +60,35 @@ Script Content Specifies the number of days (1000 by default) .EXAMPLE PS> ./remove-old-dirs.ps1 C:\Temp 90 +.LINK + https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz + Author: Markus Fleschutz | License: CC0 #> param([string]$path = "", [int]$numDays = 1000) try { - $stopWatch = [system.diagnostics.stopwatch]::startNew() if ("$path" -eq "") { $path = Read-Host "Enter the file path to the parent folder" } + $stopWatch = [system.diagnostics.stopwatch]::startNew() if (!(Test-Path -Path "$path" -PathType container)) { throw "Given path doesn't exist - enter a valid path, please" } - Write-Host "โณ Removing subfolders older than $numDays days in $path..." + Write-Host "โณ Searching for subfolders at '$path' older than $numDays days..." + $numRemoved = $numSkipped = 0 $folders = Get-ChildItem -path "$path" -directory - $numRemoved = 0 - $count = 0 foreach ($folder in $folders) { [datetime]$folderDate = ($folder | Get-ItemProperty -Name LastWriteTime).LastWriteTime - $count++ if ($folderDate -lt (Get-Date).AddDays(-$numDays)) { - Write-Host "($($count)) Removing old '$folder'..." + Write-Host "Removing old '$folder'..." $fullPath = $folder | Select-Object -ExpandProperty FullName Remove-Item -path "$fullPath" -force -recurse $numRemoved++ } else { - Write-Host "($($count)) Skipping young '$folder'..." + $numSkipped++ } } [int]$elapsed = $stopWatch.Elapsed.TotalSeconds - "โœ… Removed $numRemoved of $count subfolders older than $numDays days in $elapsed sec" + "โœ… Removed $numRemoved subfolders older than $numDays days in $($elapsed)s ($numSkipped skipped)." exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -92,4 +96,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/remove-print-jobs.md b/docs/remove-print-jobs.md index 007eec7a..413c7a8f 100644 --- a/docs/remove-print-jobs.md +++ b/docs/remove-print-jobs.md @@ -6,7 +6,7 @@ This PowerShell script removes all print jobs from all printer devices. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/remove-print-jobs.ps1 [] +/Repos/PowerShell/scripts/remove-print-jobs.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/remove-tag.md b/docs/remove-tag.md index bdefa892..8a269a45 100644 --- a/docs/remove-tag.md +++ b/docs/remove-tag.md @@ -6,7 +6,7 @@ This PowerShell script removes a Git tag, either locally, remote, or both. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/remove-tag.ps1 [[-TagName] ] [[-Mode] ] [[-RepoDir] ] [] +/Repos/PowerShell/scripts/remove-tag.ps1 [[-TagName] ] [[-Mode] ] [[-RepoDir] ] [] -TagName Specifies the Git tag name @@ -111,4 +111,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/remove-user.md b/docs/remove-user.md index 76b988b9..eda0cb7a 100644 --- a/docs/remove-user.md +++ b/docs/remove-user.md @@ -6,7 +6,7 @@ This PowerShell script removes an existing user account including the home direc Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/remove-user.ps1 [[-username] ] [] +/Repos/PowerShell/scripts/remove-user.ps1 [[-username] ] [] -username @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/remove-vm.md b/docs/remove-vm.md index 1cee76b7..32012475 100644 --- a/docs/remove-vm.md +++ b/docs/remove-vm.md @@ -25,4 +25,4 @@ Remove-Item -Path "C:\VirtualMachines\$VMName" -Recurse exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/replace-in-files.md b/docs/replace-in-files.md index 3fb1c29f..23560a15 100644 --- a/docs/replace-in-files.md +++ b/docs/replace-in-files.md @@ -6,7 +6,7 @@ This PowerShell script searches and replaces a pattern in the given files by the Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/replace-in-files.ps1 [[-pattern] ] [[-replacement] ] [[-filePattern] ] [] +/Repos/PowerShell/scripts/replace-in-files.ps1 [[-pattern] ] [[-replacement] ] [[-filePattern] ] [] -pattern Specifies the text pattern to search for (ask user by default) @@ -104,4 +104,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/restart-network-adapters.md b/docs/restart-network-adapters.md index e1d249c1..53277e21 100644 --- a/docs/restart-network-adapters.md +++ b/docs/restart-network-adapters.md @@ -6,7 +6,7 @@ This PowerShell script restarts all local network adapters (needs admin rights). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/restart-network-adapters.ps1 [] +/Repos/PowerShell/scripts/restart-network-adapters.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -60,4 +60,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/roll-a-dice.md b/docs/roll-a-dice.md index 99b39e40..7dde79cf 100644 --- a/docs/roll-a-dice.md +++ b/docs/roll-a-dice.md @@ -6,7 +6,7 @@ This PowerShell script rolls a dice and returns the number by text-to-speech (TT Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/roll-a-dice.ps1 [] +/Repos/PowerShell/scripts/roll-a-dice.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -51,4 +51,4 @@ $Number = "1", "2", "3", "4", "5", "6" | Get-Random exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/save-credentials.md b/docs/save-credentials.md index 39f3b86a..5e55af6b 100644 --- a/docs/save-credentials.md +++ b/docs/save-credentials.md @@ -6,7 +6,7 @@ This PowerShell script asks for credentials and saves them encrypted into a targ Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/save-credentials.ps1 [[-targetFile] ] [] +/Repos/PowerShell/scripts/save-credentials.ps1 [[-targetFile] ] [] -targetFile Specifies the target file ("~\my.credentials" by default) @@ -73,4 +73,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)* diff --git a/docs/save-screenshot.md b/docs/save-screenshot.md index 6536041d..53175ccc 100644 --- a/docs/save-screenshot.md +++ b/docs/save-screenshot.md @@ -6,7 +6,7 @@ This PowerShell script takes a single screenshot and saves it into a target fold Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/save-screenshot.ps1 [[-TargetFolder] ] [] +/Repos/PowerShell/scripts/save-screenshot.ps1 [[-TargetFolder] ] [] -TargetFolder Specifies the target folder (the user's screenshots folder by default) @@ -98,4 +98,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/scan-folder.md b/docs/scan-folder.md index be723e84..bbd570c4 100644 --- a/docs/scan-folder.md +++ b/docs/scan-folder.md @@ -1,12 +1,12 @@ The *scan-folder.ps1* Script =========================== -This PowerShell script scans a directory tree for malware. Requires the installation of ESET or Windows Defender. +This PowerShell script scans a folder for malware (including subfolders). Requires ESET Endpoint Security or Windows Defender. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/scan-folder.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/scan-folder.ps1 [[-path] ] [] -path Specifies the file path to the folder (default is working directory). @@ -26,7 +26,7 @@ Example ------- ```powershell PS> ./scan-folder.ps1 C:\Windows -โณ Scanning ๐Ÿ“‚C:\Windows with ESET Antivirus... +โณ Scanning C:\Windows with ESET Endpoint Security... ... ``` @@ -44,14 +44,14 @@ Script Content ```powershell <# .SYNOPSIS - Scans a directory tree for malware + Scans a folder for malware .DESCRIPTION - This PowerShell script scans a directory tree for malware. Requires the installation of ESET or Windows Defender. + This PowerShell script scans a folder for malware (including subfolders). Requires ESET Endpoint Security or Windows Defender. .PARAMETER path Specifies the file path to the folder (default is working directory). .EXAMPLE PS> ./scan-folder.ps1 C:\Windows - โณ Scanning ๐Ÿ“‚C:\Windows with ESET Antivirus... + โณ Scanning C:\Windows with ESET Endpoint Security... ... .LINK https://github.com/fleschutz/PowerShell @@ -68,22 +68,20 @@ try { $path = Resolve-Path $path if (Test-Path "C:\Program Files\ESET\ESET Security\ecls.exe" -pathType leaf) { - - "โณ Scanning ๐Ÿ“‚$path with ESET Antivirus..." + Write-Host "โณ Scanning $path with ESET Endpoint Security..." & "C:\Program Files\ESET\ESET Security\ecls.exe" $path - if ($lastExitCode -ne 0) { throw "ESET Antivirus failed with exit code $lastExitCode - POTENTIAL DANGER!!!" } + if ($lastExitCode -ne 0) { throw "ESET Endpoibnt Security exited with code $lastExitCode - POTENTIAL THREAT !!!" } } elseif (Test-Path "C:\Program Files\Windows Defender\MpCmdRun.exe" -pathType leaf) { - - "โณ Scanning ๐Ÿ“‚$path with Windows Defender..." + Write-Host "โณ Scanning $path with Windows Defender..." & "C:\Program Files\Windows Defender\MpCmdRun.exe" -Scan -ScanType 2 -File $path - if ($lastExitCode -ne 0) { throw "Windows Defender failed with exit code $lastExitCode - POTENTIAL DANGER !!!" } + if ($lastExitCode -ne 0) { throw "Windows Defender exited with code $lastExitCode - POTENTIAL THREAT !!!" } } else { - throw "Found no ESET or Windows Defender - please install one." + throw "No ESET Endpoint Security or Windows Defender available - please install one." } [int]$elapsed = $stopWatch.Elapsed.TotalSeconds - "โœ… Scanned ๐Ÿ“‚$path in $($elapsed)s: No malware found." + Write-Host "โœ… Scanned $path in $($elapsed)s: No malware found." exit 0 # success } catch { "โš ๏ธ Error: $($Error[0])" @@ -91,4 +89,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/scan-network.md b/docs/scan-network.md index f10438ec..0804e7ab 100644 --- a/docs/scan-network.md +++ b/docs/scan-network.md @@ -32,4 +32,4 @@ $arguments = $arguments + " " + $targets Start-Process $location -ArgumentList $arguments -Wait ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/scan-ports.md b/docs/scan-ports.md index d61d0256..84dfb0fb 100644 --- a/docs/scan-ports.md +++ b/docs/scan-ports.md @@ -6,7 +6,7 @@ This PowerShell script scans the network for open or closed ports. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/scan-ports.ps1 [] +/Repos/PowerShell/scripts/scan-ports.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ foreach($add in $range) { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/search-filename.md b/docs/search-filename.md index 104c7ab9..024eab79 100644 --- a/docs/search-filename.md +++ b/docs/search-filename.md @@ -7,7 +7,7 @@ After you pass in a root folder and a search term, the script will list all file Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/search-filename.ps1 [-path] [-term] [] +/Repos/PowerShell/scripts/search-filename.ps1 [-path] [-term] [] -path Specifies the path @@ -96,4 +96,4 @@ Search-Folder -FilePath $path -SearchTerm $term exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/search-files.md b/docs/search-files.md index fdf77fe7..9fdb7819 100644 --- a/docs/search-files.md +++ b/docs/search-files.md @@ -6,7 +6,7 @@ This PowerShell script searches for the given text pattern in the given files. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/search-files.ps1 [[-textPattern] ] [[-filePattern] ] [] +/Repos/PowerShell/scripts/search-files.ps1 [[-textPattern] ] [[-filePattern] ] [] -textPattern Specifies the text pattern to search for @@ -98,4 +98,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/search-repo.md b/docs/search-repo.md index 61d214cf..22d094fb 100644 --- a/docs/search-repo.md +++ b/docs/search-repo.md @@ -6,7 +6,7 @@ This PowerShell script searches for the given text pattern in a Git repository. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/search-repo.ps1 [[-textPattern] ] [[-path] ] [] +/Repos/PowerShell/scripts/search-repo.ps1 [[-textPattern] ] [[-path] ] [] -textPattern Specifies the text pattern to search for @@ -91,4 +91,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/send-email.md b/docs/send-email.md index 5967b446..9f5349f9 100644 --- a/docs/send-email.md +++ b/docs/send-email.md @@ -6,7 +6,7 @@ This PowerShell script sends an email message. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/send-email.ps1 [[-From] ] [[-To] ] [[-Subject] ] [[-Body] ] [[-SMTPServer] ] [] +/Repos/PowerShell/scripts/send-email.ps1 [[-From] ] [[-To] ] [[-Subject] ] [[-Body] ] [[-SMTPServer] ] [] -From Specifies the sender email address @@ -121,4 +121,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/send-tcp.md b/docs/send-tcp.md index 77dc69d1..9c07cb53 100644 --- a/docs/send-tcp.md +++ b/docs/send-tcp.md @@ -6,7 +6,7 @@ This PowerShell script sends a TCP message to the given IP address and port. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/send-tcp.ps1 [[-TargetIP] ] [[-TargetPort] ] [[-Message] ] [] +/Repos/PowerShell/scripts/send-tcp.ps1 [[-TargetIP] ] [[-TargetPort] ] [[-Message] ] [] -TargetIP Specifies the target IP address @@ -104,4 +104,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/send-udp.md b/docs/send-udp.md index 7bf7f31e..d5be4198 100644 --- a/docs/send-udp.md +++ b/docs/send-udp.md @@ -6,7 +6,7 @@ This PowerShell script sends a UDP datagram message to an IP address and port. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/send-udp.ps1 [[-TargetIP] ] [[-TargetPort] ] [[-Message] ] [] +/Repos/PowerShell/scripts/send-udp.ps1 [[-TargetIP] ] [[-TargetPort] ] [[-Message] ] [] -TargetIP Specifies the target IP address @@ -102,4 +102,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/set-timer.md b/docs/set-timer.md index d56bcec1..2ed37578 100644 --- a/docs/set-timer.md +++ b/docs/set-timer.md @@ -6,7 +6,7 @@ This PowerShell script sets a timer for a countdown. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/set-timer.ps1 [[-Seconds] ] [] +/Repos/PowerShell/scripts/set-timer.ps1 [[-Seconds] ] [] -Seconds Specifies the number of seconds @@ -74,4 +74,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/set-volume.md b/docs/set-volume.md index 33faa72d..f8c500f9 100644 --- a/docs/set-volume.md +++ b/docs/set-volume.md @@ -6,7 +6,7 @@ This PowerShell script sets the audio volume to the given value in percent (0..1 Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/set-volume.ps1 [-percent] [] +/Repos/PowerShell/scripts/set-volume.ps1 [-percent] [] -percent Specifies the volume in percent (0..100) @@ -77,4 +77,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/set-wallpaper.md b/docs/set-wallpaper.md index 2149b763..d9f7f57d 100644 --- a/docs/set-wallpaper.md +++ b/docs/set-wallpaper.md @@ -6,7 +6,7 @@ This PowerShell script sets the given image file as desktop wallpaper (.JPG or . Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/set-wallpaper.ps1 [[-ImageFile] ] [[-Style] ] [] +/Repos/PowerShell/scripts/set-wallpaper.ps1 [[-ImageFile] ] [[-Style] ] [] -ImageFile Specifies the path to the image file @@ -122,4 +122,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/show-lightnings.md b/docs/show-lightnings.md index eb8a68c4..1864e9d8 100644 --- a/docs/show-lightnings.md +++ b/docs/show-lightnings.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser and shows lightnings in OpenStre Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/show-lightnings.ps1 [] +/Repos/PowerShell/scripts/show-lightnings.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/show-notification-motivation-quote.md b/docs/show-notification-motivation-quote.md index 46490006..b38ac9ea 100644 --- a/docs/show-notification-motivation-quote.md +++ b/docs/show-notification-motivation-quote.md @@ -69,4 +69,4 @@ $AppId = '{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\WindowsPowerShell\v1.0\powershe ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/show-notification.md b/docs/show-notification.md index f758d9f3..aa793c70 100644 --- a/docs/show-notification.md +++ b/docs/show-notification.md @@ -6,7 +6,7 @@ This PowerShell script shows a toast-message notification for the Windows Notifi Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/show-notification.ps1 [[-text] ] [[-title] ] [[-duration] ] [] +/Repos/PowerShell/scripts/show-notification.ps1 [[-text] ] [[-title] ] [[-duration] ] [] -text Specifies the text to show ('Hello World' by default) @@ -96,4 +96,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/show-traffic.md b/docs/show-traffic.md index b63f7804..64d48187 100644 --- a/docs/show-traffic.md +++ b/docs/show-traffic.md @@ -6,7 +6,7 @@ This PowerShell script launches the Web browser with MSN showing the current tra Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/show-traffic.ps1 [] +/Repos/PowerShell/scripts/show-traffic.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -48,4 +48,4 @@ Script Content exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/simulate-presence.md b/docs/simulate-presence.md index 94e3d48d..80e67285 100644 --- a/docs/simulate-presence.md +++ b/docs/simulate-presence.md @@ -6,7 +6,7 @@ This PowerShell script simulates the human presence against burglars. It switche Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/simulate-presence.ps1 [[-IPaddress] ] [] +/Repos/PowerShell/scripts/simulate-presence.ps1 [[-IPaddress] ] [] -IPaddress Specifies the IP address of the Shelly1 device @@ -74,4 +74,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/smart-data2csv.md b/docs/smart-data2csv.md index e5f16107..2e08a276 100644 --- a/docs/smart-data2csv.md +++ b/docs/smart-data2csv.md @@ -7,7 +7,7 @@ to a CSV table for analysis (use query-smart-data.ps1 to generate those JSON fil Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/smart-data2csv.ps1 [[-Directory] ] [] +/Repos/PowerShell/scripts/smart-data2csv.ps1 [[-Directory] ] [] -Directory Specifies the path to the directory @@ -141,4 +141,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-arabic.md b/docs/speak-arabic.md index 8a6460dd..01fd44c4 100644 --- a/docs/speak-arabic.md +++ b/docs/speak-arabic.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with an Arabic text-to-speech (TTS) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-arabic.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-arabic.ps1 [[-text] ] [] -text Specifies the Arabic text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-checklist.md b/docs/speak-checklist.md index 2c677c05..2d1d1401 100644 --- a/docs/speak-checklist.md +++ b/docs/speak-checklist.md @@ -1,19 +1,19 @@ The *speak-checklist.ps1* Script =========================== -This PowerShell script speaks the given checklist by text-to-speech (TTS). +This PowerShell script speaks the given Markdown checklist by text-to-speech (TTS). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-checklist.ps1 [[-Name] ] [] +/Repos/PowerShell/scripts/speak-checklist.ps1 [[-name] ] [] --Name +-name Specifies the name of the checklist Required? false Position? 1 - Default value + Default value handwashing Accept pipeline input? false Accept wildcard characters? false @@ -25,7 +25,7 @@ Parameters Example ------- ```powershell -PS> ./speak-checklist.ps1 +PS> ./speak-checklist.judge yiips1 handwashing ``` @@ -44,33 +44,50 @@ Script Content .SYNOPSIS Speaks a checklist by text-to-speech .DESCRIPTION - This PowerShell script speaks the given checklist by text-to-speech (TTS). -.PARAMETER Name + This PowerShell script speaks the given Markdown checklist by text-to-speech (TTS). +.PARAMETER name Specifies the name of the checklist .EXAMPLE - PS> ./speak-checklist.ps1 + PS> ./speak-checklist.judge yiips1 handwashing .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz | License: CC0 #> -param([string]$Name = "") +param([string]$name = "handwashing") + +function WaitForCheck { + $engine = New-Object -typeName System.Speech.Recognition.SpeechRecognitionEngine + $grammar = New-Object -typeName System.Speech.Recognition.GrammarBuilder + $grammar.Append("check"); + $engine.LoadGrammar($grammar); + $engine.SetInputToDefaultAudioDevice(); + do { $got = $engine.Recognize() } while ("$($got.text)" -ne "check") +} try { - if ($Name -eq "") { $Name = Read-Host "Enter the name of the checklist" } + Add-Type -AssemblyName System.Speech + if ($name -eq "") { $name = Read-Host "Enter the name of the checklist" } - $Lines = Get-Content -path "$PSScriptRoot/../data/checklists/$Name.txt" - clear-host - $Step = 1 - foreach($Line in $Lines) { - if ($Line -like "HEAD*") { & "$PSScriptRoot/write-big.ps1" "$($Line.substring(5))"; continue } - - "" - & "$PSScriptRoot/speak-english.ps1" "$($Step). $Line" - $Dummy = Read-Host " Say or press to continue" - $Step++ + $stopWatch = [system.diagnostics.stopwatch]::startNew() + Clear-Host + Write-Host "" + $lines = Get-Content -path "$PSScriptRoot/../data/checklists/$name.md" + $headline = "" + foreach($line in $lines) { + if ($line -match "- \[ \].*") { + Write-Host "`nโœ… $($line.Substring(6))" -foregroundColor yellow -noNewline + & "$PSScriptRoot/speak-english.ps1" $($line.Substring(6)) + Write-Host " Say 'CHECK'..." + WaitForCheck + } else { + Write-Host $line + } } + [int]$elapsed = $stopWatch.Elapsed.TotalSeconds + Write-Host "`nโœ… Checklist completed in $($elapsed)s." + & "$PSScriptRoot/speak-english.ps1" "You're done." exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -78,4 +95,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-countdown.md b/docs/speak-countdown.md index 6c814375..a2406a82 100644 --- a/docs/speak-countdown.md +++ b/docs/speak-countdown.md @@ -6,7 +6,7 @@ This PowerShell script speaks a countdown by text-to-speech (TTS) starting from Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-countdown.ps1 [[-startNumber] ] [] +/Repos/PowerShell/scripts/speak-countdown.ps1 [[-startNumber] ] [] -startNumber Specifies the number to start from (10 by default) @@ -72,4 +72,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-croatian.md b/docs/speak-croatian.md index 5750f5b4..2b9ae554 100644 --- a/docs/speak-croatian.md +++ b/docs/speak-croatian.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Croatian text-to-speech (TTS Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-croatian.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-croatian.ps1 [[-text] ] [] -text Specifies the Croatian text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-danish.md b/docs/speak-danish.md index a07e214c..8711e742 100644 --- a/docs/speak-danish.md +++ b/docs/speak-danish.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Danish text-to-speech (TTS) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-danish.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-danish.ps1 [[-text] ] [] -text Specifies the Danish text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-dutch.md b/docs/speak-dutch.md index 595b40ff..2569c0bd 100644 --- a/docs/speak-dutch.md +++ b/docs/speak-dutch.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Dutch text-to-speech (TTS) v Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-dutch.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-dutch.ps1 [[-text] ] [] -text Specifies the Dutch text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-english.md b/docs/speak-english.md index a81a2b7a..8a4d6e25 100644 --- a/docs/speak-english.md +++ b/docs/speak-english.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with an English text-to-speech (TTS Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-english.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-english.ps1 [[-text] ] [] -text Specifies the English text to speak @@ -74,4 +74,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-epub.md b/docs/speak-epub.md index e270d9dc..92e76eab 100644 --- a/docs/speak-epub.md +++ b/docs/speak-epub.md @@ -6,7 +6,7 @@ This PowerShell script speaks the content of the given Epub file by text-to-spee Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-epub.ps1 [[-Filename] ] [] +/Repos/PowerShell/scripts/speak-epub.ps1 [[-Filename] ] [] -Filename Specifies the path to the Epub file @@ -139,4 +139,4 @@ foreach($item in $content.package.manifest.Item) { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-esperanto.md b/docs/speak-esperanto.md index 7cef62b5..b82a056f 100644 --- a/docs/speak-esperanto.md +++ b/docs/speak-esperanto.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with an Esperanto text-to-speech (T Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-esperanto.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-esperanto.ps1 [[-text] ] [] -text Specifies the Esperanto text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-file.md b/docs/speak-file.md index f0d35445..d537c35f 100644 --- a/docs/speak-file.md +++ b/docs/speak-file.md @@ -6,7 +6,7 @@ This PowerShell script speaks the content of the given text file by text-to-spee Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-file.ps1 [[-File] ] [] +/Repos/PowerShell/scripts/speak-file.ps1 [[-File] ] [] -File Specifies the path to the text file @@ -71,4 +71,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-finnish.md b/docs/speak-finnish.md index 5807757a..691b61b0 100644 --- a/docs/speak-finnish.md +++ b/docs/speak-finnish.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Finnish text-to-speech (TTS) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-finnish.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-finnish.ps1 [[-text] ] [] -text Specifies the Finnish text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-french.md b/docs/speak-french.md index 2382d177..3cad7f74 100644 --- a/docs/speak-french.md +++ b/docs/speak-french.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a French text-to-speech (TTS) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-french.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-french.ps1 [[-text] ] [] -text Specifies the French text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-german.md b/docs/speak-german.md index f096f41f..5756e7bb 100644 --- a/docs/speak-german.md +++ b/docs/speak-german.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a German text-to-speech (TTS) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-german.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-german.ps1 [[-text] ] [] -text Specifies the German text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-greek.md b/docs/speak-greek.md index 5fc31540..07d7b1db 100644 --- a/docs/speak-greek.md +++ b/docs/speak-greek.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Greek text-to-speech (TTS) v Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-greek.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-greek.ps1 [[-text] ] [] -text Specifies the Greek text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-hebrew.md b/docs/speak-hebrew.md index e5971a63..4a170941 100644 --- a/docs/speak-hebrew.md +++ b/docs/speak-hebrew.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Hebrew text-to-speech (TTS) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-hebrew.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-hebrew.ps1 [[-text] ] [] -text Specifies the Hebrew text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-hindi.md b/docs/speak-hindi.md index 4569e3ed..8bac237e 100644 --- a/docs/speak-hindi.md +++ b/docs/speak-hindi.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Hindi text-to-speech (TTS) v Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-hindi.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-hindi.ps1 [[-text] ] [] -text Specifies the Hindi text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-italian.md b/docs/speak-italian.md index fbe2aace..4caa4f3c 100644 --- a/docs/speak-italian.md +++ b/docs/speak-italian.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with an Italian text-to-speech (TTS Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-italian.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-italian.ps1 [[-text] ] [] -text Specifies the Italian text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-japanese.md b/docs/speak-japanese.md index fdf13bc0..ea4a6c49 100644 --- a/docs/speak-japanese.md +++ b/docs/speak-japanese.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Japanese text-to-speech (TTS Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-japanese.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-japanese.ps1 [[-text] ] [] -text Specifies the Japanese text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-korean.md b/docs/speak-korean.md index 1d3d5ba4..4035e4cc 100644 --- a/docs/speak-korean.md +++ b/docs/speak-korean.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Korean text-to-speech (TTS) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-korean.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-korean.ps1 [[-text] ] [] -text Specifies the Korean text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:00)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-latin.md b/docs/speak-latin.md index 78c9f00b..fcb0b7b8 100644 --- a/docs/speak-latin.md +++ b/docs/speak-latin.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Latin text-to-speech (TTS) v Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-latin.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-latin.ps1 [[-text] ] [] -text Specifies the Latin text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-mandarin.md b/docs/speak-mandarin.md index 1bd593dd..b74aeef6 100644 --- a/docs/speak-mandarin.md +++ b/docs/speak-mandarin.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Mandarin text-to-speech (TTS Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-mandarin.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-mandarin.ps1 [[-text] ] [] -text Specifies the Mandarin text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-norwegian.md b/docs/speak-norwegian.md index e69a5403..8a1383ef 100644 --- a/docs/speak-norwegian.md +++ b/docs/speak-norwegian.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Norwegian text-to-speech (TT Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-norwegian.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-norwegian.ps1 [[-text] ] [] -text Specifies the Norwegian text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-polish.md b/docs/speak-polish.md index b04ade6f..0ad93b6c 100644 --- a/docs/speak-polish.md +++ b/docs/speak-polish.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Polish text-to-speech (TTS) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-polish.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-polish.ps1 [[-text] ] [] -text Specifies the Polish text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-portuguese.md b/docs/speak-portuguese.md index aff7ce3e..ff8d2dae 100644 --- a/docs/speak-portuguese.md +++ b/docs/speak-portuguese.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Portuguese text-to-speech (T Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-portuguese.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-portuguese.ps1 [[-text] ] [] -text Specifies the Portuguese text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-russian.md b/docs/speak-russian.md index a8e67e14..2e9d8c7e 100644 --- a/docs/speak-russian.md +++ b/docs/speak-russian.md @@ -6,7 +6,7 @@ This PowerShell script speaks the text with a Russian text-to-speech (TTS) voice Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-russian.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-russian.ps1 [[-text] ] [] -text Specifies the Russian text @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-spanish.md b/docs/speak-spanish.md index 5ce8567a..c1f02c98 100644 --- a/docs/speak-spanish.md +++ b/docs/speak-spanish.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Spanish text-to-speech (TTS) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-spanish.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-spanish.ps1 [[-text] ] [] -text Specifies the Spanish text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-swedish.md b/docs/speak-swedish.md index 823ce2cb..2fab377c 100644 --- a/docs/speak-swedish.md +++ b/docs/speak-swedish.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Swedish text-to-speech (TTS) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-swedish.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-swedish.ps1 [[-text] ] [] -text Specifies the Swedish text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-test.md b/docs/speak-test.md index b35ce483..68a3859d 100644 --- a/docs/speak-test.md +++ b/docs/speak-test.md @@ -83,4 +83,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-text.md b/docs/speak-text.md index d3bafda2..d6c66aae 100644 --- a/docs/speak-text.md +++ b/docs/speak-text.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text by the default text-to-speech (TTS) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-text.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-text.ps1 [[-text] ] [] -text Specifies the text to read @@ -69,4 +69,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-thai.md b/docs/speak-thai.md index 9c7a65b3..13cc64cb 100644 --- a/docs/speak-thai.md +++ b/docs/speak-thai.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Thai text-to-speech (TTS) vo Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-thai.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-thai.ps1 [[-text] ] [] -text Specifies the Thai text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-turkish.md b/docs/speak-turkish.md index c9396be5..9c7abe1a 100644 --- a/docs/speak-turkish.md +++ b/docs/speak-turkish.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Turkish text-to-speech (TTS) Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-turkish.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-turkish.ps1 [[-text] ] [] -text Specifies the Turkish text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/speak-ukrainian.md b/docs/speak-ukrainian.md index 204438a4..6b0736ba 100644 --- a/docs/speak-ukrainian.md +++ b/docs/speak-ukrainian.md @@ -6,7 +6,7 @@ This PowerShell script speaks the given text with a Ukrainian text-to-speech (TT Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/speak-ukrainian.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/speak-ukrainian.ps1 [[-text] ] [] -text Specifies the Ukranian text to speak @@ -75,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/spell-word.md b/docs/spell-word.md index 918e1196..f5bb881c 100644 --- a/docs/spell-word.md +++ b/docs/spell-word.md @@ -6,10 +6,10 @@ This PowerShell script spells the given word by text-to-speech (TTS). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/spell-word.ps1 [[-word] ] [] +/Repos/PowerShell/scripts/spell-word.ps1 [[-word] ] [] -word - Specifies the word to spell + Specifies the word to spell (queried by default) Required? false Position? 1 @@ -25,7 +25,8 @@ Parameters Example ------- ```powershell -PS> ./spell-word +PS> ./spell-word.ps1 Yoda +(listen) ``` @@ -46,9 +47,10 @@ Script Content .DESCRIPTION This PowerShell script spells the given word by text-to-speech (TTS). .PARAMETER word - Specifies the word to spell + Specifies the word to spell (queried by default) .EXAMPLE - PS> ./spell-word + PS> ./spell-word.ps1 Yoda + (listen) .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -58,15 +60,14 @@ Script Content param([string]$word = "") try { - if ($word -eq "" ) { $word = read-host "Enter word to spell" } + if ($word -eq "" ) { $word = Read-Host "Enter the word to spell" } - [char[]]$ArrayOfChars = $word.ToUpper() - $Reply = "" - foreach($Char in $ArrayOfChars) { - $Reply += $Char - $Reply += " " + [char[]]$array = $word.ToUpper() + $reply = "" + foreach($char in $array) { + $reply += $char + ", " } - & "$PSScriptRoot/speak-english.ps1" "$Reply" + & "$PSScriptRoot/speak-english.ps1" $reply exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -74,4 +75,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/start-ipfs-server.md b/docs/start-ipfs-server.md index 5258c6da..ab0ac138 100644 --- a/docs/start-ipfs-server.md +++ b/docs/start-ipfs-server.md @@ -6,7 +6,7 @@ This PowerShell script starts a local IPFS server as a daemon process. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/start-ipfs-server.ps1 [] +/Repos/PowerShell/scripts/start-ipfs-server.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -90,4 +90,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/suspend.md b/docs/suspend.md index 95e1a444..2bb35476 100644 --- a/docs/suspend.md +++ b/docs/suspend.md @@ -6,7 +6,7 @@ This PowerShell script suspends the local computer immediately. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/suspend.ps1 [] +/Repos/PowerShell/scripts/suspend.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -54,4 +54,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/switch-branch.md b/docs/switch-branch.md index cb636e78..c788a85f 100644 --- a/docs/switch-branch.md +++ b/docs/switch-branch.md @@ -6,7 +6,7 @@ This PowerShell script switches to the given branch in a Git repository and also Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/switch-branch.ps1 [[-branchName] ] [[-pathToRepo] ] [] +/Repos/PowerShell/scripts/switch-branch.ps1 [[-branchName] ] [[-pathToRepo] ] [] -branchName Specifies the Git branch name to switch to @@ -126,4 +126,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/switch-shelly1.md b/docs/switch-shelly1.md index 532d88ea..db6d8421 100644 --- a/docs/switch-shelly1.md +++ b/docs/switch-shelly1.md @@ -6,7 +6,7 @@ This PowerShell script switches a Shelly1 device in the local network. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/switch-shelly1.ps1 [[-host] ] [[-turnMode] ] [[-timer] ] [] +/Repos/PowerShell/scripts/switch-shelly1.ps1 [[-host] ] [[-turnMode] ] [[-timer] ] [] -host Specifies either the hostname or IP address of the Shelly1 device @@ -94,4 +94,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/switch-tabs.md b/docs/switch-tabs.md index 519fde14..a455e4bf 100644 --- a/docs/switch-tabs.md +++ b/docs/switch-tabs.md @@ -6,7 +6,7 @@ This PowerShell script switches automatically from tab to tab every seconds Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/switch-tabs.ps1 [[-timeInterval] ] [] +/Repos/PowerShell/scripts/switch-tabs.ps1 [[-timeInterval] ] [] -timeInterval Specifies the time interval in seconds (10sec per default) @@ -76,4 +76,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/sync-folder.md b/docs/sync-folder.md index b8bc9e53..f56947a0 100644 --- a/docs/sync-folder.md +++ b/docs/sync-folder.md @@ -8,7 +8,7 @@ IMPORTANT NOTE: Make sure the target path is correct because the content gets re Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/sync-folder.ps1 [[-sourcePath] ] [[-targetPath] ] [] +/Repos/PowerShell/scripts/sync-folder.ps1 [[-sourcePath] ] [[-targetPath] ] [] -sourcePath Specifies the path to the source folder @@ -96,4 +96,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/sync-repo.md b/docs/sync-repo.md index dbe7790b..d6363511 100644 --- a/docs/sync-repo.md +++ b/docs/sync-repo.md @@ -6,7 +6,7 @@ This PowerShell script synchronizes a local Git repository by pull and push (inc Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/sync-repo.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/sync-repo.ps1 [[-path] ] [] -path Specifies the path to the Git repository (current working directory by default) @@ -95,4 +95,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/tell-joke.md b/docs/tell-joke.md index a2b00a8e..9593367b 100644 --- a/docs/tell-joke.md +++ b/docs/tell-joke.md @@ -6,7 +6,7 @@ This PowerShell script selects a random Chuck Norris joke in Data/jokes.csv and Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/tell-joke.ps1 [] +/Repos/PowerShell/scripts/tell-joke.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -60,4 +60,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/tell-new-year.md b/docs/tell-new-year.md index c720f131..e9548bba 100644 --- a/docs/tell-new-year.md +++ b/docs/tell-new-year.md @@ -6,7 +6,7 @@ This PowerShell script calculates the time until New Year and replies by text-to Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/tell-new-year.ps1 [] +/Repos/PowerShell/scripts/tell-new-year.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -62,4 +62,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/tell-quote.md b/docs/tell-quote.md index 27ea07a2..7106662a 100644 --- a/docs/tell-quote.md +++ b/docs/tell-quote.md @@ -6,7 +6,7 @@ This PowerShell script selects a random quote from Data/quotes.csv and speaks it Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/tell-quote.ps1 [] +/Repos/PowerShell/scripts/tell-quote.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -60,4 +60,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/toggle-caps-lock.md b/docs/toggle-caps-lock.md index ce79cf76..70b515ab 100644 --- a/docs/toggle-caps-lock.md +++ b/docs/toggle-caps-lock.md @@ -6,7 +6,7 @@ This PowerShell script toggles the Caps Lock key state. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/toggle-caps-lock.ps1 [] +/Repos/PowerShell/scripts/toggle-caps-lock.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -54,4 +54,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/toggle-num-lock.md b/docs/toggle-num-lock.md index 956db842..fa8ed206 100644 --- a/docs/toggle-num-lock.md +++ b/docs/toggle-num-lock.md @@ -6,7 +6,7 @@ This PowerShell script toggles the Num Lock key state. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/toggle-num-lock.ps1 [] +/Repos/PowerShell/scripts/toggle-num-lock.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -54,4 +54,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/toggle-scroll-lock.md b/docs/toggle-scroll-lock.md index 3f5712a8..62f78207 100644 --- a/docs/toggle-scroll-lock.md +++ b/docs/toggle-scroll-lock.md @@ -6,7 +6,7 @@ This PowerShell script toggles the Scroll Lock key state. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/toggle-scroll-lock.ps1 [] +/Repos/PowerShell/scripts/toggle-scroll-lock.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -54,4 +54,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/translate-file.md b/docs/translate-file.md index 153cf81c..e6a9dd83 100644 --- a/docs/translate-file.md +++ b/docs/translate-file.md @@ -6,7 +6,7 @@ This PowerShell script translates the given text file into another language and Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/translate-file.ps1 [[-File] ] [[-SourceLang] ] [[-TargetLang] ] [] +/Repos/PowerShell/scripts/translate-file.ps1 [[-File] ] [[-SourceLang] ] [[-TargetLang] ] [] -File Specifies the path to the file to be translated @@ -108,4 +108,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/translate-files.md b/docs/translate-files.md index 711e6a31..f315050c 100644 --- a/docs/translate-files.md +++ b/docs/translate-files.md @@ -6,7 +6,7 @@ This PowerShell script translates text files into multiple languages. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/translate-files.ps1 [[-filePattern] ] [] +/Repos/PowerShell/scripts/translate-files.ps1 [[-filePattern] ] [] -filePattern Specifies the file pattern of the text file(s) to be translated @@ -105,4 +105,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/translate-text.md b/docs/translate-text.md index 991073fa..0bbcd14e 100644 --- a/docs/translate-text.md +++ b/docs/translate-text.md @@ -6,7 +6,7 @@ This PowerShell script translates text into other languages. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/translate-text.ps1 [[-Text] ] [[-SourceLangCode] ] [[-TargetLangCode] ] [] +/Repos/PowerShell/scripts/translate-text.ps1 [[-Text] ] [[-SourceLangCode] ] [[-TargetLangCode] ] [] -Text Specifies the text to translate @@ -104,4 +104,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/turn-volume-down.md b/docs/turn-volume-down.md index bc211296..72948fd9 100644 --- a/docs/turn-volume-down.md +++ b/docs/turn-volume-down.md @@ -6,7 +6,7 @@ This PowerShell script turns the audio volume down (-10% by default). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/turn-volume-down.ps1 [[-percent] ] [] +/Repos/PowerShell/scripts/turn-volume-down.ps1 [[-percent] ] [] -percent Specifies the percent number @@ -69,4 +69,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/turn-volume-fully-up.md b/docs/turn-volume-fully-up.md index 37100902..47cc5a69 100644 --- a/docs/turn-volume-fully-up.md +++ b/docs/turn-volume-fully-up.md @@ -6,7 +6,7 @@ This PowerShell script turns the audio volume fully up to 100%. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/turn-volume-fully-up.ps1 [] +/Repos/PowerShell/scripts/turn-volume-fully-up.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -56,4 +56,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/turn-volume-off.md b/docs/turn-volume-off.md index 1524ebd0..7f03389a 100644 --- a/docs/turn-volume-off.md +++ b/docs/turn-volume-off.md @@ -6,7 +6,7 @@ This PowerShell script mutes the default audio device immediately. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/turn-volume-off.ps1 [] +/Repos/PowerShell/scripts/turn-volume-off.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -54,4 +54,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/turn-volume-on.md b/docs/turn-volume-on.md index 2ef811bb..a7cdd9f5 100644 --- a/docs/turn-volume-on.md +++ b/docs/turn-volume-on.md @@ -6,7 +6,7 @@ This PowerShell script immediately unmutes the audio output. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/turn-volume-on.ps1 [] +/Repos/PowerShell/scripts/turn-volume-on.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -54,4 +54,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/turn-volume-up.md b/docs/turn-volume-up.md index e6056992..71c66702 100644 --- a/docs/turn-volume-up.md +++ b/docs/turn-volume-up.md @@ -6,7 +6,7 @@ This PowerShell script turns the audio volume up (+10% by default). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/turn-volume-up.ps1 [[-percent] ] [] +/Repos/PowerShell/scripts/turn-volume-up.ps1 [[-percent] ] [] -percent Specifies the percent number @@ -69,4 +69,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/uninstall-all-apps.md b/docs/uninstall-all-apps.md index 6f21dfd8..3aa625d2 100644 --- a/docs/uninstall-all-apps.md +++ b/docs/uninstall-all-apps.md @@ -6,7 +6,7 @@ This PowerShell script uninstalls all applications from the local computer. Usef Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/uninstall-all-apps.ps1 [] +/Repos/PowerShell/scripts/uninstall-all-apps.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/uninstall-bloatware.md b/docs/uninstall-bloatware.md index 07a606bc..c5d41026 100644 --- a/docs/uninstall-bloatware.md +++ b/docs/uninstall-bloatware.md @@ -6,7 +6,7 @@ This PowerShell script uninstalls unnecessary software and applications. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/uninstall-bloatware.ps1 [] +/Repos/PowerShell/scripts/uninstall-bloatware.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -98,4 +98,4 @@ winget uninstall 'Prime Video for Windows' exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/uninstall-new-outlook.md b/docs/uninstall-new-outlook.md new file mode 100644 index 00000000..8e795462 --- /dev/null +++ b/docs/uninstall-new-outlook.md @@ -0,0 +1,60 @@ +The *uninstall-new-outlook.ps1* Script +=========================== + +This PowerShell script uninstalls the new Outlook for Windows application. + +Parameters +---------- +```powershell +/Repos/PowerShell/scripts/uninstall-new-outlook.ps1 [] + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +Example +------- +```powershell +PS> ./uninstall-new-outlook.ps1 + +``` + +Notes +----- +Author: Markus Fleschutz | License: CC0 + +Related Links +------------- +https://github.com/fleschutz/PowerShell + +Script Content +-------------- +```powershell +<# +.SYNOPSIS + Uninstalls the new Outlook +.DESCRIPTION + This PowerShell script uninstalls the new Outlook for Windows application. +.EXAMPLE + PS> ./uninstall-new-outlook.ps1 +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +try { + "โณ Uninstalling new Outlook for Windows..." + + Remove-AppxProvisionedPackage -AllUsers -Online -PackageName (Get-AppxPackage Microsoft.OutlookForWindows).PackageFullName + + "โœ… New Outlook for Windows has been removed." + exit 0 # success +} catch { + "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 +} +``` + +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/uninstall-outlook.md b/docs/uninstall-outlook.md new file mode 100644 index 00000000..29ade022 --- /dev/null +++ b/docs/uninstall-outlook.md @@ -0,0 +1,60 @@ +The *uninstall-outlook.ps1* Script +=========================== + +This PowerShell script uninstalls Outlook for Windows. + +Parameters +---------- +```powershell +/Repos/PowerShell/scripts/uninstall-outlook.ps1 [] + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +Example +------- +```powershell +PS> ./uninstall-outlook.ps1 + +``` + +Notes +----- +Author: Markus Fleschutz | License: CC0 + +Related Links +------------- +https://github.com/fleschutz/PowerShell + +Script Content +-------------- +```powershell +<# +.SYNOPSIS + Uninstalls Outlook +.DESCRIPTION + This PowerShell script uninstalls Outlook for Windows. +.EXAMPLE + PS> ./uninstall-outlook.ps1 +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +try { + "โณ Uninstalling Outlook for Windows..." + + Remove-AppxPackage -AllUsers -Package (Get-AppxPackage Microsoft.OutlookForWindows).PackageFullName + + "โœ… Outlook for Windows has been removed." + exit 0 # success +} catch { + "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 +} +``` + +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/update-powershell-profile.md b/docs/update-powershell-profile.md index c738dde3..df77f0bc 100644 --- a/docs/update-powershell-profile.md +++ b/docs/update-powershell-profile.md @@ -6,7 +6,7 @@ This PowerShell script write/overwrites the PowerShell profile of the current us Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/update-powershell-profile.ps1 [[-path] ] [] +/Repos/PowerShell/scripts/update-powershell-profile.ps1 [[-path] ] [] -path Specifies the path to the new profile ($PSScriptRoot/my-profile.ps1 by default) @@ -80,4 +80,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/upgrade-ubuntu.md b/docs/upgrade-ubuntu.md index f29c1bf9..9eae2903 100644 --- a/docs/upgrade-ubuntu.md +++ b/docs/upgrade-ubuntu.md @@ -6,7 +6,7 @@ This PowerShell script upgrades Ubuntu Linux to the latest (LTS) release. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/upgrade-ubuntu.ps1 [] +/Repos/PowerShell/scripts/upgrade-ubuntu.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -87,4 +87,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/upload-file.md b/docs/upload-file.md index 41aa207f..ef8b2d3b 100644 --- a/docs/upload-file.md +++ b/docs/upload-file.md @@ -6,7 +6,7 @@ This PowerShell script uploads a local file to a FTP server. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/upload-file.ps1 [[-File] ] [[-URL] ] [[-Username] ] [[-Password] ] [] +/Repos/PowerShell/scripts/upload-file.ps1 [[-File] ] [[-URL] ] [[-Username] ] [[-Password] ] [] -File Specifies the path to the local file @@ -145,4 +145,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/upload-to-dropbox.md b/docs/upload-to-dropbox.md index 21d1d8bc..ecf5024a 100644 --- a/docs/upload-to-dropbox.md +++ b/docs/upload-to-dropbox.md @@ -6,7 +6,7 @@ This PowerShell script uploads a local file to Dropbox. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/upload-to-dropbox.ps1 [-SourceFilePath] [] +/Repos/PowerShell/scripts/upload-to-dropbox.ps1 [-SourceFilePath] [] -SourceFilePath @@ -74,4 +74,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:57)* diff --git a/docs/wake-up-host.md b/docs/wake-up-host.md index 5955cd81..91f45682 100644 --- a/docs/wake-up-host.md +++ b/docs/wake-up-host.md @@ -6,7 +6,7 @@ This PowerShell script sends a magic UDP packet to a computer to wake him up (re Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/wake-up-host.ps1 [[-macAddr] ] [[-ipAddr] ] [[-udpPort] ] [[-numTimes] ] [] +/Repos/PowerShell/scripts/wake-up-host.ps1 [[-macAddr] ] [[-ipAddr] ] [[-udpPort] ] [[-numTimes] ] [] -macAddr Specifies the host's MAC address (e.g. 11:22:33:44:55:66) @@ -18,7 +18,7 @@ Parameters Accept wildcard characters? false -ipAddr - Specifies the host's IP address or subnet address (e.g. 192.168.0.255) + Specifies the subnet address (e.g. 192.168.178.255) Required? false Position? 2 @@ -52,8 +52,8 @@ Parameters Example ------- ```powershell -PS> ./wake-up-host.ps1 11:22:33:44:55:66 192.168.100.100 -โœ… Magic packet sent to IP 192.168.100.100, UDP port 9, 3x - wait a minute until the computer fully boots up. +PS> ./wake-up-host.ps1 11:22:33:44:55:66 192.168.100.255 +โœ… Sent magic packet to 192.168.100.255, UDP port 9 (3x). The device is up in a minute. ``` @@ -76,14 +76,14 @@ Script Content .PARAMETER macAddr Specifies the host's MAC address (e.g. 11:22:33:44:55:66) .PARAMETER ipAddr - Specifies the host's IP address or subnet address (e.g. 192.168.0.255) + Specifies the subnet address (e.g. 192.168.178.255) .PARAMETER udpPort Specifies the UDP port (9 by default) .PARAMETER numTimes Specifies # of times to send the packet (3 by default) .EXAMPLE - PS> ./wake-up-host.ps1 11:22:33:44:55:66 192.168.100.100 - โœ… Magic packet sent to IP 192.168.100.100, UDP port 9, 3x - wait a minute until the computer fully boots up. + PS> ./wake-up-host.ps1 11:22:33:44:55:66 192.168.100.255 + โœ… Sent magic packet to 192.168.100.255, UDP port 9 (3x). The device is up in a minute. .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -106,13 +106,13 @@ function Send-WOL { param([string]$macAddr, [string]$ipAddr, [int]$udpPort) try { if ($macAddr -eq "" ) { $macAddr = Read-Host "Enter the host's MAC address, e.g. 11:22:33:44:55:66" } - if ($ipAddr -eq "" ) { $ipAddr = Read-Host "Enter the host's IP or subnet address, e.g. 192.168.0.255" } + if ($ipAddr -eq "" ) { $ipAddr = Read-Host "Enter the subnet address, e.g. 192.168.178.255" } for ($i = 0; $i -lt $numTimes; $i++) { Send-WOL $macAddr.Trim() $ipAddr.Trim() $udpPort Start-Sleep -milliseconds 100 } - "โœ… Magic packet sent to IP $ipAddr, UDP port $udpPort, $($numTimes)x - wait a minute until the computer fully boots up." + "โœ… Sent magic packet to $ipAddr, UDP port $($udpPort) ($($numTimes)x). The device is up in a minute." exit 0 # success } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" @@ -120,4 +120,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/wake-up-human.md b/docs/wake-up-human.md new file mode 100644 index 00000000..98770670 --- /dev/null +++ b/docs/wake-up-human.md @@ -0,0 +1,55 @@ +The *wake-up-human.ps1* Script +=========================== + +This PowerShell script plays the sound of Big Ben to wake a human up. + +Parameters +---------- +```powershell +/Repos/PowerShell/scripts/wake-up-human.ps1 [] + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +Example +------- +```powershell +PS> ./wake-up-human.ps1 +(listen and enjoy) + +``` + +Notes +----- +Author: Markus Fleschutz | License: CC0 + +Related Links +------------- +https://github.com/fleschutz/PowerShell + +Script Content +-------------- +```powershell +<# +.SYNOPSIS + Wakes up an human +.DESCRIPTION + This PowerShell script plays the sound of Big Ben to wake a human up. +.EXAMPLE + PS> ./wake-up-human.ps1 + (listen and enjoy) +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +do { + & "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../data/sounds/Big Ben.mp3" +} while ($true) + +``` + +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/watch-commits.md b/docs/watch-commits.md index d911715a..c4cc36dc 100644 --- a/docs/watch-commits.md +++ b/docs/watch-commits.md @@ -1,12 +1,12 @@ The *watch-commits.ps1* Script =========================== -This PowerShell script continuously lists the latest commit in a Git repository in real-time. +This PowerShell script continuously lists the latest commits in a Git repository in real-time. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/watch-commits.ps1 [[-pathToRepo] ] [[-updateInterval] ] [[-speed] ] [] +/Repos/PowerShell/scripts/watch-commits.ps1 [[-pathToRepo] ] [[-updateInterval] ] [[-speed] ] [] -pathToRepo Specifies the file path to the local Git repository. @@ -21,7 +21,7 @@ Parameters Required? false Position? 2 - Default value 30 + Default value 60 Accept pipeline input? false Accept wildcard characters? false @@ -29,7 +29,7 @@ Parameters Required? false Position? 3 - Default value 17 + Default value 10 Accept pipeline input? false Accept wildcard characters? false @@ -42,7 +42,12 @@ Example ------- ```powershell PS> ./watch-commits.ps1 -โ‡๏ธ Updated general.csv by Markus Fleschutz (HEAD -> main, origin/main, origin/HEAD) + + + +TIME COMMIT +---- ------ +11:25 Updated general.csv by Markus Fleschutz (HEAD -> main, origin/main, origin/HEAD) ... ``` @@ -60,14 +65,17 @@ Script Content ```powershell <# .SYNOPSIS - Watch commits live. + Watch Git commits live. .DESCRIPTION - This PowerShell script continuously lists the latest commit in a Git repository in real-time. + This PowerShell script continuously lists the latest commits in a Git repository in real-time. .PARAMETER pathToRepo Specifies the file path to the local Git repository. .EXAMPLE PS> ./watch-commits.ps1 - โ‡๏ธ Updated general.csv by Markus Fleschutz (HEAD -> main, origin/main, origin/HEAD) + + TIME COMMIT + ---- ------ + 11:25 Updated general.csv by Markus Fleschutz (HEAD -> main, origin/main, origin/HEAD) ... .LINK https://github.com/fleschutz/PowerShell @@ -75,7 +83,7 @@ Script Content Author: Markus Fleschutz | License: CC0 #> -param([string]$pathToRepo = "$PWD", [int]$updateInterval = 30, [int]$speed = 17) +param([string]$pathToRepo = "$PWD", [int]$updateInterval = 60, [int]$speed = 10) try { Write-Progress "Searching for Git executable..." @@ -86,9 +94,9 @@ try { if (-not(Test-Path "$pathToRepo" -pathType container)) { throw "Can't access directory: $pathToRepo" } Write-Progress -completed "Done." - Write-Host "" - Write-Host "TIME COMMIT" - Write-Host "---- ------" + Write-Output "" + Write-Output "TIME COMMIT" + Write-Output "---- ------" $prevLine = "" $tzOffset = (Get-Timezone).BaseUtcOffset.TotalSeconds for (;;) { @@ -96,10 +104,9 @@ try { if ($lastExitCode -ne "0") { throw "'git fetch' failed" } $line = (git -C "$pathToRepo" log origin --format=format:'%at %s by %an%d' --max-count=1) - if ($line -eq $prevLine) { - Start-Sleep -seconds $updateInterval - continue - } + if ($lastExitCode -ne "0") { throw "'git log origin' failed" } + if ("$line" -eq "$prevLine") { Start-Sleep -seconds $updateInterval; continue } + $unixTimestamp = [int64]$line.Substring(0,10) $time = (Get-Date -day 1 -month 1 -year 1970 -hour 0 -minute 0 -second 0).AddSeconds($unixTimestamp) $time = $time.AddSeconds($tzOffset) @@ -115,4 +122,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/watch-file.md b/docs/watch-file.md index 4032bbfb..05dcee6f 100644 --- a/docs/watch-file.md +++ b/docs/watch-file.md @@ -64,4 +64,4 @@ function Watch-File { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/watch-host.md b/docs/watch-host.md new file mode 100644 index 00000000..9e2db2ab --- /dev/null +++ b/docs/watch-host.md @@ -0,0 +1,150 @@ +The *watch-host.ps1* Script +=========================== + +watch-host.ps1 + + +Parameters +---------- +```powershell + + +[] + This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, + WarningVariable, OutBuffer, PipelineVariable, and OutVariable. +``` + +Script Content +-------------- +```powershell +<# +.SYNOPSIS + Writes a value with unit and range +.DESCRIPTION + This PowerShell script writes the given value with the unit and the value range to the console. +.PARAMETER value + Specifies the value +.EXAMPLE + PS> ./write-value.ps1 95.0 "ยฐC" 0 10 90 100 + [0--------95ยฐC-100] +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +function GetCPUTemperature { + $temp = -300 # unsupported + if ($IsLinux) { + if (Test-Path "/sys/class/thermal/thermal_zone0/temp" -pathType leaf) { + [int]$IntTemp = Get-Content "/sys/class/thermal/thermal_zone0/temp" + $temp = [math]::round($IntTemp / 1000.0, 1) + } + } else { + $objects = Get-WmiObject -Query "SELECT * FROM Win32_PerfFormattedData_Counters_ThermalZoneInformation" -Namespace "root/CIMV2" + foreach ($object in $objects) { + $highPrec = $object.HighPrecisionTemperature + $temp = [math]::round($highPrec / 100.0, 1) + } + } + return $temp +} + +function GetUptime { + if ($IsLinux) { + $uptime = (Get-Uptime) + } else { + $lastBootTime = (Get-CimInstance Win32_OperatingSystem).LastBootUpTime + $uptime = New-TimeSpan -Start $lastBootTime -End (Get-Date) + } + return $uptime.Days +} + +function WriteValueInRange([float]$value, [string]$unit, [float]$redMin, [float]$yellowMin, [float]$yellowMax, [float]$redMax) { + $line = "------------------------------------------------" + $text = "[$redMin$($value)$unit $redMax]" + [float]$total = 20.0 - $text.Length + if ($value -gt $redMax) { + Write-Host "[$redMin$($line.Substring(0, $total))$redMax]" -noNewline + Write-Host "$($value)$unit " -noNewline -foregroundColor red + } elseif ($value -lt $redMin) { + Write-Host "$($value)$unit" -noNewline -foregroundColor red + Write-Host "[$redMin$($line.Substring(0, $total))$redMax] " -noNewline + } else { + [float]$leftSide = (($value - $redMin) * $total) / ($redMax - $redMin) + if ($leftSide -lt 1.0) { $leftSide = 1.0 } + if ($leftSide -gt ($total - 1.0)) { $leftSide = $total - 1.0 } + Write-Host "[$redMin$($line.Substring(0, $leftSide))" -noNewline + if (($value -lt $yellowMin) -or ($value -gt $yellowMax)) { + Write-Host "$($value)$unit" -noNewline -foregroundColor yellow + } else { + Write-Host "$($value)$unit" -noNewline -foregroundColor green + } + Write-Host "$($line.Substring(0, $total - $leftSide + 0.49))$redMax] " -noNewline + } +} + +try { + do { + [int]$DayOfYear = (Get-Date).DayofYear + [int]$Time = Get-Date -format "HHmm" + [int]$TimeZone = Get-Date -format "zz" + $CPUtemp = GetCPUTemperature + $numCores = $env:NUMBER_OF_PROCESSORS + $numProcesses = (Get-Process).Count + $load = "{0}" -f $(Get-WmiObject Win32_Processor | Measure-Object -Property LoadPercentage -Average | Select-Object -ExpandProperty Average) + $DriveDetails = Get-PSDrive C + $DiskUse = [math]::round($DriveDetails.Used / 1GB) + $DiskSize = [math]::round(($DriveDetails.Used + $DriveDetails.Free) / 1GB) + $numDaysUp = GetUptime + + if ($IsLinux) { + $result = $(free --mega | grep Swap:) + [int64]$total = $result.subString(5,14) + [int64]$used = $result.substring(20,13) + } else { + $items = Get-WmiObject -class "Win32_PageFileUsage" -namespace "root\CIMV2" -computername localhost + [int64]$total = [int64]$used = 0 + foreach ($item in $items) { + $total += $item.AllocatedBaseSize + $used += $item.CurrentUsage + + } + } + + Clear-Host + Write-Host "Host $env:COMPUTERNAME" + Write-Host "==================" + Write-Host "`n* DATE " -noNewline + WriteValueInRange $DayOfYear "" 0 0 366 366 + Write-Host "`n* TIME " -noNewline + WriteValueInRange $Time "" 0 0 2400 2400 + Write-Host "`n* ZONE " -noNewline + WriteValueInRange $TimeZone "" -23 -23 23 23 + if ($CPUtemp -ne -300) { + Write-Host "`n* CPU " -noNewline + WriteValueInRange $CPUtemp "ยฐC" 0 10 80 100 + } + Write-Host "`n* CPU " -noNewline + WriteValueInRange $numCores " cores" 0 0 100 100 + Write-Host "`n* LOAD " -noNewline + WriteValueInRange $load "%" 0 0 90 100 + Write-Host "`n* PROC " -noNewline + WriteValueInRange $numProcesses "" 0 10 900 1000 + Write-Host "`n* SWAP " -noNewline + WriteValueInRange $used "GB" 0 0 ($total - 1) $total + Write-Host "`n* DISK " -noNewline + WriteValueInRange $DiskUse "GB" 0 0 ($DiskSize - 5) $DiskSize + Write-Host "`n* UP " -noNewline + WriteValueInRange $numDaysUp " days" 0 0 1000 1000 + + + Start-Sleep -milliseconds 5000 + } while ($true) +} catch { + "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 +} +``` + +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/watch-news.md b/docs/watch-news.md index 56c95578..0cf045e8 100644 --- a/docs/watch-news.md +++ b/docs/watch-news.md @@ -6,7 +6,7 @@ This PowerShell script continuously lists the latest headlines by using a RSS (R Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/watch-news.ps1 [[-URL] ] [[-timeInterval] ] [] +/Repos/PowerShell/scripts/watch-news.ps1 [[-URL] ] [[-timeInterval] ] [] -URL Specifies the URL to the RSS feed (Yahoo World News by default) @@ -38,8 +38,8 @@ PS> ./watch-news.ps1 -UTC HEADLINES (by: https://www.yahoo.com/news/world) - --- ------------------------------------------------ +UTC HEADLINES (source: https://www.yahoo.com/news/world) + --- --------- 14:29 Niger coup: Ecowas deadline sparks anxiety in northern Nigeria ... @@ -70,8 +70,8 @@ Script Content .EXAMPLE PS> ./watch-news.ps1 - UTC HEADLINES (by: https://www.yahoo.com/news/world) - --- ------------------------------------------------ + UTC HEADLINES (source: https://www.yahoo.com/news/world) + --- --------- 14:29 Niger coup: Ecowas deadline sparks anxiety in northern Nigeria ... .LINK @@ -89,7 +89,7 @@ function PrintLatestHeadlines([xml]$content, [string]$latestTimestamp, [string]$ foreach($item in $items) { $pubDate = $item.pubDate if ($pubDate -le $latestTimestamp) { continue } - $title = $item.title + $title = $item.title -replace "รข","'" $time = $pubDate.Substring(11, 5) Write-Host "$time $title$icon" Start-Sleep -milliseconds 500 @@ -102,10 +102,10 @@ try { [xml]$content = (Invoke-WebRequest -URI $URL -useBasicParsing).Content $title = $content.rss.channel.title.toUpper() $link = $content.rss.channel.link - Write-Host "`n UTC HEADLINES (by: " -noNewline + Write-Host "`n UTC HEADLINES (source: " -noNewline Write-Host $link -foregroundColor blue -noNewline Write-Host ")" - Write-Host " --- ------------------------------------------------" + Write-Host " --- ---------" $latestTimestamp = "2000-01-01" $icon = "" do { @@ -121,4 +121,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/watch-ping.md b/docs/watch-ping.md index 1cef1bc4..7ae2546b 100644 --- a/docs/watch-ping.md +++ b/docs/watch-ping.md @@ -6,7 +6,7 @@ This PowerShell script pings the given host continously and shows the roundtrip Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/watch-ping.ps1 [[-hostname] ] [[-timeInterval] ] [] +/Repos/PowerShell/scripts/watch-ping.ps1 [[-hostname] ] [[-timeInterval] ] [] -hostname Specifies the hostname or IP address to ping (windows.com by default) @@ -135,4 +135,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/weather-report.md b/docs/weather-report.md index 63ee666a..a911b372 100644 --- a/docs/weather-report.md +++ b/docs/weather-report.md @@ -6,7 +6,7 @@ This PowerShell script lists the local weather report. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/weather-report.ps1 [[-GeoLocation] ] [] +/Repos/PowerShell/scripts/weather-report.ps1 [[-GeoLocation] ] [] -GeoLocation Specifies the geographic location to use (determine automatically by default) @@ -66,4 +66,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/weather.md b/docs/weather.md index fbc4144d..4da02613 100644 --- a/docs/weather.md +++ b/docs/weather.md @@ -6,7 +6,7 @@ This PowerShell script lists the current weather forecast. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/weather.ps1 [[-GeoLocation] ] [] +/Repos/PowerShell/scripts/weather.ps1 [[-GeoLocation] ] [] -GeoLocation Specifies the geographic location to use @@ -66,4 +66,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/what-is.md b/docs/what-is.md index 0953b9c9..310c4369 100644 --- a/docs/what-is.md +++ b/docs/what-is.md @@ -6,7 +6,7 @@ This PowerShell script queries the meaning of the given term/abbreviation/etc. a Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/what-is.ps1 [[-term] ] [] +/Repos/PowerShell/scripts/what-is.ps1 [[-term] ] [] -term Specifies the term to query @@ -83,4 +83,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/windefender.md b/docs/windefender.md index 73e7e59b..93e30bb1 100644 --- a/docs/windefender.md +++ b/docs/windefender.md @@ -6,7 +6,7 @@ This script can enable / disable and show Windows defender real time monitoring! Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/windefender.ps1 [] +/Repos/PowerShell/scripts/windefender.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -82,4 +82,4 @@ break } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-animated.md b/docs/write-animated.md index 145436b7..90538397 100644 --- a/docs/write-animated.md +++ b/docs/write-animated.md @@ -6,7 +6,7 @@ This PowerShell script writes text centered and animated to the console. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-animated.ps1 [[-text] ] [[-speed] ] [] +/Repos/PowerShell/scripts/write-animated.ps1 [[-text] ] [[-speed] ] [] -text Specifies the text line to write ("Welcome to PowerShell" by default) @@ -92,4 +92,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-ascii-image.md b/docs/write-ascii-image.md index 3149d550..d2741565 100644 --- a/docs/write-ascii-image.md +++ b/docs/write-ascii-image.md @@ -61,4 +61,4 @@ WriteLine " '`--._,dd###pp='''" exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:01)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-big.md b/docs/write-big.md index 043b1e22..95e9718d 100644 --- a/docs/write-big.md +++ b/docs/write-big.md @@ -6,7 +6,7 @@ This PowerShell script writes the given text in big letters. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-big.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/write-big.ps1 [[-text] ] [] -text Specifies the text to write ("Hello World" by default) @@ -471,4 +471,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-blue.md b/docs/write-blue.md index 7f707095..65de74a8 100644 --- a/docs/write-blue.md +++ b/docs/write-blue.md @@ -6,7 +6,7 @@ This PowerShell script writes text in a blue foreground color. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-blue.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/write-blue.ps1 [[-text] ] [] -text Specifies the text to write @@ -64,4 +64,4 @@ write-host -foregroundColor blue "$text" exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-braille.md b/docs/write-braille.md index 2f06a7e1..05a7af3d 100644 --- a/docs/write-braille.md +++ b/docs/write-braille.md @@ -6,7 +6,7 @@ This PowerShell script writes text in Braille. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-braille.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/write-braille.ps1 [[-text] ] [] -text Specifies the text to write @@ -408,4 +408,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-centered.md b/docs/write-centered.md index e8286947..b8130fae 100644 --- a/docs/write-centered.md +++ b/docs/write-centered.md @@ -6,7 +6,7 @@ This PowerShell script writes the given text centered to the console. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-centered.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/write-centered.ps1 [[-text] ] [] -text Specifies the text to write @@ -76,4 +76,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-changelog.md b/docs/write-changelog.md index f18f86cf..282958f5 100644 --- a/docs/write-changelog.md +++ b/docs/write-changelog.md @@ -7,7 +7,7 @@ NOTE: For proper sorting the Git commits should start with verbs such as 'Add', Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-changelog.ps1 [[-RepoDir] ] [] +/Repos/PowerShell/scripts/write-changelog.ps1 [[-RepoDir] ] [] -RepoDir Specifies the path to the local Git repository (default is current working dir) @@ -30,8 +30,8 @@ PS> ./write-changelog.ps1 -Changelog of PowerShell -======================= +Changelog of Repo 'PowerShell' +============================== ... ``` @@ -58,8 +58,8 @@ Script Content .EXAMPLE PS> ./write-changelog.ps1 - Changelog of PowerShell - ======================= + Changelog of Repo 'PowerShell' + ============================== ... .LINK https://github.com/fleschutz/PowerShell @@ -89,25 +89,22 @@ try { Write-Progress "(5/6) Sorting the Git commit messages..." $new = @() - $fixes = @() - $updates = @() + $improved = @() + $fixed = @() $various = @() foreach($commit in $commits) { if ($commit -like "New*") { $new += $commit } elseif ($commit -like "Add*") { $new += $commit } elseif ($commit -like "Create*") { $new += $commit - } elseif ($commit -like "Fix*") { $fixes += $commit - } elseif ($commit -like "Hotfix*") { $fixes += $commit - } elseif ($commit -like "Bugfix*") { $fixes += $commit - } elseif ($commit -like "Update*") { $updates += $commit - } elseif ($commit -like "Updating*") { $updates += $commit - } elseif ($commit -like "Updaate*") { $updates += $commit - } elseif ($commit -like "Adapt*") { $updates += $commit - } elseif ($commit -like "Improve*") { $updates += $commit - } elseif ($commit -like "Change*") { $updates += $commit - } elseif ($commit -like "Changing*") { $updates += $commit - } else { - $various += $commit + } elseif ($commit -like "Upda*") { $improved += $commit + } elseif ($commit -like "Adapt*") { $improved += $commit + } elseif ($commit -like "Improve*") { $improved += $commit + } elseif ($commit -like "Change*") { $improved += $commit + } elseif ($commit -like "Changing*") { $improved += $commit + } elseif ($commit -like "Fix*") { $fixed += $commit + } elseif ($commit -like "Hotfix*") { $fixed += $commit + } elseif ($commit -like "Bugfix*") { $fixed += $commit + } else { $various += $commit } } Write-Progress "(6/6) Listing all contributors..." @@ -116,8 +113,8 @@ try { $Today = (Get-Date).ToShortDateString() Write-Output " " - Write-Output "Changelog of $RepoDirName as of $Today" - Write-Output "======================================" + Write-Output "Changelog of Repo '$RepoDirName'" + Write-Output "================================" Write-Output " " Write-Output "๐Ÿš€ New Features" Write-Output "---------------" @@ -125,18 +122,18 @@ try { Write-Output "* $c" } Write-Output " " - Write-Output "โš ๏ธ Bug Fixes" - Write-Output "------------" - foreach($c in $fixes) { - Write-Output "* $c" - } - Write-Output " " - Write-Output "๐ŸŽ‰ Updates" + Write-Output "๐ŸŽ‰ Improved" Write-Output "----------" - foreach($c in $updates) { + foreach($c in $improved) { Write-Output "* $c" } Write-Output " " + Write-Output "โš ๏ธ Fixed" + Write-Output "--------" + foreach($c in $fixed) { + Write-Output "* $c" + } + Write-Output " " Write-Output "๐Ÿ”ฆ Various" Write-Output "----------" foreach($c in $various) { @@ -148,6 +145,8 @@ try { foreach($c in $contributors) { Write-Output "* $c" } + Write-Output "" + Write-Output "Changelog as of $Today." exit 0 # success } catch { Write-Error $_.Exception.ToString() @@ -155,4 +154,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-chart.md b/docs/write-chart.md index 10503c58..d798c4fd 100644 --- a/docs/write-chart.md +++ b/docs/write-chart.md @@ -68,4 +68,4 @@ WriteChartLine "Tom" 30.9 100.0 exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-clock.md b/docs/write-clock.md index 093e2d13..ce6e07f6 100644 --- a/docs/write-clock.md +++ b/docs/write-clock.md @@ -6,7 +6,7 @@ This PowerShell script writes the current time as ASCII clock. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-clock.ps1 [] +/Repos/PowerShell/scripts/write-clock.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -73,4 +73,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-code.md b/docs/write-code.md index 11dec392..a30577eb 100644 --- a/docs/write-code.md +++ b/docs/write-code.md @@ -6,7 +6,7 @@ This PowerShell script generates and writes PowerShell code on the console (no A Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-code.ps1 [[-color] ] [[-speed] ] [] +/Repos/PowerShell/scripts/write-code.ps1 [[-color] ] [[-speed] ] [] -color Specifies the text color to use ("green" by default) @@ -118,4 +118,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-credits.md b/docs/write-credits.md index 75344a81..b842318b 100644 --- a/docs/write-credits.md +++ b/docs/write-credits.md @@ -6,7 +6,7 @@ This PowerShell script writes the credits for the PowerShell script collection. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-credits.ps1 [] +/Repos/PowerShell/scripts/write-credits.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -76,4 +76,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-date.md b/docs/write-date.md index b57e326a..20ba7907 100644 --- a/docs/write-date.md +++ b/docs/write-date.md @@ -6,7 +6,7 @@ This PowerShell script determines and writes the current date in US format. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-date.ps1 [] +/Repos/PowerShell/scripts/write-date.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-fractal.md b/docs/write-fractal.md index 3313363f..21f1e44f 100644 --- a/docs/write-fractal.md +++ b/docs/write-fractal.md @@ -79,4 +79,4 @@ while ($true) { exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-green.md b/docs/write-green.md index 1ea118eb..59d1fc35 100644 --- a/docs/write-green.md +++ b/docs/write-green.md @@ -6,7 +6,7 @@ This PowerShell script writes text in a green foreground color. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-green.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/write-green.ps1 [[-text] ] [] -text Specifies the text to write @@ -63,4 +63,4 @@ write-host -foregroundColor green "$text" exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-hands-off.md b/docs/write-hands-off.md index 4e4ca1e1..57b27580 100644 --- a/docs/write-hands-off.md +++ b/docs/write-hands-off.md @@ -6,7 +6,7 @@ This PowerShell script writes 'Hands Off' in BIG letters. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-hands-off.ps1 [] +/Repos/PowerShell/scripts/write-hands-off.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -67,4 +67,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-headline.md b/docs/write-headline.md index 2c8098af..a401acce 100644 --- a/docs/write-headline.md +++ b/docs/write-headline.md @@ -6,7 +6,7 @@ This PowerShell script writes the given text as a headline. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-headline.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/write-headline.ps1 [[-text] ] [] -text Specifies the text to write @@ -77,4 +77,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-help.md b/docs/write-help.md index ae57c885..c33cc2e7 100644 --- a/docs/write-help.md +++ b/docs/write-help.md @@ -47,7 +47,7 @@ try { White "โ–ˆโ–ˆโ–ˆโ–ˆโ–„โ–„ โ–„โ–ˆโ–„โ–„ โ–„โ–ˆโ–„โ–„ โ–ˆโ–€ โ–€โ–€โ–€ โ–€โ–„โ–€โ–„โ–ˆโ–„โ–€โ–ˆโ–ˆโ–ˆโ–ˆ`n" White "โ–ˆโ–ˆโ–ˆโ–ˆโ–€โ–„โ–„โ–ˆโ–€โ–ˆโ–„โ–ˆโ–ˆ โ–€ โ–„โ–„โ–€ โ–ˆโ–„โ–ˆโ–€ โ–€ โ–„โ–€โ–€โ–ˆโ–€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ Video tutorials: "; Blue "https://www.youtube.com/results?search_query=PowerShell`n" White "โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ–„โ–„โ–ˆโ–„โ–„โ–€โ–„ โ–€โ–„โ–€ โ–„โ–„ โ–€ โ–€โ–€โ–€ โ–€โ–„โ–„โ–ˆโ–€โ–ˆโ–ˆโ–ˆโ–ˆ`n" - White "โ–ˆโ–ˆโ–ˆโ–ˆโ–„ โ–€ โ–„ โ–„โ–„โ–ˆ โ–ˆโ–€โ–ˆโ–ˆโ–„ โ–ˆโ–ˆโ–€โ–„โ–ˆโ–„โ–„โ–€โ–„โ–„โ–€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ Execute: 'Get-Help ' to display information about `n" + White "โ–ˆโ–ˆโ–ˆโ–ˆโ–„ โ–€ โ–„ โ–„โ–„โ–ˆ โ–ˆโ–€โ–ˆโ–ˆโ–„ โ–ˆโ–ˆโ–€โ–„โ–ˆโ–„โ–„โ–€โ–„โ–„โ–€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ Type 'Get-Help ' to display information about `n" White "โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆโ–„โ–„ โ–„โ–ˆโ–„โ–„โ–„โ–ˆโ–ˆ โ–€ โ–€โ–€โ–€โ–€โ–„ โ–ˆโ–€โ–ˆโ–ˆโ–ˆโ–ˆ`n" White "โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–„ โ–„โ–€โ–€โ–ˆโ–ˆ โ–„โ–ˆ โ–„โ–„โ–„โ–ˆโ–€ โ–„โ–„ โ–ˆโ–ˆโ–„โ–€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ FAQ's: "; Blue "https://github.com/fleschutz/PowerShell/blob/main/docs/FAQ.md`n" White "โ–ˆโ–ˆโ–ˆโ–ˆโ–„โ–ˆโ–„โ–ˆโ–ˆโ–ˆโ–„โ–„โ–€โ–„โ–„โ–„โ–€ โ–„โ–„ โ–„โ–€โ–„ โ–„โ–„โ–„ โ–€ โ–ˆโ–ˆโ–ˆโ–ˆ`n" @@ -64,4 +64,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-in-emojis.md b/docs/write-in-emojis.md index e429994d..8a15ad99 100644 --- a/docs/write-in-emojis.md +++ b/docs/write-in-emojis.md @@ -6,7 +6,7 @@ This PowerShell script replaces certain words in the given text by Emojis and wr Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-in-emojis.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/write-in-emojis.ps1 [[-text] ] [] -text Specifies the text @@ -74,4 +74,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-joke.md b/docs/write-joke.md index 0f3294b2..91286804 100644 --- a/docs/write-joke.md +++ b/docs/write-joke.md @@ -6,7 +6,7 @@ This PowerShell script selects a random joke from Data/jokes.csv and writes it t Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-joke.ps1 [] +/Repos/PowerShell/scripts/write-joke.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -61,4 +61,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-location.md b/docs/write-location.md index 24a61dbe..3bc3d88a 100644 --- a/docs/write-location.md +++ b/docs/write-location.md @@ -6,7 +6,7 @@ This PowerShell script determines the location and writes it to the console. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-location.ps1 [] +/Repos/PowerShell/scripts/write-location.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -62,4 +62,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-lowercase.md b/docs/write-lowercase.md index caadf94a..e6932c07 100644 --- a/docs/write-lowercase.md +++ b/docs/write-lowercase.md @@ -6,7 +6,7 @@ This PowerShell script writes the given text in lowercase letters. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-lowercase.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/write-lowercase.ps1 [[-text] ] [] -text Specifies the text to write @@ -65,4 +65,4 @@ Write-Output $text.ToLower() exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-marquee.md b/docs/write-marquee.md index 2a5f9524..df8980a8 100644 --- a/docs/write-marquee.md +++ b/docs/write-marquee.md @@ -6,7 +6,7 @@ This PowerShell script writes the given text as marquee. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-marquee.ps1 [[-Text] ] [[-Speed] ] [] +/Repos/PowerShell/scripts/write-marquee.ps1 [[-Text] ] [[-Speed] ] [] -Text Specifies the text to write @@ -89,4 +89,4 @@ StartMarquee " exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-matrix.md b/docs/write-matrix.md index 4e663870..2f9d4504 100644 --- a/docs/write-matrix.md +++ b/docs/write-matrix.md @@ -81,4 +81,4 @@ exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-moon.md b/docs/write-moon.md index cf07a702..527c284d 100644 --- a/docs/write-moon.md +++ b/docs/write-moon.md @@ -6,7 +6,7 @@ This PowerShell script writes the current moon phase to the console. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-moon.ps1 [] +/Repos/PowerShell/scripts/write-moon.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -53,4 +53,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-morse-code.md b/docs/write-morse-code.md index 48f927c1..e2a0d2c9 100644 --- a/docs/write-morse-code.md +++ b/docs/write-morse-code.md @@ -6,7 +6,7 @@ This PowerShell script writes the given text in Morse code. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-morse-code.ps1 [[-text] ] [[-speed] ] [] +/Repos/PowerShell/scripts/write-morse-code.ps1 [[-text] ] [[-speed] ] [] -text Specifies the text to write @@ -153,4 +153,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-motd.md b/docs/write-motd.md index 3d3a0d2e..7ccf68de 100644 --- a/docs/write-motd.md +++ b/docs/write-motd.md @@ -6,7 +6,7 @@ This PowerShell script writes the message of the day (MOTD). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-motd.ps1 [] +/Repos/PowerShell/scripts/write-motd.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -140,4 +140,4 @@ Write-Host " 'VEzjt:;;z>*`` " -ForegroundColor Yellow exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-pi.md b/docs/write-pi.md index a4584918..7da3a7db 100644 --- a/docs/write-pi.md +++ b/docs/write-pi.md @@ -6,7 +6,7 @@ This PowerShell script calculates and writes the digits of the mathematical cons Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-pi.ps1 [[-digits] ] [] +/Repos/PowerShell/scripts/write-pi.ps1 [[-digits] ] [] -digits Specifies the number of digits to list (1000 by default) @@ -117,4 +117,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-qr-code.md b/docs/write-qr-code.md index 95d99f8f..b30ca8ca 100644 --- a/docs/write-qr-code.md +++ b/docs/write-qr-code.md @@ -6,7 +6,7 @@ This PowerShell script writes "Hello World" as QR code to the console output. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-qr-code.ps1 [] +/Repos/PowerShell/scripts/write-qr-code.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -65,4 +65,4 @@ Write-Host " " -foregroundColor black -backgroundCol exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-quote.md b/docs/write-quote.md index 78770e93..480fc6d9 100644 --- a/docs/write-quote.md +++ b/docs/write-quote.md @@ -6,7 +6,7 @@ This PowerShell script selects a random quote from .../data/quotes.csv and write Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-quote.ps1 [] +/Repos/PowerShell/scripts/write-quote.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -67,4 +67,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-red.md b/docs/write-red.md index 0838ac2e..eace7291 100644 --- a/docs/write-red.md +++ b/docs/write-red.md @@ -6,7 +6,7 @@ This PowerShell script writes text in a red foreground color. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-red.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/write-red.ps1 [[-text] ] [] -text Specifies the text to write @@ -63,4 +63,4 @@ write-host -foregroundcolor red "$text" exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-rot13.md b/docs/write-rot13.md index f72d92a3..596f87a4 100644 --- a/docs/write-rot13.md +++ b/docs/write-rot13.md @@ -6,7 +6,7 @@ This PowerShell script writes text encoded or decoded with ROT13. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-rot13.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/write-rot13.ps1 [[-text] ] [] -text Specifies the text to write @@ -82,4 +82,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-shit.md b/docs/write-shit.md index 3c0041d0..dea411a8 100644 --- a/docs/write-shit.md +++ b/docs/write-shit.md @@ -6,7 +6,7 @@ This PowerShell script writes shit to the console (fun). Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-shit.ps1 [] +/Repos/PowerShell/scripts/write-shit.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -50,4 +50,4 @@ Write-Output "๐Ÿ’ฉ" exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-sine-curves.md b/docs/write-sine-curves.md index ac893169..a983e6ed 100644 --- a/docs/write-sine-curves.md +++ b/docs/write-sine-curves.md @@ -6,7 +6,7 @@ This PowerShell script writes sine curves. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-sine-curves.ps1 [] +/Repos/PowerShell/scripts/write-sine-curves.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -56,4 +56,4 @@ Script Content } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-time.md b/docs/write-time.md index 86918bf9..6f9cdbed 100644 --- a/docs/write-time.md +++ b/docs/write-time.md @@ -6,7 +6,7 @@ This PowerShell script queries the current time and writes it in US format to th Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-time.ps1 [] +/Repos/PowerShell/scripts/write-time.ps1 [] [] This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, @@ -57,4 +57,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-typewriter.md b/docs/write-typewriter.md index e26dfc63..3d28fe42 100644 --- a/docs/write-typewriter.md +++ b/docs/write-typewriter.md @@ -6,28 +6,19 @@ This PowerShell script writes the given text with the typewriter effect. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-typewriter.ps1 [[-text] ] [[-speed] ] [] +/Repos/PowerShell/scripts/write-typewriter.ps1 [[-text] ] [[-speed] ] [] -text - Specifies the text to write + Specifies the text to write (sample text by default) Required? false Position? 1 - Default value Hello World - ----------- - * PowerShell is powerful - fully control your computer - * PowerShell is cross-platform - available for Linux, Mac OS and Windows - * PowerShell is open-source and free - * PowerShell is easy to learn - * PowerShell is fully documented - - Thanks for watching - Markus + Default value Hello World, this is the PowerShell typewriter. Accept pipeline input? false Accept wildcard characters? false -speed - Specifies the speed (250 ms by default) + Specifies the speed (200 ms by default) Required? false Position? 2 @@ -43,7 +34,7 @@ Parameters Example ------- ```powershell -PS> ./write-typewriter "Hello World" +PS> ./write-typewriter.ps1 "Hello World" ``` @@ -60,28 +51,28 @@ Script Content ```powershell <# .SYNOPSIS - Writes text รก la typewriter + Writes text like a typewriter .DESCRIPTION This PowerShell script writes the given text with the typewriter effect. .PARAMETER text - Specifies the text to write + Specifies the text to write (sample text by default) .PARAMETER speed - Specifies the speed (250 ms by default) + Specifies the speed (200 ms by default) .EXAMPLE - PS> ./write-typewriter "Hello World" + PS> ./write-typewriter.ps1 "Hello World" .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz | License: CC0 #> -param([string]$text = "`nHello World`n-----------`n* PowerShell is powerful - fully control your computer`n* PowerShell is cross-platform - available for Linux, Mac OS and Windows`n* PowerShell is open-source and free`n* PowerShell is easy to learn`n* PowerShell is fully documented`n`nThanks for watching`nMarkus`n", [int]$speed = 200) # in milliseconds +param([string]$text = "Hello World, this is the PowerShell typewriter.", [int]$speed = 200) # in milliseconds try { $Random = New-Object System.Random $text -split '' | ForEach-Object { - Write-Host -noNewline $_ - Start-Sleep -milliseconds $(1 + $Random.Next($speed)) + Write-Host $_ -noNewline + Start-Sleep -milliseconds $Random.Next($speed) } Write-Host "" exit 0 # success @@ -91,4 +82,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-uppercase.md b/docs/write-uppercase.md index ef831a6c..1e258983 100644 --- a/docs/write-uppercase.md +++ b/docs/write-uppercase.md @@ -6,7 +6,7 @@ This PowerShell script writes the given text in uppercase letters. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-uppercase.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/write-uppercase.ps1 [[-text] ] [] -text Specifies the text to write (ask user by default) @@ -65,4 +65,4 @@ Write-Output $text.ToUpper() exit 0 # success ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-value.md b/docs/write-value.md new file mode 100644 index 00000000..fdf55791 --- /dev/null +++ b/docs/write-value.md @@ -0,0 +1,150 @@ +The *write-value.ps1* Script +=========================== + +This PowerShell script writes the given value with the unit and the value range to the console. + +Parameters +---------- +```powershell +/Repos/PowerShell/scripts/write-value.ps1 [[-value] ] [[-unit] ] [[-redMin] ] [[-yellowMin] ] [[-yellowMax] ] [[-redMax] ] [] + +-value + Specifies the value + + Required? false + Position? 1 + Default value 0.5 + Accept pipeline input? false + Accept wildcard characters? false + +-unit + + Required? false + Position? 2 + Default value Mach + Accept pipeline input? false + Accept wildcard characters? false + +-redMin + + Required? false + Position? 3 + Default value 0 + Accept pipeline input? false + Accept wildcard characters? false + +-yellowMin + + Required? false + Position? 4 + Default value 0 + Accept pipeline input? false + Accept wildcard characters? false + +-yellowMax + + Required? false + Position? 5 + Default value 0 + Accept pipeline input? false + Accept wildcard characters? false + +-redMax + + Required? false + Position? 6 + Default value 0 + 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> ./write-value.ps1 95.0 "ยฐC" 0 10 90 100 +[0--------95ยฐC-100] + +``` + +Notes +----- +Author: Markus Fleschutz | License: CC0 + +Related Links +------------- +https://github.com/fleschutz/PowerShell + +Script Content +-------------- +```powershell +<# +.SYNOPSIS + Writes a value with unit and range +.DESCRIPTION + This PowerShell script writes the given value with the unit and the value range to the console. +.PARAMETER value + Specifies the value +.EXAMPLE + PS> ./write-value.ps1 95.0 "ยฐC" 0 10 90 100 + [0--------95ยฐC-100] +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz | License: CC0 +#> + +param([float]$value = 0.5, [string]$unit = "Mach", [float]$redMin, [float]$yellowMin, [float]$yellowMax, [float]$redMax) + +function WriteValueInRange([float]$value, [string]$unit, [float]$redMin, [float]$yellowMin, [float]$yellowMax, [float]$redMax) { + $line = "------------------------------------------------" + $text = "[$redMin$($value)$unit $redMax]" + [float]$total = 20.0 - $text.Length + if ($value -gt $redMax) { + Write-Host "[$redMin$($line.Substring(0, $total))$redMax]" -noNewline + Write-Host "$($value)$unit " -noNewline -foregroundColor red + } elseif ($value -lt $redMin) { + Write-Host "$($value)$unit" -noNewline -foregroundColor red + Write-Host "[$redMin$($line.Substring(0, $total))$redMax] " -noNewline + } else { + [float]$leftSide = (($value - $redMin) * $total) / ($redMax - $redMin) + if ($leftSide -lt 1.0) { $leftSide = 1.0 } + if ($leftSide -gt ($total - 1.0)) { $leftSide = $total - 1.0 } + Write-Host "[$redMin$($line.Substring(0, $leftSide))" -noNewline + if (($value -le $yellowMin) -or ($value -ge $yellowMax)) { + Write-Host "$($value)$unit" -noNewline -foregroundColor yellow + } else { + Write-Host "$($value)$unit" -noNewline -foregroundColor green + } + Write-Host "$($line.Substring(0, $total - $leftSide + 0.49))$redMax] " -noNewline + } +} + +WriteValueInRange -3.5 "ยฐC" 0 10 90 100 +Write-Host "CPU too cold" + +WriteValueInRange 5 "ยฐC" 0 10 90 100 +Write-Host "CPU quite cold" + +WriteValueInRange 15 "ยฐC" 0 10 90 100 +Write-Host "OK" + +WriteValueInRange 50 "ยฐC" 0 10 90 100 +Write-Host "OK" + +WriteValueInRange 70 "ยฐC" 0 10 90 100 +Write-Host "OK" + +WriteValueInRange 95 "ยฐC" 0 10 90 100 +Write-Host "CPU quite hot " + +WriteValueInRange 110 "ยฐC" 0 10 90 100 +Write-Host "CPU too hot " + +exit 0 # success +``` + +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-vertical.md b/docs/write-vertical.md index 77067a80..81d3d783 100644 --- a/docs/write-vertical.md +++ b/docs/write-vertical.md @@ -6,7 +6,7 @@ This PowerShell script writes text in vertical direction. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-vertical.ps1 [[-text] ] [] +/Repos/PowerShell/scripts/write-vertical.ps1 [[-text] ] [] -text Specifies the text to write @@ -71,4 +71,4 @@ try { } ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/docs/write-xmas-tree.md b/docs/write-xmas-tree.md index 99edb87c..1b1bec58 100644 --- a/docs/write-xmas-tree.md +++ b/docs/write-xmas-tree.md @@ -6,7 +6,7 @@ This PowerShell script writes a christmas tree to the terminal. Parameters ---------- ```powershell -/home/markus/Repos/PowerShell/scripts/write-xmas-tree.ps1 [[-Size] ] [[-XPos] ] [[-colors] ] [[-Idx] ] [[-count] ] [[-duration] ] [] +/Repos/PowerShell/scripts/write-xmas-tree.ps1 [[-Size] ] [[-XPos] ] [[-colors] ] [[-Idx] ] [[-count] ] [[-duration] ] [] -Size @@ -126,4 +126,4 @@ do { ``` -*(generated by convert-ps2md.ps1 as of 11/20/2024 11:52:02)* +*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:58)* diff --git a/scripts/convert-ps2md.ps1 b/scripts/convert-ps2md.ps1 index 308be3e3..663718fa 100755 --- a/scripts/convert-ps2md.ps1 +++ b/scripts/convert-ps2md.ps1 @@ -136,7 +136,7 @@ try { "``````" "" $now = [datetime]::Now - "*(generated by convert-ps2md.ps1 as of $now)*" + "*(page generated by convert-ps2md.ps1 as of $now)*" } catch { "โš ๏ธ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" exit 1