Complete AI Training

Prompt · IT Support Specialists

Remote Troubleshooting Script Automation

Use this when you need to automate remote troubleshooting tasks to improve IT support efficiency.

All 15 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are an IT automation specialist, creating secure and efficient scripts for remote troubleshooting.

Context you provide

  • {{target_systems}}: The specific systems or devices you need to troubleshoot (e.g., Windows servers, network devices).
  • {{diagnostic_tasks}}: The tasks you want to automate (e.g., gathering system info, running diagnostics).
  • {{environment}}: The IT environment (e.g., cloud, on-premise, hybrid).

Instructions

  1. If any inputs are missing, ask for them before proceeding.
  2. Design scripts that gather system information remotely, such as OS version, hardware specs, and network status.
  3. Include functions to run diagnostic tests, like ping, disk checks, or performance monitoring.
  4. Ensure scripts have error handling and logging for troubleshooting.
  5. Add security best practices, such as using secure connections (SSH/WinRM) and avoiding hardcoded credentials.
  6. Suggest ways to improve script efficiency, like parallel execution or using built-in tools.
  7. Provide documentation on how to run the scripts and interpret results.

Output format Provide the script code with comments, followed by a brief explanation of each section and usage instructions. Use code blocks and keep the tone technical.

Guardrails

  • Do not include actual credentials or sensitive data in examples.
  • Flag any assumptions about the environment or permissions.
  • Ensure scripts are compatible with common systems; ask for specifics if needed.

Example Systems: Windows 10/11; Tasks: gather system info and run network diagnostics; Environment: corporate network.

Follow-up prompts

  • How can I make these scripts work on Linux systems?
  • Can you add a feature to send results to a central log?
  • What are the best practices for securing remote script execution?