From dcbbb282bb2ae03e4b665c7d6029ff14a7b948f0 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Thu, 14 Sep 2017 21:39:42 +0200 Subject: [PATCH] Remove leftover script from outdated installation method. --- AutoTx/Resources/Create-ElevatedCmdShortcut.ps1 | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 AutoTx/Resources/Create-ElevatedCmdShortcut.ps1 diff --git a/AutoTx/Resources/Create-ElevatedCmdShortcut.ps1 b/AutoTx/Resources/Create-ElevatedCmdShortcut.ps1 deleted file mode 100644 index 246aa7a..0000000 --- a/AutoTx/Resources/Create-ElevatedCmdShortcut.ps1 +++ /dev/null @@ -1,10 +0,0 @@ -$lnkfile = ".\elevated-cmd.lnk" - -$WshShell = New-Object -comObject WScript.Shell -$Shortcut = $WshShell.CreateShortcut($lnkfile) -$Shortcut.TargetPath = "%windir%\system32\cmd.exe" -$Shortcut.Save() - -$bytes = [System.IO.File]::ReadAllBytes($lnkfile) -$bytes[0x15] = $bytes[0x15] -bor 0x20 #set byte 21 (0x15) bit 6 (0x20) ON -[System.IO.File]::WriteAllBytes($lnkfile, $bytes) \ No newline at end of file -- GitLab