Step 7 — Script Preview & Test Run #
Displays the complete generated script in a read-only Monaco editor with PowerShell
highlighting. This is exactly what Invoke-AppDeployToolkit.ps1 will contain in your exported
package.
Actions on this page:
| Control | Description |
|---|---|
| Copy to Clipboard | Copy the full generated script |
| Deployment Type | Select Install / Uninstall / Repair for the Test Run |
| Deploy Mode | Select Interactive / NonInteractive / Silent for the Test Run |
| Test Run | Execute the generated script on this machine with the chosen parameters. Output streams into an embedded terminal below the editor. |
| Run as Admin | Toggle whether Test Run launches an elevated PowerShell (UAC prompt) |
| Test in Sandbox | Install the package on a clean, disposable Windows Sandbox machine with the chosen Deployment Type / Deploy Mode. A progress panel tracks the run; results and logs are collected back to this machine. |
| Terminal | Shows streamed stdout/stderr. Use the eraser icon to clear, the x to close. |
Test Run uses the same PSADT module and Files/ directory that would ship in the exported
zip. It has a 120-second timeout.
Test in Sandbox assembles the exact package that Export would produce and installs it in
Windows Sandbox — a pristine Windows image with no prior installs, so you see how the package
behaves on a clean client. Requirements and behavior:
- Windows Sandbox must be enabled once per machine: Settings → General → Windows Sandbox →
Enable Windows Sandbox (administrator prompt + one Windows restart). Not available on
Windows Home editions. - Choose
Silent/NonInteractivedeploy mode for an unattended verdict, orInteractiveto
click through the PSADT dialogs inside the sandbox window yourself. - Only one sandbox can run at a time. Cancel closes the sandbox mid-run; after the run,
Close Sandbox shuts the still-open sandbox window from inside Package Wizard. - When the run finishes, the panel shows the deployment’s exit-code verdict and the PSADT
deployment log (…_PSAppDeployToolkit_Install.log) inline. Everything inside the sandbox
itself is discarded when it closes — that’s the point.
Export is available from the Packages Workspace toolbar (not from this page) — see below.
Windows Sandbox #
Shows whether the Windows Sandbox optional feature is available on this machine, and enables
it without leaving the app. Windows Sandbox powers the Test in Sandbox action on the PSADT
wizard’s Preview & Test step (clean-machine package testing).
| State | Meaning |
|---|---|
| Enabled | Sandbox test runs are available. |
| Not enabled | Click Enable Windows Sandbox — Windows shows an administrator prompt, the feature installs (can take a few minutes), then a restart is required. |
| Restart required | The feature is installed; restart Windows to finish. |
| Not available on this edition | Windows Home editions don’t include Windows Sandbox. |
The Save Settings button at the top of the page saves General tab values and any
pending Package Configuration edits in one action.