Automation · PowerShell · Technical SEO

445 Articles. 416 Fixes. Zero Guesswork.

Hundreds of articles were missing author information in their structured data. Fixing them by hand would take days. Fixing them with one careless script would take seconds, and possibly overwrite the authors who were already there.

The invisible author problem

Search engines read a hidden layer of structured data on each article that says what the page is, who wrote it, and when. On one brand's article library, a lot of pages were missing the author part. Visitors couldn't see the problem. Search engines could.

The goal was simple: fill in the missing authors with the brand's editorial team, without changing anyone's visible byline and without touching articles that already had an author.

Why not just run an update?

Bulk-editing hundreds of live CMS records is the kind of thing that takes about four seconds to do and about four days to undo. A script that says "set the author on every article" would have worked. It would also have overwritten every real author name in the library.

So instead of one script, I split the job into steps, each one checking the last.

Inspect   → which field actually feeds the structured data?
        ↓
Audit     → which articles are truly missing it? (read-only)
        ↓
Update    → fill only the blank ones; never overwrite
        ↓
Publish   → push just those articles live
        ↓
Verify    → re-check that the fix actually shows up

Look before you touch

First I inspected the fields on an article to confirm which one actually feeds the structured data. It's easy to fix the wrong field, update hundreds of records, and change nothing anyone can see.

Then a read-only audit counted the articles with an empty author. The first pass flagged 445. After narrowing the scope to just the article section and re-checking, 416 author fields were actually blank. That gap is exactly why you audit first: the first number is rarely the right one.

Change only what needs changing

The update script had one rule it never broke: if an author is already there, leave it alone. It only filled fields that were genuinely empty, and it reported every item it changed.

Then I published only those articles, not the whole site, and ran a verification pass to make sure the author value was actually live where the structured data reads it.

The result

416 articles got their missing author, every existing author stayed exactly as it was, and no visible bylines changed. What would have been days of clicking through the CMS became a repeatable set of scripts I can point at the next library with the same problem.

What I took away

  • Audit before you update. The first count is rarely the real one.
  • Make "never overwrite" a rule in the code, not a promise in your head.
  • Split risky work into steps: inspect, audit, change, publish, verify.
  • Publish only what you changed.
  • A fix isn't done until you've checked it where the user (or the search engine) actually sees it.