Designing safeguards for AI script generation

Role: Principal Designer & Researcher, AI for IT admins
Focus: Generative AI for IT admins · Appropriate reliance on AI
Results: Two priority use cases from a survey of 146 users · Concepts rated 90+/100 for usefulness · Safeguard designs tested in a controlled experiment

IT admins keep the servers that businesses rely on up and running, and a small mistake in their work can have a big impact. In 2024, when generative AI was just starting to show up in IT work, I led design and research for an AI-assisted tool for IT admins. How to make AI useful for admins while keeping their servers safe was the question that shaped this project.

Design for the most valuable tasks

Admins juggle many different tasks, so I started by finding out where AI could help the most. I surveyed 146 IT admins to rank 11 common tasks, and followed up with interviews to understand the reasons behind their rankings. Analyzing logs and writing scripts came out on top. When we tested early concepts for both, admins rated them 90 or higher out of 100 for usefulness. I tested two ways to work with AI: describing a task and reviewing the script in place, and asking questions in a side panel while checking the answer against the log.

Concept A: describe a task, review the script in place
Concept B: ask in a side panel, check the answer against the log

Design for the risks

Being useful comes with its own risk. In interviews and observations with 11 admins, many told us they know they should check AI-generated scripts, yet they would still run them without reviewing. A wrong command can take a server down. And the newer admins, who benefit the most from AI, are also the least able to spot an error.

With that in mind, I designed the tool so admins stay in control of what runs on their servers. Because AI output can change every time, the design doesn’t assume a fixed path from prompt to result. Admins describe what they need, and AI writes a script into the conversational interface. From there, admins can reivew, edit, run or generate a new script. Results appear in the same console context, with past scripts saved for later referneces.

Design with evidence

The next questions is whether people could take the right actions on AI-generated scripts. I partnered with Microsoft’s responsible AI researchers on an experiment with 56 IT admins. Each admin reviewed AI-generated scripts for common tasks, such as removing inactive user accounts or stopping processes that use too much CPU. Some scripts had errors in the generated results. In one, a missing sort setting meant the script would remove the administrator account. We tested a baseline experience with no guardrails against two safer design iterations: one that visually flags high-risk commands, and another featuring a ‘what-if’ preview to show potential consequences before execution.

Version 1: AI-generated label only
Version 2: high-risk command highlighted
Version 3: highlight plus a preview of changes

Both safeguards worked as a signal to slow down. With high-risk commands highlighted, admins were over four times more likely to edit a script before running it, and admins asked for both safeguards in the product. Catching the actual error was still hard, though. Even with safeguards in place, about three in four admins missed the AI-generated error in two of the three tasks.

The think-aloud sessions showed us why. Admins checked whether a script did what they asked, and they often spotted code that was missing, but rarely noticed code that was wrong. They relied on the comments AI wrote to understand a script and assumed those comments were correct. They also reviewed scripts that change a server much more carefully than scripts that only report information.

Based on these results, we recommended shipping either safeguard, starting with the preview if only one could ship, labeling AI-written comments as AI-generated too, and continuing to design for verification as AI takes on more of an admin’s work. Overreliance is an important design problem to tackle since people adopt useful AI very quickly.