1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-07-28 00:09:01 +02:00
Files
.github
data
docs
scripts
add-firewall-rules.ps1
alert.ps1
build-repo.ps1
build-repos.ps1
cd-autostart.ps1
cd-crashdumps.ps1
cd-desktop.ps1
cd-docs.ps1
cd-downloads.ps1
cd-dropbox.ps1
cd-etc.ps1
cd-fonts.ps1
cd-home.ps1
cd-jenkins.ps1
cd-logs.ps1
cd-music.ps1
cd-nextcloud.ps1
cd-onedrive.ps1
cd-pics.ps1
cd-public.ps1
cd-recent.ps1
cd-recycle-bin.ps1
cd-repo.ps1
cd-repos.ps1
cd-root.ps1
cd-screenshots.ps1
cd-scripts.ps1
cd-ssh.ps1
cd-sync.ps1
cd-temp.ps1
cd-templates.ps1
cd-trash.ps1
cd-up.ps1
cd-up2.ps1
cd-up3.ps1
cd-up4.ps1
cd-users.ps1
cd-videos.ps1
cd-windows.ps1
change-wallpaper.ps1
check-admin.ps1
check-apps.ps1
check-bios.ps1
check-cpu.ps1
check-credentials.ps1
check-day.ps1
check-dns.ps1
check-drive-space.ps1
check-drives.ps1
check-dusk.ps1
check-easter-sunday.ps1
check-file-system.ps1
check-file.ps1
check-firewall.ps1
check-gpu.ps1
check-hardware.ps1
check-health.ps1
check-independence-day.ps1
check-ipv4-address.ps1
check-ipv6-address.ps1
check-iss-position.ps1
check-mac-address.ps1
check-midnight.ps1
check-month.ps1
check-moon-phase.ps1
check-motherboard.ps1
check-network.ps1
check-noon.ps1
check-os.ps1
check-outlook.ps1
check-password.ps1
check-pending-reboot.ps1
check-pnp-devices.ps1
check-power.ps1
check-powershell.ps1
check-ps1-file.ps1
check-ram.ps1
check-repo.ps1
check-repos.ps1
check-santa.ps1
check-smart-devices.ps1
check-software.ps1
check-subnet-mask.ps1
check-swap-space.ps1
check-symlinks.ps1
check-time-zone.ps1
check-uptime.ps1
check-vpn.ps1
check-weather.ps1
check-week.ps1
check-wind.ps1
check-windows-system-files.ps1
check-xml-file.ps1
check-xml-files.ps1
clean-repo.ps1
clean-repos.ps1
clear-dns-cache.ps1
clear-recycle-bin.ps1
clone-repos.ps1
clone-shallow.ps1
close-calculator.ps1
close-chrome.ps1
close-cortana.ps1
close-edge.ps1
close-file-explorer.ps1
close-firefox.ps1
close-git-extensions.ps1
close-magnifier.ps1
close-microsoft-paint.ps1
close-microsoft-store.ps1
close-netflix.ps1
close-notepad.ps1
close-obs-studio.ps1
close-one-calendar.ps1
close-outlook.ps1
close-paint-three-d.ps1
close-program.ps1
close-serenade.ps1
close-snipping-tool.ps1
close-spotify.ps1
close-task-manager.ps1
close-three-d-viewer.ps1
close-thunderbird.ps1
close-visual-studio.ps1
close-vlc.ps1
close-windows-terminal.ps1
configure-git.ps1
connect-vpn.ps1
convert-csv2txt.ps1
convert-dir27z.ps1
convert-dir2zip.ps1
convert-docx2md.ps1
convert-frames2mp4.ps1
convert-history2ps1.ps1
convert-image2ascii.ps1
convert-image2blurred-frames.ps1
convert-image2pixelated-frames.ps1
convert-images2webp.ps1
convert-md2docx.ps1
convert-md2html.ps1
convert-md2pdf.ps1
convert-mysql2csv.ps1
convert-ps2bat.ps1
convert-ps2md.ps1
convert-sql2csv.ps1
convert-txt2wav.ps1
copy-photos-sorted.ps1
count-characters.ps1
count-lines.ps1
decrypt-file.ps1
disable-ipv6.ps1
disconnect-vpn.ps1
download-dir.ps1
download-file.ps1
edit.ps1
enable-crash-dumps.ps1
enable-god-mode.ps1
enable-ipv6.ps1
encrypt-file.ps1
enter-chat.ps1
enter-host.ps1
export-to-manuals.ps1
fetch-repo.ps1
fetch-repos.ps1
firefox-installer.ps1
folder.jpg
get-md5.ps1
get-sha1.ps1
get-sha256.ps1
get-sha512.ps1
hello-world.ps1
hibernate.ps1
import-vm.ps1
inspect-exe.ps1
install-audacity.ps1
install-basic-apps.ps1
install-basic-snaps.ps1
install-calibre-server.ps1
install-chocolatey.ps1
install-chrome.ps1
install-crystal-disk-info.ps1
install-crystal-disk-mark.ps1
install-discord.ps1
install-edge.ps1
install-evcc.ps1
install-firefox.ps1
install-fonts.ps1
install-git-extensions.ps1
install-git-for-windows.ps1
install-github-cli.ps1
install-gitlab.ps1
install-h2static.ps1
install-irfanview.ps1
install-jenkins-agent.ps1
install-knot-resolver.ps1
install-microsoft-teams.ps1
install-mini-dlna.ps1
install-netflix.ps1
install-obs-studio.ps1
install-octoprint.ps1
install-one-calendar.ps1
install-opera-browser.ps1
install-opera-gx.ps1
install-paint-3d.ps1
install-power-toys.ps1
install-powershell.ps1
install-rufus.ps1
install-salesforce-cli.ps1
install-scoop.ps1
install-signal-cli.ps1
install-skype.ps1
install-spotify.ps1
install-ssh-client.ps1
install-ssh-server.ps1
install-syncthing.ps1
install-thunderbird.ps1
install-twitter.ps1
install-unbound-server.ps1
install-updates.ps1
install-visual-studio-code.ps1
install-vivaldi.ps1
install-vlc.ps1
install-windows-terminal.ps1
install-wsl.ps1
install-zoom.ps1
introduce-powershell.ps1
kill-process.ps1
list-aliases.ps1
list-anagrams.ps1
list-apps.ps1
list-ascii-table.ps1
list-automatic-variables.ps1
list-battery-status.ps1
list-bios.ps1
list-bluetooth-devices.ps1
list-branches.ps1
list-calendar.ps1
list-cheat-sheet.ps1
list-city-weather.ps1
list-cli-tools.ps1
list-clipboard.ps1
list-cmdlets.ps1
list-coffee-prices.ps1
list-commit-stats.ps1
list-commits.ps1
list-console-colors.ps1
list-countries.ps1
list-cpu.ps1
list-crypto-rates.ps1
list-defender-settings.ps1
list-dir-tree.ps1
list-dns-servers.ps1
list-drives.ps1
list-earthquakes.ps1
list-emojis.ps1
list-empty-dirs.ps1
list-empty-files.ps1
list-encrypted-files.ps1
list-environment-variables.ps1
list-error-types.ps1
list-exchange-rates.ps1
list-executables.ps1
list-fibonacci.ps1
list-files.ps1
list-folder.ps1
list-fritzbox-calls.ps1
list-fritzbox-devices.ps1
list-headlines.ps1
list-hidden-files.ps1
list-installed-hotfixes.ps1
list-installed-languages.ps1
list-installed-scripts.ps1
list-installed-software.ps1
list-internet-ip.ps1
list-ipv6.ps1
list-latest-tag.ps1
list-latest-tags.ps1
list-local-ip.ps1
list-mDNS.ps1
list-memos.ps1
list-mysql-tables.ps1
list-network-connections.ps1
list-network-neighbors.ps1
list-network-routes.ps1
list-network-shares.ps1
list-news.ps1
list-nic.ps1
list-nina-warnings.ps1
list-old-branches.ps1
list-os-releases.ps1
list-os-updates.ps1
list-os.ps1
list-outlook-inbox.ps1
list-outlook-sent.ps1
list-passwords.ps1
list-pins.ps1
list-power-schemes.ps1
list-powershell-modules.ps1
list-powershell-profiles.ps1
list-powershell-verbs.ps1
list-print-jobs.ps1
list-printers.ps1
list-processes.ps1
list-pull-requests.ps1
list-ram.ps1
list-read-only-files.ps1
list-recycle-bin.ps1
list-repos.ps1
list-scripts.ps1
list-scsi-devices.ps1
list-services.ps1
list-special-folders.ps1
list-sql-tables.ps1
list-ssh-key.ps1
list-submodules.ps1
list-suggestions.ps1
list-system-devices.ps1
list-system-files.ps1
list-system-info.ps1
list-tags.ps1
list-tasks.ps1
list-timezone.ps1
list-timezones.ps1
list-tiobe-index.ps1
list-unused-files.ps1
list-updates.ps1
list-usb-devices.ps1
list-user-accounts.ps1
list-user-groups.ps1
list-voices.ps1
list-weather.ps1
list-wifi.ps1
list-window-titles.ps1
list-workdir.ps1
list-wsl-distros.ps1
locate-city.ps1
locate-ipaddress.ps1
locate-my-phone.ps1
locate-zip-code.ps1
lock-desktop.ps1
log-off.ps1
make-install.ps1
measure-BubbleSort.ps1
measure-BucketSort.ps1
measure-CountingSort.ps1
measure-HeapSort.ps1
measure-InsertionSort.ps1
measure-MergeSort.ps1
measure-QuickSort.ps1
measure-SelectionSort.ps1
measure-sorting-algorithms.ps1
merry-christmas.ps1
minimize-all-windows.ps1
move-mouse-pointer.ps1
move-vm.ps1
my-profile.ps1
new-branch.ps1
new-dir.ps1
new-email.ps1
new-junction.ps1
new-linux-vm.ps1
new-markdown-file.ps1
new-power-plan.ps1
new-qrcode.ps1
new-reboot-task.ps1
new-script.ps1
new-shortcut.ps1
new-ssh-key.ps1
new-symlink.ps1
new-tab.ps1
new-tag.ps1
new-text-file.ps1
new-user.ps1
new-windows-vm.ps1
on-desktop-login.ps1
open-URL.ps1
open-apps-folder.ps1
open-auto-start-folder.ps1
open-bing-maps.ps1
open-booking-com.ps1
open-c-drive.ps1
open-calculator.ps1
open-chrome.ps1
open-clock.ps1
open-cortana.ps1
open-d-drive.ps1
open-dashboards.ps1
open-deep-l-translator.ps1
open-default-browser.ps1
open-desktop-folder.ps1
open-documents-folder.ps1
open-downloads-folder.ps1
open-dropbox-folder.ps1
open-duck-duck-go.ps1
open-e-drive.ps1
open-edge.ps1
open-egg-timer.ps1
open-email-client.ps1
open-f-drive.ps1
open-file-explorer.ps1
open-fire-place.ps1
open-firefox.ps1
open-flight-radar.ps1
open-g-drive.ps1
open-git-extensions.ps1
open-google-books.ps1
open-google-calendar.ps1
open-google-contacts.ps1
open-google-docs.ps1
open-google-earth.ps1
open-google-mail.ps1
open-google-maps.ps1
open-google-news.ps1
open-google-photos.ps1
open-google-play.ps1
open-google-search.ps1
open-google-stadia.ps1
open-google-translate.ps1
open-home-folder.ps1
open-internet-archive.ps1
open-jitsi-meet.ps1
open-m-drive.ps1
open-magnifier.ps1
open-microsoft-paint.ps1
open-microsoft-solitaire.ps1
open-microsoft-store.ps1
open-microsoft-teams.ps1
open-music-folder.ps1
open-netflix.ps1
open-notepad.ps1
open-obs-studio.ps1
open-office-365.ps1
open-one-drive-folder.ps1
open-outlook.ps1
open-paint-three-d.ps1
open-pictures-folder.ps1
open-rdp.ps1
open-recycle-bin-folder.ps1
open-remote-desktop.ps1
open-repos-folder.ps1
open-screen-clip.ps1
open-screen-sketch.ps1
open-skype.ps1
open-snipping-tool.ps1
open-speed-test.ps1
open-spotify.ps1
open-stack-overflow.ps1
open-start-page.ps1
open-street-map.ps1
open-task-manager.ps1
open-temporary-folder.ps1
open-three-d-viewer.ps1
open-thunderbird.ps1
open-videos-folders.ps1
open-visual-studio.ps1
open-voice-recorder.ps1
open-vpn-settings.ps1
open-windows-defender.ps1
open-windows-terminal.ps1
open-xing.ps1
pick-commit.ps1
ping-host.ps1
ping-internet.ps1
ping-local-devices.ps1
ping-weather.ps1
play-bee-sound.ps1
play-beep-sound.ps1
play-big-ben.ps1
play-cat-sound.ps1
play-chess.ps1
play-cow-sound.ps1
play-dog-sound.ps1
play-donkey-sound.ps1
play-drug-wars.ps1
play-elephant-sound.ps1
play-elk-sound.ps1
play-files.ps1
play-frog-sound.ps1
play-goat-sound.ps1
play-gorilla-sound.ps1
play-happy-birthday.ps1
play-horse-sound.ps1
play-imperial-march.ps1
play-jingle-bells.ps1
play-lion-sound.ps1
play-m3u.ps1
play-mission-impossible.ps1
play-mp3.ps1
play-parrot-sound.ps1
play-pig-sound.ps1
play-pong.ps1
play-rattlesnake-sound.ps1
play-rick.ps1
play-snake.ps1
play-super-mario.ps1
play-system-sounds.ps1
play-tetris-melody.ps1
play-vulture-sound.ps1
play-wolf-sound.ps1
poweroff.ps1
print-image.ps1
publish-to-ipfs.ps1
pull-repo.ps1
pull-repos.ps1
query-smart-data.ps1
reboot-fritzbox.ps1
reboot-into-bios.ps1
reboot.ps1
remember.ps1
remind-me.ps1
remove-dir-tree.ps1
remove-empty-dirs.ps1
remove-old-dirs.ps1
remove-print-jobs.ps1
remove-tag.ps1
remove-user.ps1
remove-vm.ps1
replace-in-files.ps1
restart-network-adapters.ps1
roll-a-dice.ps1
save-credentials.ps1
save-screenshot.ps1
scan-folder.ps1
scan-network.ps1
scan-ports.ps1
search-filename.ps1
search-files.ps1
search-repo.ps1
send-email.ps1
send-tcp.ps1
send-udp.ps1
set-timer.ps1
set-volume.ps1
set-wallpaper.ps1
show-lightnings.ps1
show-notification-motivation-quote.ps1
show-notification.ps1
show-traffic.ps1
simulate-presence.ps1
smart-data2csv.ps1
speak-arabic.ps1
speak-checklist.ps1
speak-countdown.ps1
speak-croatian.ps1
speak-danish.ps1
speak-dutch.ps1
speak-english.ps1
speak-epub.ps1
speak-esperanto.ps1
speak-file.ps1
speak-finnish.ps1
speak-french.ps1
speak-german.ps1
speak-greek.ps1
speak-hebrew.ps1
speak-hindi.ps1
speak-italian.ps1
speak-japanese.ps1
speak-korean.ps1
speak-latin.ps1
speak-mandarin.ps1
speak-norwegian.ps1
speak-polish.ps1
speak-portuguese.ps1
speak-russian.ps1
speak-spanish.ps1
speak-swedish.ps1
speak-test.ps1
speak-text.ps1
speak-thai.ps1
speak-turkish.ps1
speak-ukrainian.ps1
spell-word.ps1
start-ipfs-server.ps1
suspend.ps1
switch-branch.ps1
switch-shelly1.ps1
switch-tabs.ps1
sync-dir.ps1
sync-repo.ps1
tell-joke.ps1
tell-new-year.ps1
tell-quote.ps1
toggle-caps-lock.ps1
toggle-num-lock.ps1
toggle-scroll-lock.ps1
touch.ps1
translate-file.ps1
translate-files.ps1
translate-text.ps1
turn-volume-down.ps1
turn-volume-fully-up.ps1
turn-volume-off.ps1
turn-volume-on.ps1
turn-volume-up.ps1
uninstall-all-apps.ps1
uninstall-bloatware.ps1
uninstall-new-outlook.ps1
uninstall-outlook.ps1
update-powershell-profile.ps1
upgrade-ubuntu.ps1
upload-file.ps1
upload-to-dropbox.ps1
wake-up-host.ps1
wake-up-human.ps1
watch-commits.ps1
watch-crypto-rates.ps1
watch-file.ps1
watch-host.ps1
watch-news.ps1
watch-ping.ps1
weather-report.ps1
weather.ps1
what-is.ps1
windefender.ps1
write-animated.ps1
write-ascii-image.ps1
write-big.ps1
write-blue.ps1
write-braille.ps1
write-centered.ps1
write-changelog.ps1
write-chart.ps1
write-clock.ps1
write-code.ps1
write-credits.ps1
write-date.ps1
write-fractal.ps1
write-green.ps1
write-hands-off.ps1
write-headline.ps1
write-help.ps1
write-in-emojis.ps1
write-joke.ps1
write-location.ps1
write-lowercase.ps1
write-marquee.ps1
write-matrix.ps1
write-moon.ps1
write-morse-code.ps1
write-motd.ps1
write-pi.ps1
write-progress-bar.ps1
write-qr-code.ps1
write-quote.ps1
write-red.ps1
write-rot13.ps1
write-shit.ps1
write-sine-curves.ps1
write-story.ps1
write-time.ps1
write-typewriter.ps1
write-uppercase.ps1
write-value.ps1
write-vertical.ps1
write-xmas-tree.ps1
LICENSE
README.md
2025-03-19 12:36:06 +01:00

34 lines
1.1 KiB
PowerShell
Executable File

<#
.SYNOPSIS
Create a junction
.DESCRIPTION
This PowerShell script creates a new junction, linking to a target folder. The target folder can reside on another disk.
.PARAMETER junction
Specifies the path and filename of the new junction
.PARAMETER targetDir
Specifies the path to the target directory
.EXAMPLE
PS> ./new-junction.ps1 C:\User\Joe\D_drive D:
✅ New junction 'C:\User\Joe\D_drive' created, linking to: 📂D:
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
param([string]$junction = "", [string]$targetDir = "")
try {
if ($junction -eq "" ) { $junction = Read-Host "Enter the new junction's path and filename" }
if ($targetDir -eq "" ) { $target = Read-Host "Enter the path to the target directory " }
New-Item -path "$junction" -itemType Junction -value "$targetDir"
if ($lastExitCode -ne 0) { throw "Command 'New-Item' has failed" }
"✅ New junction '$junction' created, linking to: 📂$targetDir"
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}