File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# !/bin/powershell
22<#
3- .SYNTAX ./download.ps1 [<URL>]
4- .DESCRIPTION downloads the file/directory from the given URL
5- .LINK https://github.com/fleschutz/PowerShell
6- .NOTES Author: Markus Fleschutz / License: CC0
3+ .SYNTAX ./download.ps1 [<URL>]
4+ .DESCRIPTION downloads the file/directory from the given URL
5+ .LINK https://github.com/fleschutz/PowerShell
6+ .NOTES Author: Markus Fleschutz / License: CC0
77#>
88
99param ($URL = " " )
Original file line number Diff line number Diff line change 11# !/bin/powershell
22<#
3- .SYNTAX ./enable-god-mode.ps1
4- .DESCRIPTION enables the god mode (adds a new icon to the desktop)
5- .LINK https://github.com/fleschutz/PowerShell
6- .NOTES Author: Markus Fleschutz / License: CC0
3+ .SYNTAX ./enable-god-mode.ps1
4+ .DESCRIPTION enables the god mode (adds a new icon to the desktop)
5+ .LINK https://github.com/fleschutz/PowerShell
6+ .NOTES Author: Markus Fleschutz / License: CC0
77#>
88
9- # Requires -RunAsAdministrator
10-
119try {
12- $godmodeSplat = @ {
13- Path = " $env: USERPROFILEDesktop "
10+ $GodModeSplat = @ {
11+ Path = " $HOME \Desktop "
1412 Name = " GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}"
1513 ItemType = ' Directory'
1614 }
17- new-item @godmodeSplat
15+ new-item @GodModeSplat
1816
1917 write-host - foregroundColor green " OK - see the new desktop icon"
2018 exit 0
You can’t perform that action at this time.
0 commit comments