You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run `Initialize-UserAdminModule` once, pointing it at the root of your function library. Pass `-UpdateProfile` to have it add the import line to your `$PROFILE` automatically.
40
+
Run `Initialize-UserAdminModule` once, pointing it at the root of your function library.
41
+
42
+
**Option A — minimal setup** (adds `Import-Module UserAdminModule` to your `$PROFILE`):
This writes a `config.json` to `$env:APPDATA\UserAdminModule\` so every UserAdminModule command knows where to find your functions. You only need to run this once per machine.
48
+
**Option B — full shell UX** (admin-coloured prompt, greeting, PSReadLine history — recommended):
`-UseSharedProfile` automatically picks the right bundled profile for your PowerShell edition: `SharedPowershellProfile.ps1` for PS 7+ or `SharedWindowsPowershellProfile.ps1` for PS 5.1.
55
+
56
+
Both options write `config.json` to `$env:APPDATA\UserAdminModule\` and make a `.bak` backup of your existing `$PROFILE` first. You only need to run this once per machine.
47
57
48
58
{: .tip }
49
59
> If you already have functions in a folder like `C:\Scripts\AdminFunctions`, point `-Path` there. No restructuring needed yet — see [Bring Your Own Functions]({{ site.baseurl }}/your-functions) for how to make existing libraries compatible.
0 commit comments