this post was submitted on 09 Jun 2023
8 points (100.0% liked)
PowerShell
312 readers
1 users here now
A community dedicated to Microsoft PowerShell.
Rules
- Everyone is welcome.
- Treat others with respect at all time.
- When asking questions, please try to show what you have done, including code.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
So… I’m not a powershell expert by any means, I fell into a powershell hole about 3 weeks ago when I realized a lot of my time was spent logging into different tenants to make tiny changes. I know some of my team is afraid of powershell, it’s not super friendly without a little practice, then tracking down saved scripts, etc, for things you only do once.
So I set out with a plan to make a menu where staff can just pick what they want, login to the tenant, and make changes within seconds compared to 10-15 minutes.
Here is a screenshot of my menu - https://i.imgur.com/Me69i5z.png
Today’s task was creating a small form for changing Out of Office replies to 4 email accounts that change for nearly every holiday, so I have to spend 15 minutes logging into each email, changing the dates and message. I made a script, it’s the one marked out since it has some PII in the name. Anyway, it asks for the start date, end date, and the message, then within 10 seconds all accounts are updated and ready to go. Set it and forget it.
My code is a mess, but it works. Files are shared in Sharepoint and a profile is setup to grab any updated files when you first launch powershell and copy them to your local Documents/Powershell directory. Modules, external scripts, etc, updated on the fly until it gets too large of course.
Anyway, that’s my project, save time doing the same shit over and over in a user friendly console window, with documentation and the ability for any team member to use with little effort. Needed to toot my horn a little today, been watching videos and testing my codes for last 3 weeks.