mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-18 19:07:04 +02:00
Update both scripts
This commit is contained in:
parent
5af77ba065
commit
8590dbcc55
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./download.ps1 [<URL>]
|
.SYNTAX ./download.ps1 [<URL>]
|
||||||
.DESCRIPTION downloads the file/directory from the given URL
|
.DESCRIPTION downloads the file/directory from the given URL
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($URL = "")
|
param($URL = "")
|
||||||
|
@ -1,20 +1,18 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./enable-god-mode.ps1
|
.SYNTAX ./enable-god-mode.ps1
|
||||||
.DESCRIPTION enables the god mode (adds a new icon to the desktop)
|
.DESCRIPTION enables the god mode (adds a new icon to the desktop)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
#Requires -RunAsAdministrator
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$godmodeSplat = @{
|
$GodModeSplat = @{
|
||||||
Path = "$env:USERPROFILEDesktop"
|
Path = "$HOME\Desktop"
|
||||||
Name = "GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}"
|
Name = "GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}"
|
||||||
ItemType = 'Directory'
|
ItemType = 'Directory'
|
||||||
}
|
}
|
||||||
new-item @godmodeSplat
|
new-item @GodModeSplat
|
||||||
|
|
||||||
write-host -foregroundColor green "OK - see the new desktop icon"
|
write-host -foregroundColor green "OK - see the new desktop icon"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user