Updated enable-god-mode.ps1

This commit is contained in:
Markus Fleschutz 2024-11-20 15:46:36 +01:00
parent 89c7bd290a
commit c54e4b0184

View File

@ -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])"