Open Command Prompt as Administrator and Plan Admin-Only Setup Steps in Cursor
Get the ways to open Command Prompt as administrator on your Windows version, plus a repo-based list of which setup commands need elevation, with verify and undo.
Agent prompt for Claude Code and GitHub Copilot
You get: How to open Command Prompt as administrator, admin-only steps and steps for Cursor's normal terminal
The prompt
mkdir -p .agents/skills/open-command-prompt-as-administrator-and-plan-admin-only-setup-s && curl -sL "https://prompts-gpt.com/prompts/open-command-prompt-as-administrator-and-plan-admin-only-setup-steps-in-cursor/raw" -o .agents/skills/open-command-prompt-as-administrator-and-plan-admin-only-setup-s/SKILL.mdYou are a Windows developer-environment engineer working inside Cursor. Task: on . Tell me how to open an elevated (administrator) Command Prompt and exactly which steps need it.
Rules:
1. Inspect the repository first (README, setup scripts, package files, .env.example, Docker files) and cite the file each step comes from.
2. Do not run any command that needs administrator rights yourself; list it for me to run in an admin Command Prompt. Never commit, push or deploy.
3. Never invent command flags, package IDs, service names or config keys. For winget packages, show the winget search command as the source of the ID. When behavior depends on the installed version, write "check in your version".
4. Mark a step admin-only only if it changes system-wide state (services, Program Files, HKLM registry, hosts file, system PATH, firewall). Offer a per-user alternative when one exists.
5. Every admin command gets a verify command and an undo command.
6. If no steps need admin, say so plainly.
Output format:
1. How to open Command Prompt as administrator: 3 ways for my Windows version, plus how to confirm the window is elevated.
2. Admin-only steps: table with columns Step | Command | Why admin | Verify | Undo.
3. Steps for Cursor's normal terminal: numbered list.
4. Risks.
Finish with the assumptions you made and anything missing from the repo.Example output
How to use this prompt
- Open your project in Cursor and start an agent or chat session.
- Fill in {setup_task} and {windows_version}, then paste the prompt.
- Follow section 1 to open an elevated Command Prompt outside Cursor.
- Run admin steps there, run the rest in Cursor's terminal, and check each verify command before moving on.
- Who it’s for:
- Developers using Cursor on Windows who hit permission errors
- What you get:
- You know how to open and confirm an admin Command Prompt, and have a short, verified list of admin-only commands separated from normal ones.
Use cases
- Setting up a Django and PostgreSQL repo on a new Windows 11 laptop with a standard user account
- Fixing 'Access is denied' when a setup script edits the hosts file or installs a Windows service
- Checking which README steps really need admin on a locked-down company laptop
- Onboarding a junior developer who has never opened Command Prompt as administrator
Works well with
- Cursor agent: reads README and setup scripts in the open repo before listing steps
- Claude Code: inspects the repo itself and is good at separating admin from per-user steps
Try another example
The same prompt filled in for a different situation.
Tips and common edits
Why this works
- Section 1 puts the open-as-admin answer first, with a way to confirm elevation, so the common question is answered before any planning.
- Limiting admin to system-wide changes and offering per-user options keeps elevated commands rare and deliberate.
- Requiring search output as the source of package IDs and service names stops the agent from guessing names that differ by version.
Use in Cursor's agent or chat with your repo open when setup fails with 'Access is denied' or you need to know how to open an admin Command Prompt. Also works in Claude Code or Copilot.
Common edits
- Swap Command Prompt for PowerShell if your scripts are .ps1 files, and ask for the PowerShell elevation check instead.
- Add 'company-managed, no admin rights' to the Windows version so the agent focuses on per-user alternatives and what to request from IT.
Reuse it: Use in a workflowAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Windows Command Prompt Steps to Recover a Corrupted or RAW USB Drive
Get an ordered, risk-labeled list of Windows Command Prompt steps to diagnose a failing USB drive and recover files before you change or format anything.
Agent Session Handoff Brief with Resume Checklist and Verified State
Makes Claude Code produce a handoff file capturing goal, verified repo state, decisions, blockers, and exact resume commands so another engineer or agent session can continue without rework. Use it before ending a long task.
Root-Cause Bug Fix With a Failing Test and a Minimal Patch
Get a reproduced bug, a regression test that fails before the fix and passes after it, the smallest patch and a log of the commands Claude Code actually ran.
Claude Code Hooks Not Working: Fix a Hook That Won't Fire
Returns a numbered diagnosis of your Claude Code hook (location, event, matcher, exit code, stdout, onFailure, path), the named cause, a corrected entry and a one-command test.
Generate Reproducible Bug Fix Specs for Coding Agents
Get a standalone reproduction test script and a precise technical plan to fix a bug, ensuring your AI agent stays focused and avoids unnecessary file changes.
Cursor Call Graph Trace Before You Change a Function
Cursor maps who calls a function and what it calls, with file and line for every step, the callers your planned change could break and the exact tests to run, before any code is edited.
- Codex Writes an AGENTS.md for This Repository From the Real Setup
- Debug an Error From the Message and the Code Around It
- GitHub Copilot Pull Request Description Written From the Diff
- Paste a Bug Report, Get a Test-First Fix in Any AI Chat
- Conventional Commit and PR Description from a Diff and Ticket
- Cursor Agent Bug Triage: Reproduce, Root-Cause, Fix, and Regression Test