Skip to content

Commit 3e0d73d

Browse files
committed
Added Get-GodMode
1 parent 499d03c commit 3e0d73d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

system-extensions/Get-GodMode.ps1

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
function Get-GodMode {
2+
<#
3+
.SYNOPSIS
4+
Get God Mode!
5+
6+
.DESCRIPTION
7+
Turns explorer window into Admin panel
8+
9+
.EXAMPLE
10+
Get-GodMode
11+
12+
#>
13+
Set-Location $env:TEMP
14+
$godMode = "GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}"
15+
if (Test-Path($godMode)) {
16+
Remove-Item $godMode
17+
}
18+
mkdir $godMode
19+
Set-Location $godMode
20+
Start-Process .
21+
Set-Location ..
22+
Remove-Item $godMode
23+
}

0 commit comments

Comments
 (0)