How to stay up to date with my posts

While the posts reside here, there are several ways to stay up to date.

  1. Just visit the blog on a regular basis at http://tech.necro-monkey.com or http://tech.michaelschultz.net
  2. On the left side of the blog, there is a way to subscribe and you will get emailed when a new post is made
  3. Follow my Facebook page at https://www.facebook.com/schultzsysadmin/
  4. Follow me on Twitter at @thenecromonkey
  5. I am also on LinkedIn at https://www.linkedin.com/in/michael-schultz-configman

Using VSCode snippets to apply your script template

Previously I wrote about the need for standardizing scripts and showed the template that I made. The question is how to easily start your scripts from the template.  You can open the template and save it as a new file but I think that is extra work I do not want to do.  If your script editor allows for the use of code snippets, things become easier.  My editor of choice is Visual Studio Code (VSCode) and I will show you how to create a code snippet for your template.  You can use this to easily add repeatable code to your scripts.  Again, this is being done with VSCode which is what I recommend as I love the script analyzer that it has as well as the ability to expand its functionality with community created extensions. Continue reading “Using VSCode snippets to apply your script template”

PowerShell Script Template

I recently went to Midwest Management Summit aka MMS (and if you are in the ConfigMan world and don’t go then you are missing out). A few of the sessions I attended were centered around scripting and how to improve things.  One thing that was brought up a few times is having a standard on how your scripts are formatted.  This is important as it helps when viewing the script to understand what it does and doing any work on the script.  With that I developed the following PowerShell template I would like to share. Continue reading “PowerShell Script Template”

Subscribe Now

I have added a subscription form to the sidebar for those that would like to be notified by email when I make a new post.  I may also send out the occasional newsletter or other such email, but I be spamming anyone or giving out your email addresses as I do not want people doing that to me.

Translating error codes to error messages in your ConfigMgr reports.

I was recently working on a set of custom reports on the configuration baseline and configuration item compliance. I noticed some systems failed on a few configuration items so I decided to bring in the ErrorCode info in from the v_CIErrorDetails view.  Unfortunately, as nice as error codes are to have, we don’t know what all of them mean so plain text reason for an error is helpful.  I am going to show you one way to do just that.

Continue reading “Translating error codes to error messages in your ConfigMgr reports.”