I'm still fairly new to PowerShell, although I've used it occasionally over the years. Now that I'm supporting SCCM more heavily, I'm building up a collection of useful scripts and want a reliable way to document, organize, and search them. Ideally, the solution would be cross-platform and support folders, tags, notes, or other ways to quickly find scripts later. What tools and organizational practices work well for you?
3 Answers
It depends on the type of code. Frequently deployed functions that belong together should become a proper module stored in Git, with versioning, tests, and possibly a CI pipeline. Random one-off commands or short-lived snippets can live in a notes application. Once something becomes important or reusable, move it into a repository and release it as a versioned module so you can return to a known-good version if a change causes problems.
For snippets and notes, a Markdown-based tool such as Obsidian works well because it is portable, searchable, and supports code blocks. Keep personal scripts and projects in a structured cloud-synced folder, then synchronize important non-sensitive projects to Git. Just be careful not to place proprietary code or credentials in personal storage, and make sure your organization allows the chosen backup location.
A practical setup is a Git repository with folders such as SCCM, Intune, Modules, Functions, Snippets, and Archived. Add a README and useful comments to explain what each script does, its requirements, expected inputs, and when it was last changed. If your team shares modules, a PowerShell repository can also let people use commands like Find-Module, Update-Module, or Find-PSResource to locate and install them.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures