# How do you manage your powershell script library?

**URL:** <https://forums.powershell.org/t/how-do-you-manage-your-powershell-script-library/5472>\
**Category:** PowerShell Help\
**Created:** [January 6, 2016, 8:37am UTC](https://forums.powershell.org/t/how-do-you-manage-your-powershell-script-library/5472 "2016-01-06T08:37:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wei-yen-tan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/wei-yen-tan/32/91_2.png) [@wei-yen-tan](https://forums.powershell.org/u/wei-yen-tan)\
**Post date:** [January 6, 2016, 8:37am UTC](https://forums.powershell.org/t/how-do-you-manage-your-powershell-script-library/5472/1 "2016-01-06T08:37:28Z")

</div>

I am just starting to build a whole lot of scripts but I don’t think I am organising them properly/efficiently.

I was just wondering how you guys organise your scripts (folder structure wise) before you put them into modules for final use so I can pick up some ideas.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![wilfredo-perez](https://avatars.discourse-cdn.com/v4/letter/w/e99b99/32.png) [@wilfredo-perez](https://forums.powershell.org/u/wilfredo-perez)\
**Post date:** [January 6, 2016, 9:03am UTC](https://forums.powershell.org/t/how-do-you-manage-your-powershell-script-library/5472/2 "2016-01-06T09:03:54Z")

</div>

I have a folder called scripting. Under that folder I have two other folders called vbscript and one the PowerShell. In the PowerShell folder, I create subfolder and the folder name depends on what I am working with. Ex. AD,Sccm,Gpo

---

<div class="post-metadata">

**Author:** ![stackexchangeuser4](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/stackexchangeuser4/32/306_2.png) [@stackexchangeuser4](https://forums.powershell.org/u/stackexchangeuser4)\
**Post date:** [January 6, 2016, 8:59pm UTC](https://forums.powershell.org/t/how-do-you-manage-your-powershell-script-library/5472/3 "2016-01-06T20:59:11Z")

</div>

Efficient methods really depend on the person and environment. Personally most of my scripts are pretty short so I have “Testing” and “Archive” folders for WIPs and finished scripts respectively, and I just give them descriptive names.

Currently I can find everything I’m looking for easily but when the library expands to the point this is less easy I can use Get-ChildItem | Where Name -like “_keyword_” - To go a step further I use Get-Content and search the scripts themselves. Could even add these to a module so you only need to type Get-Script “_keyword_” or something and have a switch to open results in the ISE.

If you have several categories you may wish to split them into subfolders but for me this would only confuse things as my categories would need to be so specific I’d find scripts applying to more than one, so again it depends on what you’re doing and how you like working.

---

<div class="post-metadata">

**Author:** ![mark-hammonds](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@mark-hammonds](https://forums.powershell.org/u/mark-hammonds)\
**Post date:** [January 6, 2016, 11:04pm UTC](https://forums.powershell.org/t/how-do-you-manage-your-powershell-script-library/5472/4 "2016-01-06T23:04:28Z")

</div>

yup I just dump them into one big folder called scripts. then get-child-item bla bla -recurse | ?{$\_ -like “kittens with bow ties”}

---

<div class="post-metadata">

**Author:** ![dan-potter1](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@dan-potter1](https://forums.powershell.org/u/dan-potter1)\
**Post date:** [January 6, 2016, 11:31pm UTC](https://forums.powershell.org/t/how-do-you-manage-your-powershell-script-library/5472/5 "2016-01-06T23:31:42Z")

</div>

folders for each company I work for. Under that folders by project, folder for oneoff scripts I’ve written for other people, folder for reports.

for gui’s I write, I use sapien which organizes them into projects and files. It also has a start tab that lists all the recent scripts.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:44pm UTC](https://forums.powershell.org/t/how-do-you-manage-your-powershell-script-library/5472/6 "2024-05-16T20:44:21Z")

</div>


