# PowerPack tips and examples

> Practical PowerPack examples - enabling the local Administrator, encrypting secrets, joining a domain, naming conventions, and suppressing command errors.

Source: https://docs.capaone.com/capainstaller/powerpacks/powerpack-tips-and-examples/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

Every PowerPack script must end by calling [Exit-PSScript](/capainstaller/powerpacks/exit-psscript/) with an explicit exit code — the `#### MAIN ####` block of the script template already does this for you (`Exit-PSScript 0` on success, or the caught exception's `HResult` on an unhandled error), so you normally don't call it yourself except to signal a controlled failure or one of the other [predefined exit codes](/capainstaller/powerpacks/exit-psscript/#predefined-exit-codes).

## In this section

- [Enable the local Administrator account](/capainstaller/powerpacks/powerpack-tips-and-examples/enable-the-local-administrator-account/)
- [Encrypt Secrets](/capainstaller/powerpacks/powerpack-tips-and-examples/encrypt-secrets/)
- [Function naming and calling conventions](/capainstaller/powerpacks/powerpack-tips-and-examples/function-naming-and-calling-conventions/)
- [Join a domain](/capainstaller/powerpacks/powerpack-tips-and-examples/join-a-domain/)
- [Suppress errors from a command](/capainstaller/powerpacks/powerpack-tips-and-examples/suppress-errors-from-a-command/)
