Module Rewrite, the beginning

Module Rewrite, the beginning

We’ve worked very hard to automate our environment where I work. As a part of that I’ve wrote a lot of PowerShell functions to perform various actions. I even went so far as to put together a module.

Well, I needed to rewrite this module and improve it, but I’ve had a hard time getting motivated, so I was thinking I would force myself into that by blogging about it. I plan on adding a function at least once a week and building this module up. If you like it, please share with your friends and let me know what you think. Now, to start the module, I’ve rewrote two functions I have put on this blog before, but made a couple of changes.

New-CMNLogEntry – I’ve changed this so that you pass a new parameter, logEntries. If you do not pass this, it will just write-verbose whatever the message is. I did this because I do like to log a lot of things, especially when I’m troubleshooting. So, I figured I would have the function check to see if the entry needed to be written or just written verbose.

Get-CMNSccmConnectionInfo – I’ve made it take advantage of the logEntries feature now in New-CMNLogEntry.

So, without further delay, here is the start of the module.  As always, I will have this in my bitbucket repository for your enjoyment.

 

2 thoughts on “Module Rewrite, the beginning

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: