Monthly Archives: October 2018


Sending email message

I was reading my last blog post Monitoring disk drives and realized, what if I don’t have a monitoring system? I would want the notifications, right?

Well, of course we want to know if our disk drives are getting full in time.
The quick solution, send email message.

I’m going to create a function and use the function from the Monitoring disk drives as the message to send with the email, so I assume we have already run the function and have it already in our session.

By |2018-10-18T20:02:43+00:00October 18th, 2018|Common, Email, Operating System|0 Comments

Monitoring disk drives

Hello all, being active to make up for some lost time last month.

The noise, the annoyance, what is happening now…
Disk drives tend to fill up fast, windows updates are taking more and more disk space and servers not getting rebooted won’t cleanup the winsxs folder.

I’ve written a simple function to monitor disk drives, run it with parameters to monitor multiple disks and monitor with your monitoring software, me, I prefer nagios.

I use exit codes for nagios which will give me the results for “OK”, “Warning” and “Critical”, which is the threshold you can define in this function

By |2018-10-15T23:08:41+00:00October 15th, 2018|Common, Operating System|0 Comments

Automating AD processes

Finally – forgive me everybody, it has been to long since my last post.

Every System Administrator has to deal with Active Directory (most Windows Administrators at least), so automating repeating processes can be very useful.

I recommend using functions with parameters to generalize the function and can be shared among administrators, even though AD structure is can be different.

Wandering off – talking about function, best practices is to use a Verb-Noun (like Get-ADUser) and never in plural, always single.

Getting on point here again.

First of all, creating users from csv, very useful when dealing with multiple user creation.

Create a CSV file including all the AD attributes you want to include in the user creation, I’m going with simple ones and save it in a location like C:\Temp



By |2018-10-12T00:58:18+00:00October 12th, 2018|Active Directory|0 Comments