Archive for the ‘Microsoft’ Category

Standardized Logging Interface for PowerShell Scripts and CmdLet’s

February 5th, 2015 2 comments

A few weeks ago, my colleagues had a spotlight on the common .NET logging library NLog ( This specific class library, provides a lot of functions, methods and classes, to perform logging actions in .NET applications, assemblies, etc. in a very professional way. You can decide what you log, where you log (file, database, mail, console, etc…), how much you log, how the log data looks like and when the logs can be recycled, or archived.

Sound’s perfect to me i thought, and for me as an IT professional, it provides me all the features i require for logging, and i don’t need to write my own logging engine.

PowerShell becomes more and more important, even if you have a script, that runs well and you need to find out what’s broken, if you touched the script, a long time ago. Therefor, i thought it would be a cool thing, to have a kind of a “Logging Interface” for my PS-Scripts. Primary, my major goal was, to better understand how .NET-Objects and a scripting engine can interact together.

Important benefits

  1. Common logging functionality for all your PowerShell scripts
  2. Reusable code
  3. Easy to implement for the future

So let’s go ahead and start with the implementation of the LogInterface into your scripts. All you have to do, is, to include the LogInterface.ps1 script into your scripts. In PowerShell it looks like you see it below.

To get the logger work properly and use it, you have to perform the steps Read more…

Table monitoring & Table informations in SQL-Server databases

August 16th, 2014 No comments

If you are a database admin or developer you always should know and take care about, where tables are stored, how much space they consume and how data grows in the tables. One of the golden rules in SQL-Server database development is not to use the PRIMARY file group as the default location for user-tables in your projects.

Better create a new custom file group, and set it as the default file group. From my opinion, this is the point, where a good database design starts: “With the implementation of additional and customized file groups”. In this article you will find a fast example how to do that. I had to mention file group separation first, before we can move on, because this was actually my motivation to write that query and this blog post.

If you never think about it, or don’t even have an idea where the tables in the database are located, how big they are and how much rows your tables contains. You better take care of it…NOW!

Therefor i wrote a quick management query, especially aligned Read more…

The mysterious case of a crashing server (LanmanServer) service

July 27th, 2013 No comments

A few days ago, we had mysterious issues with one of our Windows Server 2008 R2 SP1 machines. The problem was noticed, because an information popped up in the system tray, of other terminal servers, that the Remote Desktop Licensing Service is not available on the network.

The source server of the problem was found pretty easy. After a troubeshooting for a while, i found out, that the problem-machine is not available via UNC-Path’s and Named Pipes.

If i tried: net use \\<troublemachine> from a remote system i received the error message, that the system is not available. So i searched for the service, that is responsible for providing this services, and this is the server service also known as LanmanServer. Read more…

Support the SQL-Server community

January 17th, 2013 No comments

Enumerate Database-Role Membership

November 12th, 2012 No comments

Hey Guy’s

here i am with my 1st SQL-Server Post!

If you want to know the membership of a database role, to what other database roles the role
belongs to, i have a good satatement for you.

Windows Terminalserver Farm & 8dot3 names

March 14th, 2011 No comments

Hey Folks!

currently i’m on the way to deploy a Windows Server 2008 R2 terminal server farm. One server is already up and running productive and the other is one step before going online. I work a lot of with GPO’s and user roaming profiles, to ensure to have excatly the same configuration on the new server for all users. Also i use control panel restrictions to display only neccessary .CPL’s to the user.

And one special control panel addin, what is shipped with the MS Office suite ML32CFG.CPL (responsilbe for configuring MS Outlook MAPI Profile), i discovered how important it is, to ensure that applications have to be installed in the same order as on the other terminal servers. Why, you may ask….because, of the 8dot3-names (8.3) and the windows internal file/path handling. In some cases the OS calls an an application it tries to use the 8dot3 path / name. Read more…

Categories: Microsoft, Windows Tags:

Soluto – Anti Frustration Software

June 14th, 2010 No comments

Soluto (

It’s an Awesome Tool, to Speed Up Your System Boot, Fix System Slowdowns

Sound’s very interesting and i’ll give them a try.

found via Lifehacker (…

Categories: Tools, Windows Tags:

Group Policy Search

May 2nd, 2010 No comments

Discovered via Daniel Melanchton’s Technet Blog

This is really a nice Tool to find existing Group Policies easily. The Group Policy Search

Thank’s Daniel for that helpful information.

Categories: Microsoft, Windows Tags: , ,

vCard export from PST-Folder (The easy way)

November 18th, 2009 No comments

Today i searched for a way, again, how to export each of my contacts in an MS Outlook PST-Folder into a vCard (.vcf) format.

Because Outlook doesn’t offer any internal routines to export vCards and the WWW doesn’t offer any suitable freeware, too, i made up my mind and a simple vCard export method was born. This method requires no plugin’s additonal software or something else!

PST to vCard export steps:

1. Navigate to your contacts you want to export and select them.

2. Now Right-Click the selected contacts and choose: “Send as business card”

3. An new e-Mail opens with each the vCards (.vcf) in the attachment field.

4. Click on a free space within the attachment area and select all exported contacts with Ctrl+A

5. Drag & Drop the selected business cards to a folder on the filesystem

6. Vioala… the export is done!

Categories: Microsoft, Tips&Tricks Tags:

Process Uptime Utillity

February 17th, 2009 1 comment

I wrote a small tool, what receives the uptime of an running process. Simply choose a PID of a process and enter it into the tool. This is possible trough input box or over a commandline call.

Download: Process Uptime V0.0.0.2


Categories: AutoIT, Tools, Windows Tags: , ,