Script Dumpster

At my job I tend to have quiet and busy periods, just like everyone else.

At some times I even have very busy periods… like now.
Because of that I tend to not have time or motivation to do any blogging, but that doesn’t mean I’m not doing anything productive.

Because of that I thought “why not just share the work I’m creating?”.

An idea was born….

Then it hit me..

Why not make quick and simple posts containing a short description of the problem I was facing at the time, followed by the solution [be it a one-liner, script, function etc.].

So there we have it…

I will try and keep this a bit more up-to-date and will just post snippets or sometimes even work-in-progress, perhaps it’s interesting and it can help you with your own projects.

If anything, it will stimulate me to document my work better 🙂

Without further ado

Here’s the link to my first quick Script Dumpster post, with hopefully more to follow!

Happy scripting! 🙂

Facebooktwitterredditlinkedinmail

Script dumpster: Get-AutoStartService

The Problem

A frequent issue on servers is when services that are supposed to start simply haven’t started.

There’s a simple one-liner that can show you the services that meet these requirements for you:

Want to directly start up these services? Not a problem!

The Function

I prefer to make my solutions re-usable because well.. I’m lazy.

In case you have the same feeling, here’s the function I’ve created for this with some added functionality.

 

If you have any questions about the function, pieces of code used or perhaps tips [if you have any, please do share!!], let me know and leave a comment.

Happy scripting! 🙂

 

Facebooktwitterredditlinkedinmail

Reasons to blog

Blog

As I’m pondering what to write for my first proper techy blog post, I’ve got to thinking about WHY I’ve chosen to blog in the first place.

Learning by doing…

I’m generally a lurker on forums and social media.

Whenever I need something, I go to Google and have a field day trying to find out of someone has had the same issue that I’m experiencing and hopefully someone has solved it for them.

While this is perfectly fine, over the last few months I’ve noticed that participating in the whole “social” world makes you think about PowerShell more, makes you actively work with PowerShell more and basically it gets you more involved, learning by doing.

It might give you perspectives that you’ve never thought about before [there’s multiple ways to Rome..] and just lets you think about issues you might never think about/come across in your normal day of work.

So for me, blogging makes me have to actively think about PowerShell and DO something with it.

Growing by teaching…

Another point for me to start blogging has to do with my lurking again.

I’m on Twitter, but I never used to be actively participating in it… I just read articles tweeted or retweeted by people I followed, but never posted anything.

Until I read the following article by David Sanoy: Be a PowerShell Champion.

I won’t copy the entire contents, but to sum it up:

You don’t need to be the best in PowerShell, but by sharing, teaching, promoting and helping people, you yourself can be a “Champion” of PowerShell within your company/community.

Based on this, with the help of some of my colleagues we started having active tech sessions at work and I gave a presentation on “What is PowerShell” and basically trying to introduce my co-workers to the magic that is.

The amount of people showing up, the reviews, the “high” and all was unexpected to me and really gave me a kick….

I liked teaching people, I liked getting people enthusiastic about something.

Another added bonus was that while preparing for the presentation, I noticed that I had to really KNOW what I was telling them.

Through blogging I’d like to get the same experience, but with a wider audience!

Facebooktwitterredditlinkedinmail