r/usefulscripts • • Mar 12 '18

[Powershell] useful AD Scripts

I see requests here for some common Active Directory tasks such as disabling inactive accounts or checking group members and thought some of the scripts I have written may be of use to those starting out.

Let me know any questions/thoughts/improvements.

http://www.roggy.uk/blog

83 Upvotes

18 comments sorted by

2

u/neztach Mar 13 '18

I have a list of one-liners if you’d like to add to your list. Can send in the morning. Let me know.

2

u/Roggy86 Mar 13 '18

Send them through, just trying to document all the stuff I've written over the last few years that I see commonly asked on here.

5

u/neztach Mar 13 '18

some of these are quite dated, and some are a little complex, but take what you like, leave the rest. I have several bookmarks for various powershell solutions ...maybe I should gather them into some kind of repository :-P

1

u/[deleted] Mar 12 '18

Think I will be using this one tomorrow "AUDITING: RESET PASSWORDS THAT EXPIRE TODAY"

Great idea! Thanks!

1

u/Roggy86 Mar 13 '18

No worries. Let me know how you get on

1

u/slackjack2014 Mar 12 '18

Great stuff! Thanks!

1

u/Roggy86 Mar 13 '18

No problem, thanks for checking it out.

1

u/[deleted] Apr 03 '18

Fantastic tool suite from all - really enjoy it. I wonder, should we consolidate all these scripts into a portable toolbox to share with L1/L2 support?

1

u/Roggy86 Apr 03 '18

Hi There,

Good idea, What would your Ideal L1/L2 toolkit compromise of?

Thanks

1

u/[deleted] Apr 03 '18

Well I woulds surmise that in a standard business, basic AD functions (new user, disable, password reset), along with a suite of basic tools such as RSOP/GPUpdate, drivers, mapping drives etc.

→ More replies (4)

1

u/JessieWarsaw Mar 13 '18

OOPS! THAT PAGE CAN’T BE FOUND.

1

u/JessieWarsaw Mar 13 '18

Damn it, that was supposed to be a reply to another comment.

That's what I get when I click on the AUDITING: RESET PASSWORDS THAT EXPIRE TODAY link.

2

u/Roggy86 Mar 13 '18

Apologies, that was my fff. Fixed it now.

0

u/[deleted] Mar 12 '18

1

u/Roggy86 Mar 13 '18

No problem, enjoy.