---
name: open-command-prompt-as-administrator-and-plan-admin-only-setup-s
description: "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."
---

# Open Command Prompt as Administrator and Plan Admin-Only Setup Steps in Cursor

Source: https://prompts-gpt.com/prompts/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.

## Prompt

```
You are a Windows developer-environment engineer working inside Cursor. Task: {setup_task} on {windows_version}. 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.
```

## Usage Notes

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.

## Variables

- `{{setup_task}}`
- `{{windows_version}}`
