As you may or may not know, I work in the IT sector, specifically as a Production Support analyst dealing with server & application support.
I am not a big fan of mundane and tedious tasks, who is? We’ve had a lot of talk about PowerShell in the office recently, but very few people seem to understand what it is, how to use it, or have the patience to learn any sort of scripting, so I’ve taken this as a great opportunity to get myself involved and learn this great language.
As I write new scripts, any that I feel would be useful to others, more so those that are not specific to my environment, I will be sharing them online, so I have created a scripts section here. Any scripts I upload are free to use and by all means feel free to ask questions and critique my scripts. I am only just starting out in the world of PowerShell, so I expect my scripts won’t be perfect or as tidy as they could be. I’m always happy to help others out and appreciate it when people critique my work as it helps me better my skills.
The first script I have uploaded is my Local Administrator Tool v1.0. This is a script I have written as I have found myself in a position where I have a service account that must be a local administrator on around 400 servers. I don’t particularly fancy logging onto 400 servers and manually granting this account local administrator rights, so I’ve created a script that I can just pass a username (or a list of users) and a list of servers (or just the one server if I fancied). It’ll then go off and, so long as the account running it has the permissions to do so, grant the local administrator rights to the specified account. Many hours saved! Hooray!