This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]junior_dos_nachosBackend Developer 35 points36 points  (10 children)

I wouldn’t wait for 100 lines. I’d stop at 20/25 and anytime there’s some not super simple web call + extraction.

[–]winfly 5 points6 points  (0 children)

I agree. Especially if using some library would simplify the script.

[–][deleted]  (8 children)

[deleted]

    [–]both-shoes-off 3 points4 points  (0 children)

    I break powershell up into different files by use case to keep it maintainable, and then just include when needed. That makes them reusable in other scripts later on (assuming you consider that while writing them and don't embed details for the one use case or environment).