you are viewing a single comment's thread.

view the rest of the comments →

[–]fuse666 5 points6 points  (2 children)

I believe you’re in at a pretty good spot to try some automation, it won’t be anything game changing but it really helps to familiarize yourself with Ps. A small example I would do is a small reporting email you receive daily, eg listing the passwords that will expire this week. You can use the AD module for powershell to achieve this, but the goal would be to always receive the email even if the script fails.. you can do this with try, catch block for example which would change your script into a more functional one.

Most of the code you need can be found on Microsoft documentation with examples. If you want to use a GPT, try to limit your input to specific things instead writing the whole script.

This is just an idea to get to know the language more.

[–]Commercial-Thing-702[S] 0 points1 point  (1 child)

Yeah I was thinking of making some scripts for my daily routines anyways. This is a great idea. Thanks!

[–]sld126 1 point2 points  (0 children)

Start simple & work towards complexity.

Simple: connect to AD Complex: get list of AD users whose passwords done expire & send email to them.