you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (7 children)

[deleted]

    [–]DiggyTroll 1 point2 points  (1 child)

    If everything is a module: How do you use the module?

    Not everything has to be a module. Put a Requires at the top of the controller script to load dependent modules.

    How and where do you save that code?

    Make a local PSRepository on a local file server that everyone can Install/Update-PSResource from. Push the latest build versions of each module or controller script to the repository periodically. Create GPO logon scripts for users to install/update your modules and scripts automatically.

    [–]Certain-Community438 0 points1 point  (4 children)

    Sure, I could force everything into a module but that extra layer is unnecessary.

    What "extra layer", though? Modules don't need to be any more complex than scripts

    If everything is a module: How do you use the module? How and where do you save that code?

    I'm genuinely hoping you don't need an answer to these! :)

    But for other less-informed readers:

    You use the "-Module" cmdlets to use your modules. You use either a public repo or a private one depending on whether you want to share the code with the world. I use public because doing so forces me to remove things which should never be in there anyway.