A wrapper script surrounds commands with setup, monitoring, logging, and cleanup logic. With Active Setup, it makes pre-desktop execution observable by recording output and errors through Start-Transcript and try/catch/finally handling. section 11.4.3
A maintainable wrapper coordinates:
- A consistent mapping between the Active Setup registry key, versioned script in ProgramData, and per-user log in local application data. section 11.4.3
- Transcript options that add invocation timestamps and append multiple runs to the same log. section 11.4.3
- A reusable function that accepts a name, version, and script block instead of encoding one-off commands. section 11.4.3
Provisioning Git for users
A wrapper can install Git, configure system-wide behavior, then use Active Setup to apply a global default branch and record the resulting configuration.
