Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#
- For when you need links to all files in System32 on your desktop.
- #>
- $ErrorActionPreference:SilentlyContinue
- $HomeDrive = $env:HOMEDRIVE
- $HomePath = $env:HOMEPATH
- $Desktop = $HomeDrive + $HomePath + "\Desktop\"
- $Poop = Get-ChildItem -Path C:\Windows\System32 -File | % { $_.FullName }
- Foreach ($PooParticle in $Poop) {
- $Poopy = $PooParticle | Split-Path -Leaf
- $PooClone = $Desktop + $Poopy + ".lnk"
- $Shovel= New-Object -ComObject WScript.Shell
- $ShovelShit = $Shovel.CreateShortcut($PooClone)
- $ShovelShit.TargetPath = $PooParticle
- $ShovelShit.Save()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement