I have recently become a firm believer that every Windows administrator should learn and use PowerShell, I know many people have known this for years but at least the penny finally dropped for me.
Using PowerShell, either for day to day administration or to automate regular tasks will make things so much faster and easier and give you more time to research/study/work on stuff you actually enjoy. Firstly I want to show you three quick commands that can make working on your local workstation/server faster. These three are very easy and only scratching the surface of what can be done.
One of the daily checks I perform on our Windows Servers is to ensure they aren’t running low on disk space. There are a few ways this could be done, I could log on to each server individually …. but that would take longer than a full work day to complete. I could use SCOM or a 3rd party monitoring solution but that would cost money and I much prefer to not spend money.
The answer then?
Unless you have been living under a rock for the last few years you are probably well aware that Cloud hosted servers or (infrastructure as a service as it is called) is currently all the rage. It does have some great advantages, like not having to maintain any hardware and the ability to increase/decrease resources at the push of a button to name two of the big ones. However, it can be bloody expensive if you don’t manage it correctly.
One way to help lower the cost is to turn off non essential cloud based virtual machines when you aren’t using them. In my case I use my personal Azure subscription as a dev/test environment so I only need the machines powered on when I want to use them.
I’m sure by now you have all heard of PowerShell so I won’t go through the basics of what it is (you can learn that and much more here).
What I would like to go through is how I got started with learning PowerShell and what I think is the best way.
So with that in my mind here we go….