mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-07-04 22:50:05 +02:00
Replaced the done character
This commit is contained in:
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
|
||||
Adds firewall rules for executables (needs admin rights).
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Handles and escalates an alert
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Builds a repository
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Builds Git repositories
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's autostart folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Change to the crash dumps folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's desktop folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the documents folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's downloads folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's Dropbox folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Changes to the /etc directory
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the fonts folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's home folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the logs folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's music folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's OneDrive folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's pictures folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the Public folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the 'recent' folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the recycle bin folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to a repository
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's repos folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the root directory
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's screenshots folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the PowerShell scripts folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's SSH folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the temporary folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the templates folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the trash folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to one level up
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to two directory levels up
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to three directory levels up
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to four directory levels up
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the users directory
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's videos folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the Windows directory
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Changes the wallpaper
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Check for admin rights
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Query the app status
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the BIOS status
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the CPU status
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks credentials
|
||||
.DESCRIPTION
|
||||
@ -8,7 +8,7 @@
|
||||
.EXAMPLE
|
||||
PS> ./check-credentials.ps1
|
||||
Enter username and password, please.
|
||||
✔️ Your credentials are correct.
|
||||
✅ Your credentials are correct.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -30,7 +30,7 @@ try {
|
||||
$pw2 = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($credsFromFile.Password))
|
||||
if ($pw1 -cne $pw2) { throw "Sorry, your password is wrong." }
|
||||
|
||||
"✔️ Your credentials are correct."
|
||||
"✅ Your credentials are correct."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -1,11 +1,11 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Determines the current day
|
||||
.DESCRIPTION
|
||||
This PowerShell script determines and speaks the current day by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./check-day
|
||||
✔️ It's Sunday.
|
||||
✅ It's Sunday.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Check the DNS resolution
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the drive space
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the drive space
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the time of dusk
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the time until Easter Sunday
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the file system of a drive (needs admin rights)
|
||||
.DESCRIPTION
|
||||
@ -7,7 +7,7 @@
|
||||
Specifies the drive to check
|
||||
.EXAMPLE
|
||||
PS> ./check-file-system C
|
||||
✔️ file system on drive C is clean
|
||||
✅ file system on drive C is clean
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks a file
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the firewall status
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the GPU status
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the hardware
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the system health
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the time until Independence Day
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks an IPv4 address for validity
|
||||
.DESCRIPTION
|
||||
@ -7,7 +7,7 @@
|
||||
Specifies the IPv4 address to check
|
||||
.EXAMPLE
|
||||
PS> ./check-ipv4-address 192.168.11.22
|
||||
✔️ IPv4 192.168.11.22 is valid
|
||||
✅ IPv4 192.168.11.22 is valid
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -29,7 +29,7 @@ try {
|
||||
if ($Address -eq "" ) { $Address = read-host "Enter IPv4 address to validate" }
|
||||
|
||||
if (IsIPv4AddressValid $Address) {
|
||||
"✔️ IPv4 $Address is valid"
|
||||
"✅ IPv4 $Address is valid"
|
||||
exit 0 # success
|
||||
} else {
|
||||
write-warning "Invalid IPv4 address: $Address"
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks an IPv6 address for validity
|
||||
.DESCRIPTION
|
||||
@ -7,7 +7,7 @@
|
||||
Specifies the IPv6 address to check
|
||||
.EXAMPLE
|
||||
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
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -43,7 +43,7 @@ try {
|
||||
$Address = read-host "Enter IPv6 address to validate"
|
||||
}
|
||||
if (IsIPv6AddressValid $Address) {
|
||||
"✔️ IPv6 $Address is valid"
|
||||
"✅ IPv6 $Address is valid"
|
||||
exit 0 # success
|
||||
} else {
|
||||
write-warning "Invalid IPv6 address: $Address"
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the ISS position
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the given MAC address for validity
|
||||
.DESCRIPTION
|
||||
@ -8,7 +8,7 @@
|
||||
Specifies the MAC address to check
|
||||
.EXAMPLE
|
||||
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
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -31,7 +31,7 @@ try {
|
||||
$MAC = read-host "Enter MAC address to validate"
|
||||
}
|
||||
if (IsMACAddressValid $MAC) {
|
||||
"✔️ MAC address $MAC is valid"
|
||||
"✅ MAC address $MAC is valid"
|
||||
exit 0 # success
|
||||
} else {
|
||||
write-warning "Invalid MAC address: $MAC"
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks for Midnight
|
||||
.DESCRIPTION
|
||||
|
@ -1,11 +1,11 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Gets the current month name
|
||||
.DESCRIPTION
|
||||
This PowerShell script determines and speaks the current month name by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./check-month
|
||||
✔️ It's December.
|
||||
✅ It's December.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the Moon phase
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the network details
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks for Noon
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the OS status
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks Outlook's inbox
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks a password
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Check for pending reboots
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks PnP devices
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the power status
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Check the PowerShell status
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks PowerShell file(s) for validity
|
||||
.DESCRIPTION
|
||||
@ -7,7 +7,7 @@
|
||||
Specifies the file pattern to the PowerShell file(s)
|
||||
.EXAMPLE
|
||||
PS> ./check-ps1-file *.ps1
|
||||
✔️ Valid PowerShell in myfile.ps1
|
||||
✅ Valid PowerShell in myfile.ps1
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -24,7 +24,7 @@ try {
|
||||
$syntaxError = @()
|
||||
[void][System.Management.Automation.Language.Parser]::ParseFile($file, [ref]$null, [ref]$syntaxError)
|
||||
if ("$syntaxError" -ne "") { throw "$syntaxError" }
|
||||
"✔️ Valid PowerShell in $($file.Name)"
|
||||
"✅ Valid PowerShell in $($file.Name)"
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the RAM
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks a Git repository
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks Git repositories
|
||||
.DESCRIPTION
|
||||
@ -10,7 +10,7 @@
|
||||
⏳ Checking parent folder 📂C:\Repos... 16 subfolders
|
||||
⏳ 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
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the time until Saint Nicholas Day
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the SMART device status
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the software
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the given subnet mask for validity
|
||||
.DESCRIPTION
|
||||
@ -7,7 +7,7 @@
|
||||
Specifies the subnet mask to check
|
||||
.EXAMPLE
|
||||
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
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -29,7 +29,7 @@ try {
|
||||
if ($address -eq "" ) { $address = read-host "Enter subnet mask to validate" }
|
||||
|
||||
if (IsSubNetMaskValid $address) {
|
||||
"✔️ subnet mask $Address is valid"
|
||||
"✅ subnet mask $Address is valid"
|
||||
exit 0 # success
|
||||
} else {
|
||||
write-warning "Invalid subnet mask: $address"
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the swap space
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks symlinks in a folder
|
||||
.DESCRIPTION
|
||||
@ -9,7 +9,7 @@
|
||||
.EXAMPLE
|
||||
PS> ./check-symlinks C:\Users
|
||||
⏳ 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
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -42,11 +42,11 @@ try {
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
if ($NumTotal -eq 0) {
|
||||
"✔️ No symlink found at 📂$FullPath in $Elapsed sec"
|
||||
"✅ No symlink found at 📂$FullPath in $Elapsed sec"
|
||||
} elseif ($NumBroken -eq 1) {
|
||||
"✔️ Found $NumBroken broken symlink at 📂$FullPath in $Elapsed sec"
|
||||
"✅ Found $NumBroken broken symlink at 📂$FullPath in $Elapsed sec"
|
||||
} else {
|
||||
"✔️ Found $NumBroken broken symlinks at 📂$FullPath in $Elapsed sec"
|
||||
"✅ Found $NumBroken broken symlinks at 📂$FullPath in $Elapsed sec"
|
||||
}
|
||||
exit $NumBroken
|
||||
} catch {
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the time zone
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the uptime
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the VPN status
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the weather
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Determines the week number
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the wind conditions
|
||||
.DESCRIPTION
|
||||
|
@ -1,11 +1,11 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the validity of the Windows system files (requires admin rights)
|
||||
.DESCRIPTION
|
||||
This PowerShell script checks the validity of the Windows system files. It requires admin rights.
|
||||
.EXAMPLE
|
||||
PS> ./check-windows-system-files.ps1
|
||||
✔️ checked Windows system files
|
||||
✅ checked Windows system files
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -18,7 +18,7 @@ try {
|
||||
sfc /verifyOnly
|
||||
if ($lastExitCode -ne "0") { throw "'sfc /verifyOnly' failed" }
|
||||
|
||||
"✔️ checked Windows system files"
|
||||
"✅ checked Windows system files"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Verifies an XML file
|
||||
.DESCRIPTION
|
||||
@ -7,7 +7,7 @@
|
||||
Specifies the path to the XML file
|
||||
.EXAMPLE
|
||||
PS> ./check-xml-file.ps1 myfile.xml
|
||||
✔️ Valid XML in 📄myfile.xml
|
||||
✅ Valid XML in 📄myfile.xml
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -34,7 +34,7 @@ try {
|
||||
|
||||
if ($script:ErrorCount -gt 0) { throw "Invalid XML" }
|
||||
|
||||
"✔️ Valid XML in 📄$path"
|
||||
"✅ Valid XML in 📄$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ $($Error[0]) in 📄$path"
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks all XML files in a directory tree
|
||||
.DESCRIPTION
|
||||
@ -8,7 +8,7 @@
|
||||
.EXAMPLE
|
||||
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
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -31,7 +31,7 @@ try {
|
||||
|
||||
[int]$total = $valid + $invalid
|
||||
[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
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Cleans a repo
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Cleans all Git repositories in a folder from untracked files
|
||||
.DESCRIPTION
|
||||
|
@ -1,11 +1,11 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Clears the DNS cache
|
||||
.DESCRIPTION
|
||||
This PowerShell script clears the DNS client cache of the local computer.
|
||||
.EXAMPLE
|
||||
PS> ./clear-dns-cache.ps1
|
||||
✔️ Cleared DNS cache in 1 sec
|
||||
✅ Cleared DNS cache in 1 sec
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -18,7 +18,7 @@ try {
|
||||
Clear-DnsClientCache
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ Cleared DNS cache in $Elapsed sec"
|
||||
"✅ Cleared DNS cache in $Elapsed sec"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Clears the recycle bin folder
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Clones Git repos
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Clones a shallow Git repo
|
||||
.DESCRIPTION
|
||||
@ -24,7 +24,7 @@ try {
|
||||
|
||||
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✔️ Cloned the shallow repository in $elapsed sec"
|
||||
"✅ Cloned the shallow repository in $elapsed sec"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Closes the calculator application
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Closes the Chrome browser
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Closes Microsoft's Cortana application
|
||||
.DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Closes the Edge browser
|
||||
.DESCRIPTION
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user