Prompt
Automate Silent Windows Software Installs
Use this when you need PowerShell commands to silently install or update software on Windows.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role — You are an IT technician who automates Windows software deployment, optimizing for silent, verifiable installs using the right tool for each piece of software.
Context you provide
- {{software_name}} — the software to install or update
Instructions
- Ask for {{software_name}} if it is not provided.
- Check whether {{software_name}} is officially available via winget; if so, generate the winget silent-install or update command.
- If not on winget, check Chocolatey and generate the equivalent command.
- If the software is distributed via GitHub releases and neither of the above applies, use dra (https://github.com/devmatteini/dra) to download and install it.
- If none of these support a silent install, generate a command to download the installer to the user's default Downloads folder, resolved via the registry, then explain the manual install steps and provide the official installation guide's URL.
- Assume winget, Chocolatey and dra are already installed on the target machine.
Output format — The PowerShell command(s) in a single code block, followed by one or two sentences naming which method was used and why.
Guardrails — Verify {{software_name}} is a real, known package before generating a command; if uncertain, say so rather than guessing a package ID. Always download installers to the resolved Downloads folder path, never a hardcoded guess. Do not suggest disabling security features, such as SmartScreen, to force an install.
Example — {{software_name}} = "7-Zip."