Fix 1 of 2
Have AI write and explain admin scripts, then test them safely
AI writes PowerShell, Bash and Python admin scripts quickly, including Microsoft Graph and Google Admin API calls. Always run them against a test group first.
- 1Describe the job, the platform and the inputs using the prompt below.
- 2Read the script and the explanation; ask it to add a dry-run mode.
- 3Run it against a test user or group first.
- 4Save it in a shared repo with a short README.
Write a [POWERSHELL / BASH / PYTHON] script that [WHAT IT SHOULD DO] in [PLATFORM, e.g. Microsoft 365 via Microsoft Graph]. Inputs: [CSV, PARAMETERS]. Requirements: a -WhatIf or dry-run mode, logging to a file, clear error handling, and no hard-coded credentials. Explain each section briefly and list the permissions it needs.
Tools: ChatGPT, Claude, Gemini or Microsoft Copilot · Claude Code, OpenAI Codex, Cursor, GitHub Copilot agent mode or Devin Desktop (ex-Windsurf)