r/PowerShell • u/MadBoyEvo • Jan 06 '19
16 PowerShell Modules I've created in 2018
Looking back at my 2018 stats - https://evotec.xyz/sixteen-powershell-modules-that-ive-worked-on-in-2018/
Creating those 16 modules allowed me to achieve my goals for 2018. Hope you enjoy them as much I did.
2
Jan 07 '19
Really good work. Can you tell us more about what your job is, etc?
7
u/MadBoyEvo Jan 07 '19
My profile is public: https://www.linkedin.com/in/pklys/
Having said that I run a small company (Evotec) with 2-3 employees. I used to have 9 at some point but my assumption that I would train students and then those students would train further when they got better failed when one company came in and took 5 of them at the same time.
So now running a bit smaller company and mostly hiring people for a specific job, doing IT support mostly (with their hands).
Myself, I mostly work as a contractor for multiple companies, and basically, anyone can hire me (to some extent).
I am an Architect for AD, Exchange, Office 365 and overall Windows platform (as I do stuff on Hyper-V/SQL/SharePoint/RDS as well). I build those systems from scratch or doing migrations. Since I work with Clients that are 5-10-50-100-500-10000 and even worked for IBM with 200k mailboxes on 120 servers I have quite a unique perspective and knowledge where I am sometimes able to touch everything from the smallest things like Outlook, OneDrive, or Excel macros to managing Exchange on large scale. Sometimes it's frustrating that I have to fix someone's laptop or some boss brings me his home computer but it allows me to have a different perspective for many things which help in the end to be better.
I also work for MSP (a kind of) where I'm basically thrown at problems as a last resort. Don't get me wrong I don't know everything, but I do know enough to find a way to overcome a problem or know where to search. Due to touching a lot of different areas I may never be 100% complete at anything but I'm probably at 50-90% (to an extent) at everything I do which is enough to get me going at anything if I really want to.
Finally, I work from home, 95% of the time which allows me to decide on my day but also means I never stop working (and since my brain doesn't stop either I'm not sure if it's that bad). I quickly get bored and so I have to find something to do.
I also fly over Europe from time to time doing office moves (helping one company to disconnect routers, switches and connect them in a new location - setting up everything from scratch). Mostly manual work, providing TeamViewer for network guys. Sometimes I set up new offices using Unifi equipment for another Client. I don't do that often but doing manual stuff, stuff that in theory I should no longer be doing keeps me on the ground. I planned to have people for this, but since I am sent 2 times per year it doesn't make sense to hire anyone.
1
Jan 14 '19
This seems like a dream job for most. Have you been fairly happy with this lifestyle or would you rather work for a larger company as a manager/lead admin type?
1
u/MadBoyEvo Jan 14 '19
To be completely honest my job has lots of perks:
flexible hours (I work when I want - but that also means I work like 16 hours on and off)
remote work 95% of the time
lots of toys to play with (I'm software geek - so I'm more into software than hardware although gadgets do motivate me a lot - which means I need to earn money to afford them)
I rarely get bored due to different topics all the time - hence why I created so many modules instead of playing with one
I'm allrounder meaning I know a lot of different areas
What I don't like:
I would like to get paid more ;-)
Some stress kicks in, especially in non-it situations where you have to manage your people, think about contracts, payments and stuff like that. Being a consultant is great until they decide not to send your paycheck, or that your employee was sick so we won't pay your full salary. I was in situations where I've not been getting paid for service for months and had to pay my employees from my own pocket.
Expert in all, master at none - but this works both ways
I've worked for small and large companies and from my perspective when you work for a smaller company you learn much more than for a big one. In big one, you have to do one job and one job good. In a small one, you have to do it all. Of course, you won't be able to work with systems of 100k users but still, you learn a lot. So if you have an option to work for big IBM, Microsoft or whatever go for it. I had 2 years contract with IBM (not an employee) which was a great trip and something that taught me some things. But working for large company shuts you down a bit. You get your "place" when you manage Exchange and something touches AD you don't get to touch it, you just pass a ticket which is great, until you notice that you do same stuff day by day with no hopes for a change.
I'm kind of manager/lead admin type for few of companies already. Just not 1 :-) I would probably be bored with just one. I've applied a few times to some managerial positions but maybe a bit too soon so I was denied. Some companies after talking to me decided that I would be bored on some position and told me it would be a waste of my time.
So to summarize... I like what I do, I get to play with toys, I would only like to get paid more so I could focus on what's important to me. My salary comparing to what my colleagues from West Europe or the USA get is pretty low (at least on what I read). I recently started to charge more but I guess in 2019 I will search for a better-payed alternative. My only requirement is that it has to be a remote job more or less. I'm so addicted to working from home because I can build my own setup, great chair, great monitor, great PC, stand up desk, I even have coffee machine 4 meters away :-)
1
2
u/bask00 Jan 07 '19
Awesome!!! Can you tell me how to get that set of Active Directory scripts shown on PSWriteColor?
1
u/MadBoyEvo Jan 07 '19
It was an addon to what Patrick Gruenauer created.
https://sid-500.com/2018/05/22/active-directory-domain-services-section-version-1-1/
He uses standard Write-Host and I thought it would be a nice idea how Write-Color can actually simplify this kind of menu building.
2
u/RedditBeaver42 Jan 07 '19
I would like to contribute to PSWriteHTML, but am unable to make pull requests as I have already forked ReportHTML. I created an issue with more detail, https://github.com/EvotecIT/PSWriteHTML/issues/4
2
u/MadBoyEvo Jan 07 '19
You can probably create an organization and fork it there. It's a workaround but should work. I'm always asked to where I want to fork to. Can you check if it will work?
→ More replies (1)
1
u/Akuma92 Jan 06 '19
Thanks for sharing! Your work is a great motivation for a posh beginner like me!
1
1
u/pfunkylicious Jan 08 '19
For the PSPasswordExpiryNotifications module, how do I configure it to send the emails to the user and managers ? It seems that only the admin gets the email ?
Thank you.
2
u/MadBoyEvo Jan 08 '19
In config file you have 3 sections. Two of those sections are:
RemindersSendToUsers = @{ Enable = $true # doesn't processes this section at all if $false RemindersDisplayOnly = $false # prevents sending any emails (good for testing) - including managers SendToDefaultEmail = $true # if enabled $EmailParameters are used (good for testing) Reminders = @{ Notification1 = 1 Notification2 = 3 Notification3 = 10 } } RemindersSendToManager = @{ Enable = $true # doesn't processes this section at all if $false RemindersDisplayOnly = $false # prevents sending any emails (good for testing) SendToDefaultEmail = $true # if enabled $EmailParameters are used (good for testing) ManagersEmailSubject = "Summary of password reminders (for users you manage)" Reports = @{ IncludePasswordNotificationsSent = @{ Enabled = $true IncludeNames = 'UserPrincipalName', 'DisplayName', 'DateExpiry', 'DaysToExpire', 'SamAccountName', 'Manager', 'ManagerEmail', 'PasswordLastSet', 'EmailSent', 'EmailSentTo' TextBeforeReport = '"Following users which you are listed as manager for have their passwords expiring soon:"' } } }Enable = means section is enabled ReminderDisplayOnly = $false SendToDefaultEmail = $true
Make sure that you have Enable = $true RemindersDisplayOnly = $false SendToDefaultEmail = $true (for testing)
The default email is the one set in EmailParameters as EmailTo
$EmailParameters = @{ EmailFrom = "[email protected]" EmailTo = "[email protected]" # your default email field (IMPORTANT) EmailCC = "" EmailBCC = "" EmailReplyTo = "[email protected]" # email to use when users press Reply EmailServer = "" EmailServerPassword = "" EmailServerPort = "587" EmailServerLogin = "" EmailServerEnableSSL = 1 EmailEncoding = "Unicode" EmailSubject = "[Password Expiring] Your password will expire on <<DateExpiry>> (<<TimeToExpire>> days)" EmailPriority = "Low" # Normal, High }After you receive emails you were supposed to you can change that value to $false and users/managers will start getting those.
Managers are people set as managers in Manager field in AD for a user and they need to have proper data in AD for this to work.
1
u/GoneAPeSh1t Jan 11 '19
I couldn't find version requirements anywhere. Any chance PsWriteExcel works with V2 ? Unfortunately my employer's setup Is still running on 2008r2
1
u/MadBoyEvo Jan 11 '19
As far as I know, PS5 works on 2008r2 with SP1. https://www.microsoft.com/en-us/download/details.aspx?id=54616
Why not install it?
1
1
1
8
u/quarky_uk Jan 06 '19
Thanks for the modules, and inspiration! Your infrastructure documentation one directly inspired me to write one that documents my PSADT files.