mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-25 01:14:16 +01:00
Updated enable-god-mode.ps1
This commit is contained in:
parent
89c7bd290a
commit
c54e4b0184
@ -5,7 +5,7 @@
|
|||||||
This PowerShell script enables the god mode in Windows. It adds a new icon to the desktop.
|
This PowerShell script enables the god mode in Windows. It adds a new icon to the desktop.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./enable-god-mode.ps1
|
PS> ./enable-god-mode.ps1
|
||||||
✔ God mode enabled, please click the new desktop icon
|
✔ God mode enabled - just double-click the new desktop icon.
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -19,7 +19,7 @@ try {
|
|||||||
ItemType = 'Directory'
|
ItemType = 'Directory'
|
||||||
}
|
}
|
||||||
$null = New-Item @GodModeSplat
|
$null = New-Item @GodModeSplat
|
||||||
"✅ God mode enabled, please click the new desktop icon"
|
"✅ God mode enabled - just double-click the new desktop icon."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user