About the Code Samples

One of the purposes of this blog is for me to post all the bits of code, batch files, registry modifications, and scripts I’ve created over the years in managing networks and computers. There is no sense having this stuff sit around in my head or gathering dust on my hard drive, so I’m putting it here for all to enjoy, bash, or just comment on if they find it useful.

Over the years, many utilities and tools have been developed, and there are many more choices than there used to be. The choices nowadays can be overwhelming, remember there is no silver bullet. There are numerous ways to accomplish the same tasks, and administrators all seem to have their preference as to which tools they use. If you are starting out, read the FAQs, search the web, and by all means view sample code. Chances are someone out there has already encountered the problem and developed a solution. You may never need to write a single line of code if you don’t want to, but what fun would that be? So keep your arsenal of tools fully equipped and up to date, you never know when you’ll need them.

I’d like to state in advance that if you see something here that looks like a repeat of other code elsewhere, let me know. Personally, I don’t like duplicate information and if there’s a better way, by all means I’ll retire mine. Also, I am not about creating mass quantities of content by filling this site up with information from other sites. So, now I’m off to find all the KixTart, Batch, VBScript, WMIC, etc… code I’m hoarding and start to groom it for posting. Until then, thanks in advance for visiting and I hope you check back soon.

About the Samples

Most of the code samples on this site have been developed by me, and I hope you find them useful. Some are quite simple, some are a little more in depth. There are some out of the box custom solutions for problems you may encounter, and some solutions to problems that you may never encounter. Some are simply methods to perform tasks that can be done manually. There’s some snippets that don’t make sense if you are managing a few computers, but if you’ve got hundreds I hope you will find them useful.

I’m using a Plug-in that formats code so it will stand out from the rest of the text. Below is an example:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    MsgBox("Hello World!")
End Sub

 

Disclaimer

Although I’ve tested and used the code here extensively, I can not reproduce every potential environment or condition. I’ve taken great care to ensure functionality and accuracy. Since some of the code samples on this site do more than retrieve information, you assume all risk when using them. Please test all scripts in non production environment or on non critical information systems.

Code by Jason Stenklyft are provided ‘as is’ without warranty of any kind, either express or implied, including, but not limited to, the implied warranties of fitness for a purpose, or the warranty of non-infringement.

Without limiting the foregoing, Jason Stenklyft makes no warranty that:

The code will meet your requirements

The code will be uninterrupted, timely, secure or error-free

The results that may be obtained from the use of the code will be effective, accurate or reliable

The quality of the code will meet your expectations

Any errors in the code will be corrected.

 

Code obtained from Jason Stenklyft:

Could include technical or other mistakes, inaccuracies or typographical errors May be out of date, and Jason Stenklyft makes no commitment to update such materials Jason Stenklyft assumes no responsibility for errors or omissions in the scripts or documentation. In no event shall Jason Stenklyft be liable to you or any third parties for any special, punitive, incidental, indirect or consequential damages of any kind, or any damages whatsoever, including, without limitation, those resulting from loss of use, data or profits, whether or not Jason Stenklyft has been advised of the possibility of such damages, and on any theory of liability, arising out of or in connection with the use of these samples.

The use of the code obtained from Jason Stenklyft is done at your own discretion and risk and with agreement that you will be solely responsible for any damage to your computer system or loss of data that results from such activities. No advice or information, whether oral or written, obtained by you from Jason Stenklyft shall create any warranty for the code.