r/PowerShell • u/spoonstar • Apr 25 '19
Skills milestone achieved!
When I came into my first IT job five years ago, the place was a mess. GPOs were broken, random bat files everywhere, no model-independent OS deployment in place, lots of manual installers, 2500 users running as local admin, etc. Since then, I've taken it upon myself to fix every single one of those issues, and they are fixed. Business is happy, other techs are happy, great.
None of that gives me the same sense of accomplishment as today, when I got my first git repo to pass PSScriptAnalyzer rules, run Pester tests, and deploy to a centralized script location.
The rest of my department just uses my scripts - there's not much drive for understanding, but I needed an audience for my accomplishment.
Thanks for being a great resource, everyone.
23
u/vornamemitd Apr 25 '19
It‘s always good to see that there still are positive sysadmins out there! Don‘t lose your curiosity and keep up the good stuff :)
15
7
u/Bryan2009 Apr 25 '19
Man for a second there I thought you were in my head. For when I started my position the company was in the same place. I've managed to clean up the GPOs and update servers. For the most part I have MDT/WDS working and being able to image a machine with a base image. Would like to automate a lot more with powershell (or anything really). So I applaud for getting so much done and still have a thirst for everything.
5
u/spoonstar Apr 25 '19
MDT is a beast to get going 'the way you want it'. Having chocolatey around helped me out a lot.
2
u/spoonstar Apr 25 '19
Huge thanks to /u/ramblingcookiemonste for PSDeploy. We have 10 internal chocolatey servers, and you're about to make my job a whole lot easier.
2
2
u/Lagahan Apr 25 '19
I didn't know about pester tests! My scripts are about to get a shakedown 👀
2
u/spoonstar Apr 25 '19
Yours and mine both - Pester does a great job of making you re-evaluate your scripts and ensure it does what you think it does.
2
Apr 26 '19
Congrats.. Do you have advise on how to start or what to learn first?
2
u/spoonstar Apr 26 '19
It really depends on the issues you have at work. This is essentially how I approached it as time went on.
What am I doing repeatedly?
Can I do this in a shell vs the UI?
Can I do this to more than one computer at a time?
Can I effectively give the rest of my staff the same tools?
Can I make the computers fix it before our users even notice?
Can I give the tools to them as soon as it works so I don't forget?
Depending on where you're at, moving from one of those to another can take time, and that's okay. I was content at the second to last one for two years.
Use the resources that this sub always offers. The In a Month of Lunches books are great, as are the blogs of a few members here.
1
Apr 26 '19
When I first came as a technician/It Support if you will, I encountered the same problems you had like some users have administrator access.. All websites can visited.. No documentations and no process to start to follow.. I think my first step is to start documenting stuff..
4
Apr 25 '19
You cannot see it but I am clapping for you. Ever since I started using PS it's changed my life
1
u/RandomSkratch Apr 25 '19
My biggest question is how did you manage to remove local admin access from 2500 users unscathed!?
5
u/spoonstar Apr 26 '19
Honestly, it was a lot of prep work, but it was smooth once it got started.
I had an isolated (by group policy) VM with most of the applications our organization uses on it that had the 'no admin' GPO and I spent a month on that before I even broached the topic. We use have self-service for approved, packaged applications via Chocolatey, so the major potential complaint was nullified.
Once I was satisfied it could work, we increased the scope of 'removed access' to the IT department alone for a month, then spent a week per building or department. Every application that had an issue that could be solved via NTFS/registry permissions was tracked, and by the 4th or 5th staged rollout, we were essentially done but we kept to the process.
3
u/RandomSkratch Apr 26 '19
That's pretty awesome. Can you link to the resources you used for self service approved apps via chocolaty? Or do you mean you set up a local chocolaty repo that contained approved apps and users could install them if they wanted to? If that's the case did they use a GUI or are your users CLI junkies?
2
u/spoonstar Apr 26 '19
or are your users CLI junkies?
Oh, no. No, no, no.
We have a Chocolatey for Business license, which - among other features - has the background agent service that works in conjunction with ChocolateyGUI that is deployed to all user workstations.
We have a few private repos. They're all clones of each other, but they are physically distributed so both the verified updates we pull from the community repositories and the ones we've created for internal apps can be grabbed quickly from our various sites.
3
0
24
u/admiralspark Apr 25 '19
OP, you should write a blog post about this. A lot of sysadmins could benefit from knowing how to deploy from git versioning, how to use Pester as a sysadmin, and how to run the psscriptanalyzer tests.