Skip to content

Instantly share code, notes, and snippets.

View tankerkiller125's full-sized avatar
Doing things

Matt tankerkiller125

Doing things
View GitHub Profile
@tankerkiller125
tankerkiller125 / FixShortcuts.ps1
Last active January 13, 2023 21:18
Windows Shortcut Repair
# Set the Start Menu Path
$StartMenuFolder = "$env:ProgramData\Microsoft\Windows\Start Menu\Programs"
# Define the website to pull the JSON from
$URL = Invoke-WebRequest 'https://internal.corp/shortcuts.json' -UseBasicParsing
$ShortCuts = $URL | ConvertFrom-Json
# Use this instead if you don't want to use a website path
#$ShortCuts = Get-Content -Path .\shortcuts.json | ConvertFrom-Json