1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-07-05 23:20:04 +02:00

Replaced the done character

This commit is contained in:
Markus Fleschutz
2024-10-01 13:37:53 +02:00
parent c43e787025
commit fd963889d2
600 changed files with 743 additions and 769 deletions
scripts
add-firewall-rules.ps1alert.ps1build-repo.ps1build-repos.ps1cd-autostart.ps1cd-crashdumps.ps1cd-desktop.ps1cd-docs.ps1cd-downloads.ps1cd-dropbox.ps1cd-etc.ps1cd-fonts.ps1cd-home.ps1cd-logs.ps1cd-music.ps1cd-onedrive.ps1cd-pics.ps1cd-public.ps1cd-recent.ps1cd-recycle-bin.ps1cd-repo.ps1cd-repos.ps1cd-root.ps1cd-screenshots.ps1cd-scripts.ps1cd-ssh.ps1cd-temp.ps1cd-templates.ps1cd-trash.ps1cd-up.ps1cd-up2.ps1cd-up3.ps1cd-up4.ps1cd-users.ps1cd-videos.ps1cd-windows.ps1change-wallpaper.ps1check-admin.ps1check-apps.ps1check-bios.ps1check-cpu.ps1check-credentials.ps1check-day.ps1check-dns.ps1check-drive-space.ps1check-drives.ps1check-dusk.ps1check-easter-sunday.ps1check-file-system.ps1check-file.ps1check-firewall.ps1check-gpu.ps1check-hardware.ps1check-health.ps1check-independence-day.ps1check-ipv4-address.ps1check-ipv6-address.ps1check-iss-position.ps1check-mac-address.ps1check-midnight.ps1check-month.ps1check-moon-phase.ps1check-network.ps1check-noon.ps1check-os.ps1check-outlook.ps1check-password.ps1check-pending-reboot.ps1check-pnp-devices.ps1check-power.ps1check-powershell.ps1check-ps1-file.ps1check-ram.ps1check-repo.ps1check-repos.ps1check-santa.ps1check-smart-devices.ps1check-software.ps1check-subnet-mask.ps1check-swap-space.ps1check-symlinks.ps1check-time-zone.ps1check-uptime.ps1check-vpn.ps1check-weather.ps1check-week.ps1check-wind.ps1check-windows-system-files.ps1check-xml-file.ps1check-xml-files.ps1clean-repo.ps1clean-repos.ps1clear-dns-cache.ps1clear-recycle-bin.ps1clone-repos.ps1clone-shallow.ps1close-calculator.ps1close-chrome.ps1close-cortana.ps1close-edge.ps1close-file-explorer.ps1close-firefox.ps1close-git-extensions.ps1close-magnifier.ps1close-microsoft-paint.ps1close-microsoft-store.ps1close-netflix.ps1close-notepad.ps1close-obs-studio.ps1close-one-calendar.ps1close-outlook.ps1close-paint-three-d.ps1close-program.ps1close-serenade.ps1close-snipping-tool.ps1close-spotify.ps1close-task-manager.ps1close-three-d-viewer.ps1close-thunderbird.ps1close-visual-studio.ps1close-vlc.ps1close-windows-terminal.ps1configure-git.ps1connect-vpn.ps1convert-csv2txt.ps1convert-dir2zip.ps1convert-docx2md.ps1convert-frames2mp4.ps1convert-image2ascii.ps1convert-image2blurred-frames.ps1convert-image2pixelated-frames.ps1convert-md2docx.ps1convert-md2html.ps1convert-md2pdf.ps1convert-mysql2csv.ps1convert-ps2bat.ps1convert-ps2md.ps1convert-sql2csv.ps1convert-txt2wav.ps1copy-photos-sorted.ps1count-characters.ps1count-lines.ps1decrypt-file.ps1disable-ipv6.ps1disconnect-vpn.ps1download-dir.ps1download-file.ps1edit.ps1enable-crash-dumps.ps1enable-god-mode.ps1enable-ipv6.ps1encrypt-file.ps1enter-chat.ps1export-to-manuals.ps1fetch-repo.ps1fetch-repos.ps1firefox-installer.ps1get-md5.ps1get-sha1.ps1get-sha256.ps1hibernate.ps1inspect-exe.ps1install-audacity.ps1install-basic-apps.ps1install-basic-snaps.ps1install-calibre-server.ps1install-chocolatey.ps1install-chrome.ps1install-crystal-disk-info.ps1install-crystal-disk-mark.ps1install-discord.ps1install-edge.ps1install-evcc.ps1install-firefox.ps1install-git-extensions.ps1install-git-for-windows.ps1install-github-cli.ps1install-irfanview.ps1install-knot-resolver.ps1install-microsoft-teams.ps1install-netflix.ps1install-nine-zip.ps1install-obs-studio.ps1install-octoprint.ps1install-one-calendar.ps1install-opera-browser.ps1install-opera-gx.ps1install-paint-3d.ps1install-power-toys.ps1install-powershell.ps1install-rufus.ps1install-signal-cli.ps1install-skype.ps1install-spotify.ps1install-ssh-client.ps1install-ssh-server.ps1install-thunderbird.ps1install-twitter.ps1install-unbound-server.ps1install-updates.ps1install-visual-studio-code.ps1install-vivaldi.ps1install-vlc.ps1install-windows-terminal.ps1install-wsl.ps1install-zoom.ps1introduce-powershell.ps1list-aliases.ps1list-anagrams.ps1list-apps.ps1list-ascii-table.ps1list-automatic-variables.ps1list-battery-status.ps1list-bios.ps1list-bluetooth-devices.ps1list-branches.ps1list-calendar.ps1list-cheat-sheet.ps1list-city-weather.ps1list-cli-tools.ps1list-clipboard.ps1list-cmdlets.ps1list-coffee-prices.ps1list-commit-stats.ps1list-commits.ps1list-console-colors.ps1list-countries.ps1list-cpu.ps1list-credits.ps1list-crypto-rates.ps1list-defender-settings.ps1list-dir-tree.ps1list-dns-servers.ps1list-drives.ps1list-earthquakes.ps1list-empty-dirs.ps1list-empty-files.ps1list-encrypted-files.ps1list-environment-variables.ps1list-exchange-rates.ps1list-executables.ps1list-fibonacci.ps1list-files.ps1list-folder.ps1list-fritzbox-calls.ps1list-fritzbox-devices.ps1list-headlines.ps1list-hidden-files.ps1list-installed-languages.ps1list-installed-scripts.ps1list-installed-software.ps1list-ip-addresses.ps1list-ipv6.ps1list-latest-tag.ps1list-latest-tags.ps1list-memos.ps1list-motherboard.ps1list-mysql-tables.ps1list-network-connections.ps1list-network-neighbors.ps1list-network-routes.ps1list-network-shares.ps1list-news.ps1list-nic.ps1list-nina-warnings.ps1list-os-releases.ps1list-os-updates.ps1list-os.ps1list-outlook-inbox.ps1list-outlook-sent.ps1list-passwords.ps1list-pi.ps1list-pins.ps1list-power-schemes.ps1list-powershell-modules.ps1list-powershell-profiles.ps1list-powershell-verbs.ps1list-print-jobs.ps1list-printers.ps1list-processes.ps1list-pull-requests.ps1list-ram.ps1list-read-only-files.ps1list-recycle-bin.ps1list-repos.ps1list-scripts.ps1list-scsi-devices.ps1list-services.ps1list-special-folders.ps1list-sql-tables.ps1list-ssh-key.ps1list-submodules.ps1list-suggestions.ps1list-system-devices.ps1list-system-files.ps1list-system-info.ps1list-tags.ps1list-tasks.ps1list-timezone.ps1list-timezones.ps1list-tiobe-index.ps1list-unused-files.ps1list-updates.ps1list-usb-devices.ps1list-user-accounts.ps1list-user-groups.ps1list-voices.ps1list-weather.ps1list-wifi.ps1list-window-titles.ps1list-workdir.ps1list-wsl-distros.ps1locate-city.ps1locate-ipaddress.ps1locate-my-phone.ps1locate-zip-code.ps1lock-desktop.ps1log-off.ps1make-install.ps1measure-BubbleSort.ps1measure-BucketSort.ps1measure-CountingSort.ps1measure-HeapSort.ps1measure-InsertionSort.ps1measure-MergeSort.ps1measure-QuickSort.ps1measure-SelectionSort.ps1measure-sorting-algorithms.ps1merry-christmas.ps1minimize-all-windows.ps1move-mouse-pointer.ps1my-profile.ps1new-branch.ps1new-dir.ps1new-email.ps1new-qrcode.ps1new-script.ps1new-shortcut.ps1new-ssh-key.ps1new-symlink.ps1new-tag.ps1new-user.ps1on-desktop-login.ps1open-URL.ps1open-apps-folder.ps1open-auto-start-folder.ps1open-bing-maps.ps1open-booking-com.ps1open-c-drive.ps1open-calculator.ps1open-chrome.ps1open-clock.ps1open-cortana.ps1open-d-drive.ps1open-dashboards.ps1open-deep-l-translator.ps1open-default-browser.ps1open-desktop-folder.ps1open-documents-folder.ps1open-downloads-folder.ps1open-dropbox-folder.ps1open-duck-duck-go.ps1open-e-drive.ps1open-edge.ps1open-egg-timer.ps1open-email-client.ps1open-f-drive.ps1open-file-explorer.ps1open-fire-place.ps1open-firefox.ps1open-flight-radar.ps1open-g-drive.ps1open-git-extensions.ps1open-google-books.ps1open-google-calendar.ps1open-google-contacts.ps1open-google-docs.ps1open-google-earth.ps1open-google-mail.ps1open-google-maps.ps1open-google-news.ps1open-google-photos.ps1open-google-play.ps1open-google-search.ps1open-google-stadia.ps1open-google-translate.ps1open-home-folder.ps1open-internet-archive.ps1open-jitsi-meet.ps1open-m-drive.ps1open-magnifier.ps1open-microsoft-paint.ps1open-microsoft-solitaire.ps1open-microsoft-store.ps1open-microsoft-teams.ps1open-music-folder.ps1open-netflix.ps1open-notepad.ps1open-obs-studio.ps1open-office-365.ps1open-one-drive-folder.ps1open-outlook.ps1open-paint-three-d.ps1open-pictures-folder.ps1open-rdp.ps1open-recycle-bin-folder.ps1open-remote-desktop.ps1open-repos-folder.ps1open-screen-clip.ps1open-screen-sketch.ps1open-skype.ps1open-snipping-tool.ps1open-speed-test.ps1open-spotify.ps1open-stack-overflow.ps1open-start-page.ps1open-street-map.ps1open-task-manager.ps1open-temporary-folder.ps1open-three-d-viewer.ps1open-thunderbird.ps1open-videos-folders.ps1open-visual-studio.ps1open-vpn-settings.ps1open-windows-defender.ps1open-windows-terminal.ps1open-xing.ps1pick-commit.ps1ping-host.ps1ping-local-hosts.ps1ping-remote-hosts.ps1ping-weather.ps1play-bee-sound.ps1play-beep-sound.ps1play-big-ben.ps1play-cat-sound.ps1play-cow-sound.ps1play-dog-sound.ps1play-donkey-sound.ps1play-elephant-sound.ps1play-elk-sound.ps1play-files.ps1play-frog-sound.ps1play-goat-sound.ps1play-gorilla-sound.ps1play-happy-birthday.ps1play-horse-sound.ps1play-imperial-march.ps1play-jingle-bells.ps1play-lion-sound.ps1play-m3u.ps1play-mission-impossible.ps1play-mp3.ps1play-parrot-sound.ps1play-pig-sound.ps1play-pong.ps1play-rattlesnake-sound.ps1play-rick.ps1play-snake.ps1play-super-mario.ps1play-system-sounds.ps1play-tetris-melody.ps1play-vulture-sound.ps1play-wolf-sound.ps1poweroff.ps1print-image.ps1publish-to-ipfs.ps1pull-repo.ps1pull-repos.ps1query-smart-data.ps1reboot-fritzbox.ps1reboot.ps1remember.ps1remind-me.ps1remove-empty-dirs.ps1remove-old-dirs.ps1remove-print-jobs.ps1remove-tag.ps1remove-user.ps1replace-in-files.ps1restart-network-adapters.ps1roll-a-dice.ps1save-credentials.ps1save-screenshot.ps1scan-ports.ps1search-filename.ps1search-files.ps1search-repo.ps1send-email.ps1send-tcp.ps1send-udp.ps1set-timer.ps1set-volume.ps1set-wallpaper.ps1show-lightnings.ps1show-notification.ps1show-traffic.ps1simulate-presence.ps1smart-data2csv.ps1speak-arabic.ps1speak-checklist.ps1speak-countdown.ps1speak-croatian.ps1speak-danish.ps1speak-dutch.ps1speak-english.ps1speak-epub.ps1speak-esperanto.ps1speak-file.ps1speak-finnish.ps1speak-french.ps1speak-german.ps1speak-greek.ps1speak-hebrew.ps1speak-hindi.ps1speak-italian.ps1speak-japanese.ps1speak-korean.ps1speak-latin.ps1speak-mandarin.ps1speak-norwegian.ps1speak-polish.ps1speak-portuguese.ps1speak-russian.ps1speak-spanish.ps1speak-swedish.ps1speak-test.ps1speak-text.ps1speak-thai.ps1speak-turkish.ps1speak-ukrainian.ps1spell-word.ps1start-ipfs-server.ps1suspend.ps1switch-branch.ps1switch-shelly1.ps1switch-tabs.ps1sync-folder.ps1sync-repo.ps1tell-joke.ps1tell-new-year.ps1tell-quote.ps1toggle-caps-lock.ps1toggle-num-lock.ps1toggle-scroll-lock.ps1translate-file.ps1translate-files.ps1translate-text.ps1turn-volume-down.ps1turn-volume-fully-up.ps1turn-volume-off.ps1turn-volume-on.ps1turn-volume-up.ps1uninstall-all-apps.ps1uninstall-bloatware.ps1update-powershell-profile.ps1upgrade-ubuntu.ps1upload-file.ps1upload-to-dropbox.ps1wake-up.ps1watch-commits.ps1watch-file.ps1watch-news.ps1weather-report.ps1weather.ps1what-is.ps1windefender.ps1write-animated.ps1write-ascii-image.ps1write-big.ps1write-blue.ps1write-braille.ps1write-centered.ps1write-changelog.ps1write-chart.ps1write-clock.ps1write-code.ps1write-date.ps1write-fractal.ps1write-green.ps1write-headline.ps1write-help.ps1write-in-emojis.ps1write-joke.ps1write-lowercase.ps1write-marquee.ps1write-matrix.ps1write-moon.ps1write-morse-code.ps1write-motd.ps1write-qr-code.ps1write-quote.ps1write-red.ps1write-rot13.ps1write-shit.ps1write-sine-curves.ps1write-time.ps1write-typewriter.ps1write-uppercase.ps1write-vertical.ps1

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Adds firewall rules for executables (needs admin rights). Adds firewall rules for executables (needs admin rights).
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Handles and escalates an alert Handles and escalates an alert
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Builds a repository Builds a repository
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Builds Git repositories Builds Git repositories
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's autostart folder Sets the working directory to the user's autostart folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Change to the crash dumps folder Change to the crash dumps folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's desktop folder Sets the working directory to the user's desktop folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the documents folder Sets the working directory to the documents folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's downloads folder Sets the working directory to the user's downloads folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's Dropbox folder Sets the working directory to the user's Dropbox folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Changes to the /etc directory Changes to the /etc directory
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the fonts folder Sets the working directory to the fonts folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's home folder Sets the working directory to the user's home folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the logs folder Sets the working directory to the logs folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's music folder Sets the working directory to the user's music folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's OneDrive folder Sets the working directory to the user's OneDrive folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's pictures folder Sets the working directory to the user's pictures folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the Public folder Sets the working directory to the Public folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the 'recent' folder Sets the working directory to the 'recent' folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the recycle bin folder Sets the working directory to the recycle bin folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to a repository Sets the working directory to a repository
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's repos folder Sets the working directory to the user's repos folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the root directory Sets the working directory to the root directory
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's screenshots folder Sets the working directory to the user's screenshots folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the PowerShell scripts folder Sets the working directory to the PowerShell scripts folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's SSH folder Sets the working directory to the user's SSH folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the temporary folder Sets the working directory to the temporary folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the templates folder Sets the working directory to the templates folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the trash folder Sets the working directory to the trash folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to one level up Sets the working directory to one level up
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to two directory levels up Sets the working directory to two directory levels up
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to three directory levels up Sets the working directory to three directory levels up
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to four directory levels up Sets the working directory to four directory levels up
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the users directory Sets the working directory to the users directory
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's videos folder Sets the working directory to the user's videos folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the Windows directory Sets the working directory to the Windows directory
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Changes the wallpaper Changes the wallpaper
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Check for admin rights Check for admin rights
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Query the app status Query the app status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the BIOS status Checks the BIOS status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the CPU status Checks the CPU status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks credentials Checks credentials
.DESCRIPTION .DESCRIPTION
@ -8,7 +8,7 @@
.EXAMPLE .EXAMPLE
PS> ./check-credentials.ps1 PS> ./check-credentials.ps1
Enter username and password, please. Enter username and password, please.
✔️ Your credentials are correct. Your credentials are correct.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -30,7 +30,7 @@ try {
$pw2 = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($credsFromFile.Password)) $pw2 = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($credsFromFile.Password))
if ($pw1 -cne $pw2) { throw "Sorry, your password is wrong." } if ($pw1 -cne $pw2) { throw "Sorry, your password is wrong." }
"✔️ Your credentials are correct." " Your credentials are correct."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

@ -1,11 +1,11 @@
<# <#
.SYNOPSIS .SYNOPSIS
Determines the current day Determines the current day
.DESCRIPTION .DESCRIPTION
This PowerShell script determines and speaks the current day by text-to-speech (TTS). This PowerShell script determines and speaks the current day by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-day PS> ./check-day
✔️ It's Sunday. It's Sunday.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Check the DNS resolution Check the DNS resolution
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the drive space Checks the drive space
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the drive space Checks the drive space
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time of dusk Checks the time of dusk
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time until Easter Sunday Checks the time until Easter Sunday
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the file system of a drive (needs admin rights) Checks the file system of a drive (needs admin rights)
.DESCRIPTION .DESCRIPTION
@ -7,7 +7,7 @@
Specifies the drive to check Specifies the drive to check
.EXAMPLE .EXAMPLE
PS> ./check-file-system C PS> ./check-file-system C
✔️ file system on drive C is clean file system on drive C is clean
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks a file Checks a file
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the firewall status Checks the firewall status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the GPU status Checks the GPU status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the hardware Checks the hardware
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the system health Checks the system health
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time until Independence Day Checks the time until Independence Day
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks an IPv4 address for validity Checks an IPv4 address for validity
.DESCRIPTION .DESCRIPTION
@ -7,7 +7,7 @@
Specifies the IPv4 address to check Specifies the IPv4 address to check
.EXAMPLE .EXAMPLE
PS> ./check-ipv4-address 192.168.11.22 PS> ./check-ipv4-address 192.168.11.22
✔️ IPv4 192.168.11.22 is valid IPv4 192.168.11.22 is valid
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -29,7 +29,7 @@ try {
if ($Address -eq "" ) { $Address = read-host "Enter IPv4 address to validate" } if ($Address -eq "" ) { $Address = read-host "Enter IPv4 address to validate" }
if (IsIPv4AddressValid $Address) { if (IsIPv4AddressValid $Address) {
"✔️ IPv4 $Address is valid" " IPv4 $Address is valid"
exit 0 # success exit 0 # success
} else { } else {
write-warning "Invalid IPv4 address: $Address" write-warning "Invalid IPv4 address: $Address"

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks an IPv6 address for validity Checks an IPv6 address for validity
.DESCRIPTION .DESCRIPTION
@ -7,7 +7,7 @@
Specifies the IPv6 address to check Specifies the IPv6 address to check
.EXAMPLE .EXAMPLE
PS> ./check-ipv6-address fe80::200:5aee:feaa:20a2 PS> ./check-ipv6-address fe80::200:5aee:feaa:20a2
✔️ IPv6 fe80::200:5aee:feaa:20a2 is valid IPv6 fe80::200:5aee:feaa:20a2 is valid
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -43,7 +43,7 @@ try {
$Address = read-host "Enter IPv6 address to validate" $Address = read-host "Enter IPv6 address to validate"
} }
if (IsIPv6AddressValid $Address) { if (IsIPv6AddressValid $Address) {
"✔️ IPv6 $Address is valid" " IPv6 $Address is valid"
exit 0 # success exit 0 # success
} else { } else {
write-warning "Invalid IPv6 address: $Address" write-warning "Invalid IPv6 address: $Address"

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the ISS position Checks the ISS position
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the given MAC address for validity Checks the given MAC address for validity
.DESCRIPTION .DESCRIPTION
@ -8,7 +8,7 @@
Specifies the MAC address to check Specifies the MAC address to check
.EXAMPLE .EXAMPLE
PS> ./check-mac-address 11:22:33:44:55:66 PS> ./check-mac-address 11:22:33:44:55:66
✔️ MAC address 11:22:33:44:55:66 is valid MAC address 11:22:33:44:55:66 is valid
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -31,7 +31,7 @@ try {
$MAC = read-host "Enter MAC address to validate" $MAC = read-host "Enter MAC address to validate"
} }
if (IsMACAddressValid $MAC) { if (IsMACAddressValid $MAC) {
"✔️ MAC address $MAC is valid" " MAC address $MAC is valid"
exit 0 # success exit 0 # success
} else { } else {
write-warning "Invalid MAC address: $MAC" write-warning "Invalid MAC address: $MAC"

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks for Midnight Checks for Midnight
.DESCRIPTION .DESCRIPTION

@ -1,11 +1,11 @@
<# <#
.SYNOPSIS .SYNOPSIS
Gets the current month name Gets the current month name
.DESCRIPTION .DESCRIPTION
This PowerShell script determines and speaks the current month name by text-to-speech (TTS). This PowerShell script determines and speaks the current month name by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-month PS> ./check-month
✔️ It's December. It's December.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the Moon phase Checks the Moon phase
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the network details Checks the network details
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks for Noon Checks for Noon
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the OS status Checks the OS status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks Outlook's inbox Checks Outlook's inbox
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks a password Checks a password
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Check for pending reboots Check for pending reboots
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks PnP devices Checks PnP devices
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the power status Checks the power status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Check the PowerShell status Check the PowerShell status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks PowerShell file(s) for validity Checks PowerShell file(s) for validity
.DESCRIPTION .DESCRIPTION
@ -7,7 +7,7 @@
Specifies the file pattern to the PowerShell file(s) Specifies the file pattern to the PowerShell file(s)
.EXAMPLE .EXAMPLE
PS> ./check-ps1-file *.ps1 PS> ./check-ps1-file *.ps1
✔️ Valid PowerShell in myfile.ps1 Valid PowerShell in myfile.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -24,7 +24,7 @@ try {
$syntaxError = @() $syntaxError = @()
[void][System.Management.Automation.Language.Parser]::ParseFile($file, [ref]$null, [ref]$syntaxError) [void][System.Management.Automation.Language.Parser]::ParseFile($file, [ref]$null, [ref]$syntaxError)
if ("$syntaxError" -ne "") { throw "$syntaxError" } if ("$syntaxError" -ne "") { throw "$syntaxError" }
"✔️ Valid PowerShell in $($file.Name)" " Valid PowerShell in $($file.Name)"
} }
exit 0 # success exit 0 # success
} catch { } catch {

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the RAM Checks the RAM
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks a Git repository Checks a Git repository
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks Git repositories Checks Git repositories
.DESCRIPTION .DESCRIPTION
@ -10,7 +10,7 @@
⏳ Checking parent folder 📂C:\Repos... 16 subfolders ⏳ Checking parent folder 📂C:\Repos... 16 subfolders
⏳ Checking 📂rust repository (1/16)... ⏳ Checking 📂rust repository (1/16)...
... ...
✔️ Checked all 16 Git repos in 📂C:\Repos in 356s. Checked all 16 Git repos in 📂C:\Repos in 356s.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time until Saint Nicholas Day Checks the time until Saint Nicholas Day
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the SMART device status Checks the SMART device status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the software Checks the software
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the given subnet mask for validity Checks the given subnet mask for validity
.DESCRIPTION .DESCRIPTION
@ -7,7 +7,7 @@
Specifies the subnet mask to check Specifies the subnet mask to check
.EXAMPLE .EXAMPLE
PS> ./check-subnet-mask.ps1 255.255.255.0 PS> ./check-subnet-mask.ps1 255.255.255.0
✔️ subnet mask 255.255.255.0 is valid subnet mask 255.255.255.0 is valid
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -29,7 +29,7 @@ try {
if ($address -eq "" ) { $address = read-host "Enter subnet mask to validate" } if ($address -eq "" ) { $address = read-host "Enter subnet mask to validate" }
if (IsSubNetMaskValid $address) { if (IsSubNetMaskValid $address) {
"✔️ subnet mask $Address is valid" " subnet mask $Address is valid"
exit 0 # success exit 0 # success
} else { } else {
write-warning "Invalid subnet mask: $address" write-warning "Invalid subnet mask: $address"

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the swap space Checks the swap space
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks symlinks in a folder Checks symlinks in a folder
.DESCRIPTION .DESCRIPTION
@ -9,7 +9,7 @@
.EXAMPLE .EXAMPLE
PS> ./check-symlinks C:\Users PS> ./check-symlinks C:\Users
⏳ Checking symlinks at 📂C:\Users including subfolders... ⏳ Checking symlinks at 📂C:\Users including subfolders...
✔️ Found 0 broken symlinks at 📂C:\Users in 60 sec Found 0 broken symlinks at 📂C:\Users in 60 sec
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -42,11 +42,11 @@ try {
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
if ($NumTotal -eq 0) { if ($NumTotal -eq 0) {
"✔️ No symlink found at 📂$FullPath in $Elapsed sec" " No symlink found at 📂$FullPath in $Elapsed sec"
} elseif ($NumBroken -eq 1) { } elseif ($NumBroken -eq 1) {
"✔️ Found $NumBroken broken symlink at 📂$FullPath in $Elapsed sec" " Found $NumBroken broken symlink at 📂$FullPath in $Elapsed sec"
} else { } else {
"✔️ Found $NumBroken broken symlinks at 📂$FullPath in $Elapsed sec" " Found $NumBroken broken symlinks at 📂$FullPath in $Elapsed sec"
} }
exit $NumBroken exit $NumBroken
} catch { } catch {

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time zone Checks the time zone
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the uptime Checks the uptime
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the VPN status Checks the VPN status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the weather Checks the weather
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Determines the week number Determines the week number
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the wind conditions Checks the wind conditions
.DESCRIPTION .DESCRIPTION

@ -1,11 +1,11 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the validity of the Windows system files (requires admin rights) Checks the validity of the Windows system files (requires admin rights)
.DESCRIPTION .DESCRIPTION
This PowerShell script checks the validity of the Windows system files. It requires admin rights. This PowerShell script checks the validity of the Windows system files. It requires admin rights.
.EXAMPLE .EXAMPLE
PS> ./check-windows-system-files.ps1 PS> ./check-windows-system-files.ps1
✔️ checked Windows system files checked Windows system files
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -18,7 +18,7 @@ try {
sfc /verifyOnly sfc /verifyOnly
if ($lastExitCode -ne "0") { throw "'sfc /verifyOnly' failed" } if ($lastExitCode -ne "0") { throw "'sfc /verifyOnly' failed" }
"✔️ checked Windows system files" " checked Windows system files"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Verifies an XML file Verifies an XML file
.DESCRIPTION .DESCRIPTION
@ -7,7 +7,7 @@
Specifies the path to the XML file Specifies the path to the XML file
.EXAMPLE .EXAMPLE
PS> ./check-xml-file.ps1 myfile.xml PS> ./check-xml-file.ps1 myfile.xml
✔️ Valid XML in 📄myfile.xml Valid XML in 📄myfile.xml
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -34,7 +34,7 @@ try {
if ($script:ErrorCount -gt 0) { throw "Invalid XML" } if ($script:ErrorCount -gt 0) { throw "Invalid XML" }
"✔️ Valid XML in 📄$path" " Valid XML in 📄$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ $($Error[0]) in 📄$path" "⚠️ $($Error[0]) in 📄$path"

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks all XML files in a directory tree Checks all XML files in a directory tree
.DESCRIPTION .DESCRIPTION
@ -8,7 +8,7 @@
.EXAMPLE .EXAMPLE
PS> ./check-xml-files.ps1 C:\Windows PS> ./check-xml-files.ps1 C:\Windows
... ...
✔️ Checked 3387 XML files (2462 invalid, 925 valid) within 📂C:\Windows in 116 sec Checked 3387 XML files (2462 invalid, 925 valid) within 📂C:\Windows in 116 sec
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -31,7 +31,7 @@ try {
[int]$total = $valid + $invalid [int]$total = $valid + $invalid
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✔️ Checked $total XML files ($invalid invalid, $valid valid) within 📂$path in $elapsed sec" " Checked $total XML files ($invalid invalid, $valid valid) within 📂$path in $elapsed sec"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Cleans a repo Cleans a repo
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Cleans all Git repositories in a folder from untracked files Cleans all Git repositories in a folder from untracked files
.DESCRIPTION .DESCRIPTION

@ -1,11 +1,11 @@
<# <#
.SYNOPSIS .SYNOPSIS
Clears the DNS cache Clears the DNS cache
.DESCRIPTION .DESCRIPTION
This PowerShell script clears the DNS client cache of the local computer. This PowerShell script clears the DNS client cache of the local computer.
.EXAMPLE .EXAMPLE
PS> ./clear-dns-cache.ps1 PS> ./clear-dns-cache.ps1
✔️ Cleared DNS cache in 1 sec Cleared DNS cache in 1 sec
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -18,7 +18,7 @@ try {
Clear-DnsClientCache Clear-DnsClientCache
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ Cleared DNS cache in $Elapsed sec" " Cleared DNS cache in $Elapsed sec"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Clears the recycle bin folder Clears the recycle bin folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Clones Git repos Clones Git repos
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Clones a shallow Git repo Clones a shallow Git repo
.DESCRIPTION .DESCRIPTION
@ -24,7 +24,7 @@ try {
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✔️ Cloned the shallow repository in $elapsed sec" " Cloned the shallow repository in $elapsed sec"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Closes the calculator application Closes the calculator application
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Closes the Chrome browser Closes the Chrome browser
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Closes Microsoft's Cortana application Closes Microsoft's Cortana application
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Closes the Edge browser Closes the Edge browser
.DESCRIPTION .DESCRIPTION

Some files were not shown because too many files have changed in this diff Show More