For IT Support Technician / Help Desk Analysts ·
What you'll accomplish
By the end of this guide, you'll have GitHub Copilot installed in VS Code and generating PowerShell scripts from plain-English descriptions. Scripts that currently take 30-60 minutes of Googling and testing will take 5-10 minutes of writing comments and reviewing output. You'll be able to automate routine tasks — user creation, account audits, report generation — even if you're not an expert scripter.
What you'll need
What you should see: A Copilot icon appears in the bottom-right status bar. It shows "Copilot: Ready" when connected.
Troubleshooting: If you get "Could not sign in," try: Help → Toggle Developer Tools → Console to see errors. Usually resolved by signing out and back in.
your-script-name.ps1 — VS Code auto-detects PowerShellCopilot reads your comments and generates code suggestions inline. This is the core skill.
# comment describing your script's purpose:
# Get all Active Directory users who haven't logged in for 90 days
What you should see: Gray suggested code appearing after each Enter press. The suggestions anticipate what you need based on your comment.
Troubleshooting: If no suggestion appears, press Ctrl+Space to trigger one manually. Or wait a moment — suggestions sometimes take 2-3 seconds on the first request.
For multi-step scripts or when you want to describe the whole thing at once:
Write a PowerShell script that:
1. Reads a CSV file (columns: FirstName, LastName, Department, Title)
2. Creates an AD user account for each row
3. Sets the initial password to Welcome2026! and requires change on first login
4. Adds users to the "New Employees" security group
5. Outputs a summary log file to the desktop
Always test scripts before running on production AD:
-WhatIf to any destructive command to preview what would happen without doing it:
Disable-ADAccount -Identity $user -WhatIf
When a script throws an error: