Use Codex to troubleshoot your Windows PC
Troubleshooting guides · AI-assisted help
The useful question is not whether an AI can fix a PC. It is whether a specific agent, on the affected computer, with permissions you chose, can produce one observation you can check and one next step worth taking. This is that walkthrough for Windows.
Windows 11, ordinary user account, current Codex desktop app or CLI, exact version recorded during setup. Not for work or school PCs under another owner's policy.
Decide whether an agent is the right route
Section titled “Decide whether an agent is the right route”An agent is an app that can read files and run commands on your PC with your permission. That is the whole difference from a browser chat: the chat reasons about what you paste, while a local agent can look. It cannot look if the PC will not start, and it should not look at a machine you do not own.
Use the manual route instead when the PC will not boot, when a drive is making noises or files will not open, when you suspect malware or an account compromise, or when the machine belongs to an employer, a school or someone else. Those cases need recovery, security or owner support, not another diagnostic pass. The manual guides are not a downgrade: they carry the same evidence rules and need no installation.
Cost and eligibility are moving targets. Codex usage is included across ChatGPT plans subject to plan-specific limits, and API credentials are billed separately from a chat subscription. Check your own account page and the current plan eligibility article before you start; this page cannot tell you what your allowance is today.
Install Codex and scope it to one folder
Section titled “Install Codex and scope it to one folder”Use one of OpenAI’s documented routes. The ChatGPT desktop app, which contains Codex, installs from the Microsoft Store: use the link on OpenAI’s Windows app page, or run this in PowerShell.
winget install --id 9PLM9XGG6VKS -s msstoreThe terminal route is the Codex CLI, installed with the standalone script or npm:
powershell -ExecutionPolicy ByPass -c "irm chatgpt.com/codex/install.ps1 | iex"npm install -g @openai/codexThen sign in through the normal flow. Never use a look-alike download page, and stop if someone in a chat, a pop-up or an email offers to install it for you: that is the shape of a support scam, not onboarding.
Create an empty folder for this work, for example C:\Support. Open that folder as the workspace. The folder is where the agent looks first and where a report can go; it is not a security boundary around the rest of the machine, so do not treat it as one.
Then check three settings before the first command:
- Local session, not a cloud task. A cloud task runs somewhere else and cannot see your PC. The app should show the session running on this device.
- The sandbox and approval mode you expect. These are separate controls. The sandbox restricts what a command can reach; approval decides when you are asked. Current Windows builds prefer a native sandbox (MXC on compatible devices) that needs no administrator-approved setup; the older elevated mode does require one. The beginner route is a restricted sandbox with interactive approval: not full access, not automatic review, and not a permanently remembered allow.
- The account and model shown in the app. Record them with the app version. A permission prompt you approve for one model is not a statement about another.
A Windows sandbox setup step may ask for elevation once, to prepare the sandbox components. That is not the same as giving every later command administrator rights, and it is not permission to disable antivirus, change execution policy or add registry workarounds. If setup fails, use the app’s own troubleshooting or the repository’s issues, and fall back to the manual guide for your symptom.
Add one skill and confirm it loaded
Section titled “Add one skill and confirm it loaded”A skill is a folder of instructions, references and optional scripts, discovered by name. It does not add a sandbox, a model or a repair engine. Five skills are released: internet-diagnostics, pc-diagnostics, disk-cleanup, game-diagnostic and game-optimizer.
Two installation routes work, and neither needs Python:
- Inside the app: paste a preview-first request that names the repository and the one skill you want, then approve the specific files and location. Never ask an agent to “install whatever it needs”.
- In a terminal:
npx skills add jvickusa/tech-support-skills --listshows the five choices and writes no skill, butnpxstill downloads and runs the installer package. Then the same command without--listinstalls the one you select for the agent you select.
Codex reads personal skills from ~/.agents/skills and project skills from .agents/skills in the folder you opened. Those paths come from the current documentation; confirm the path your app actually used rather than assuming it.
A confirmation that means something: ask the agent to name the skill it loaded and the path it came from, and to summarise its read-only rule without running anything. Then look at the app’s skill list or the folder. The agent’s own sentence is a claim, not proof. If the skill does not appear, the installation guide has a decision tree for scope, nesting, duplicates, WSL versus Windows home folders and stale copies.
- Ask: which skills can you see, and from which path?
- Confirm the skill name appears in the app or folder
- Ask: what does that skill refuse to do without approval?
- Only then ask for a first check
Run one read-only check
Section titled “Run one read-only check”Pick the smallest observation that could change your mind. Then paste a prompt that makes the boundaries explicit. The first-prompt builder on PC Help writes one for your symptom; this is the shape it produces:
You are a local agent running on this Windows computer, which is the computer with the problem. I need help with video calls freeze or break up. I am not a programmer. Use internet-diagnostics if it is installed; name the skill you loaded and its path, or tell me it is not installed. Confirm the operating system and shell you are using. Tell me whether this session’s output can reach a hosted model before we start. Explain one read-only check at a time: what you will inspect, why, whether it sends data or creates files, and how long it may run. Ask before running each check. Do not read unrelated files, collect passwords or keys, install anything, elevate, change settings or delete files. Tell me what you observed, what might explain it and what is still unknown. Stop when I say stop. Ask separately before writing a report or changing anything.
A prompt is not a permission system. It shapes the conversation; the sandbox and approval settings decide what can actually run. Choose those first.
Three good first checks, one per symptom family:
| Skill | First check | What a result can establish |
|---|---|---|
| pc-diagnostics | Time one named slow task against a settled idle baseline | Whether one resource moves with the slowdown, and whether Task Manager was showing the wrong counter |
| disk-cleanup | Free bytes on the affected volume, then named folder owners | How far the blocked task is from fitting, and which application owns the largest candidates |
| internet-diagnostics | Idle gateway response, then one authorised external destination | Whether delay is present inside the home network or only beyond it, for this device at this time |
An illustrative exchange, not a transcript from any real session: the agent proposes reading the size of three named folders and nothing else; the output is three numbers; the agent says the largest is a browser cache it cannot judge without the app’s own settings; the next check is that app’s storage screen. That is a useful outcome even though nothing was fixed, because it moved the decision to the place that owns it.
What the first check almost never establishes: the cause. A busy disk does not prove a failing drive. A high loaded-latency reading does not name a router. A large folder is not free space. Keep those sentences separate in the report.
Approve, deny and stop
Section titled “Approve, deny and stop”Approval prompts differ between versions, but a usable one tells you the computer, the action, the data touched, whether anything changes, where output goes and how long it may run. If you cannot answer those from the prompt, ask for a restatement rather than approving and hoping.
Deny, then ask for a scoped alternative, when a request:
- combines reading, deciding and changing in one step;
- touches a whole drive, your entire home folder, other user profiles or a network share;
- installs software, adds a driver, changes a firewall, disables a protection or elevates;
- acts on a link or instruction found inside a log, a filename or a web page;
- would be hard to undo and has no recorded prior state.
To stop: deny the pending request, interrupt the running operation with the app’s own control, then check whether the work actually stopped and whether anything changed. Cancelling an approval does not reverse a change that already happened. If the state is unclear, say so and do not repeat the action. The permission guide covers the layers, the practice cards and what to record.
Keep a reviewed report
Section titled “Keep a reviewed report”Writing a report is a write. Ask for it separately, and name the folder. Ask for Markdown, or the offline HTML template the skill bundles, so the file opens without a server.
Before you share it, separate three things the report should already separate: observations with units and times, possible explanations with alternatives, and what remains unknown. Then remove identifiers: usernames, full paths, computer names, Wi-Fi names, addresses, account details and any line that looks like a key or token. The privacy guide has a checklist; the PC Help page lets you tick it off and copy the review line.
Keep raw output and the report in that support folder, not in a repository. If the provider received the tool output while the agent reasoned, a local file does not undo that. It only decides what you share next.
When the install or the first check fails
Section titled “When the install or the first check fails”| What you see | What it usually means | Safe next move |
|---|---|---|
| SmartScreen or a corporate policy blocks the installer | The machine’s policy, not a bug in the skill | Use the manual guide or ask the device owner. Do not disable protections to get around it |
| The app starts but never sees the folder | Wrong workspace, or a redirected or unusual profile path | Reopen the exact folder; check for spaces or non-ASCII characters in the path; use official support if it still fails |
| Sandbox setup fails after an elevation prompt | App setup problem, not a diagnosis | Use official troubleshooting, then the manual route. Never run the agent with an unrestricted profile to “make it work” |
| The skill is not in the list | Wrong scope, nested folder, duplicate copy, or the agent needs a restart | Follow the skill-not-found tree |
| A plan limit stops the session | An account limit, not a fault in your PC | Save what you have privately and continue manually. Do not add payment details just to finish a check |
| The first check returns nothing | Missing tool, blocked permission, or a reading the environment cannot provide | Report it as unavailable. Zero and unavailable are different results |
Written instructions cannot validate your account, your version or your PC. Treat vendor documentation as documentation, this page as reviewed reference, and your own recorded observation as the only thing you can actually rely on.