Better prompts for free AI: the five-part prompt, tested on 5 AIs
I gave five free AIs (ChatGPT, Claude, Gemini, Grok and DeepSeek) the same three real IT tasks, each twice: once with a short, vague prompt and once with a five-part structured prompt. Same free AIs, better prompt: 7 of 15 correct answers became 14 of 15, with less than half the messages. Below: the five-part prompt, the three test prompts to copy, and six habits that save messages on free plans.
1. How I tested
- Three tasks an IT manager really gets: a PowerShell script that runs but gives the wrong result, a Windows Security log from a night of failed sign-ins, and a stressed user’s helpdesk ticket.
- Five free AIs, free plans only, memory and custom instructions off, a new chat for every prompt.
- Two prompts per task: first a vague one (“fix this script”), then the structured one below.
- Same follow-ups for every AI when an answer was wrong, up to five messages in total.
- Every answer scored against the correct solution. Tested on 23 October 2026; free plans change, so your results may differ.
2. Results
| Prompt | Correct answers | Messages used |
|---|---|---|
| Vague | 7 of 15 | 43 |
| Structured | 14 of 15 | 19 |
- Script: right first time in 3 of 5 AIs with the vague prompt, 4 of 5 with the structured one. The usual miss: not limiting the list to enabled accounts.
- Log: every AI got it right with both prompts. For a simple, clear question a short prompt is fine.
- Ticket: no AI gave a fully good reply to the vague prompt, even after five messages; all five got it right first time with the structured prompt.
- Every AI improved. In this test, how I asked mattered more than which AI I used. Still check every answer: one AI miscounted the log events even though its advice was right.
3. The five-part prompt
- Task: what you want in one sentence, including what correct looks like.
- Context: facts the AI can’t know: your Windows version, your office, who the user is.
- Limits: what it must not do: “max 120 words”, “never ask for her password”, “no extra modules”.
- Output: the exact shape you want back: “the fixed script first, then max 3 bullets”.
- Check: one thing it must verify before replying: “confirm the cutoff date is in the past”.
Task:
Context:
Limits:
Output:
Check:
4. Prompt 1: fix a PowerShell script
Task: Fix this PowerShell script. It should export ENABLED Active Directory users who have not signed in for 90 days or more. It runs without errors but lists almost every user.
Context: Windows Server 2022 domain, Windows PowerShell 5.1, ActiveDirectory module installed.
Limits: Keep it one script, no extra modules. Don't change the output columns.
Output: The fixed script first, then max 3 bullets: what was wrong and why.
Check: Before answering, confirm the cutoff date is in the past and disabled accounts are excluded.
Import-Module ActiveDirectory
$cutoff = (Get-Date).AddDays(90)
Get-ADUser -Filter * -Properties LastLogonDate |
Where-Object { $_.LastLogonDate -lt $cutoff } |
Select-Object Name, SamAccountName, LastLogonDate |
Export-Csv C:Reportsinactive.csv
The main bug: AddDays(90) puts the cutoff 90 days in the future, so almost everyone matches. The fixed script:
Import-Module ActiveDirectory
$cutoff = (Get-Date).AddDays(-90)
Get-ADUser -Filter 'Enabled -eq $true' -Properties LastLogonDate |
Where-Object { $_.LastLogonDate -and $_.LastLogonDate -lt $cutoff } |
Select-Object Name, SamAccountName, LastLogonDate |
Export-Csv C:Reportsinactive.csv -NoTypeInformation
This version leaves out accounts that never signed in (empty LastLogonDate); list those separately if you need them. LastLogonDate can lag by up to about 14 days.
5. Prompt 2: read a failed sign-in log
Task: Explain what is happening in these Windows Security log lines and what I should do first.
Context: I'm the IT admin of a 60-user office. Exported from our file and remote-access server (Windows Server 2022). 203.0.113.45 is not one of our addresses. Times are local.
Limits: Don't guess beyond the data; say what these lines can't tell us.
Output: 1-sentence verdict, then max 3 bullets of evidence (quote the codes), then max 5 numbered actions, most urgent first.
Check: Make sure every action is something a small office can do today.
[paste only the relevant log lines]
In the test log (made-up data): event 4625 is a failed sign-in, SubStatus 0xC0000064 means the user name doesn’t exist, 0xC000006A means a real account with a wrong password, and 4740 is an account lockout. The key first step: check for a successful sign-in (event 4624) from the same address.
6. Prompt 3: reply to a helpdesk ticket
Task: Write my reply to this helpdesk ticket.
Context: Office of 60 users on Microsoft 365. I'm the IT admin. Sara is not technical and is stressed. It's 9:30 now.
Limits: Max 120 words, plain English, friendly, no jargon. Never ask for her password. Don't promise a cause we haven't confirmed.
Output: Ready-to-send email text only, with the ticket number in the first line. Give her a way to get her email before 11, then 2-3 simple steps, then when I'll call her.
Check: Re-read it as Sara: is every step something she can do alone in 2 minutes?
Ticket #4821 from Sara (Finance): "Outlook keeps asking for my password since this morning!! I typed it 10 times. URGENT I have a client meeting at 11"
7. Six habits that save messages on free plans
- A new chat for each task; long chats carry old context along.
- Paste only the lines that matter, not the whole log or file.
- Say the format: “code only”, “max 5 bullets”, “email text only”.
- Say what to leave out.
- Save your standard context once, in custom instructions or a project (turn it off for a clean test).
- Ask it to check its answer against your limits before it replies.
8. Never paste these into a chatbot
More context doesn’t mean secrets. Never paste passwords, API keys, real customer data or full config files with credentials. Replace names, IP addresses and domains with placeholders, as in the test log above (203.0.113.45 is a documentation address).