As a way to kick off migration from Reddit to Lemmy, let’s start with a classic thread. So, what have you done with PowerShell this month?

For bonus imaginary points, have you done anything in regards to the Great Reddit Migration?

  • thermal_shock
    link
    English
    2
    edit-2
    1 year ago

    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.