Opening an Administrator PowerShell or Command Prompt

The Contract Tools License Server scripts (install.cmd, stop.cmd, start.cmd, and uninstall.cmd) require an administrator PowerShell or Command Prompt. To open an administrator PowerShell from a non-administrator PowerShell, enter:

$arguments = "-NoExit -Command `"Set-Location \`"$(Get-Location)\`"`""
Start-Process powershell $arguments -Verb runas

To open an administrator Command Prompt from a non-administrator Command Prompt, enter:

powershell -Command "Start-Process cmd \"/k cd /d %CD%\" -Verb runas"