Change log file location for all websites in IIS 7

Hi all 🙂 Today I had to change the location of all log files on all of the websites on the server. Since all sysadmins are lazy as hell, I wrote a simple powershell scripts that will do that. All you need to do is change the path from “c:\logs” to some other . Have […]

Remote MSSQL…oh, you imbecil! :)

Not very often, you will get the following error: Error: The server principal “” is not able to access the database “” under the current security context. This is because the MS SQL Server is attempting to execute a SQL query to retrieve a list of databases along with  some other formation about those databases. […]

Tune up my server, Mr. Admin aka – improve IIS 7/7.5 performance – part 1

Couple days ago, I had to setup a machine for a customer of ours who will host a web site for some Microsoft conference in Croatia. Since, this is the biggest IT conference in Croatia, I really tried to take everything to the next level and tweak the hell out of that machine 🙂 For […]

SpamBots+bad application+SQL server = PROBLEMS!

So…today I had a very interesting issue. All of a sudden Nagios went red with the message: CRITICAL : – total: 232.82 Gb – used: 212.67 Gb (91%) – free 20.15 Gb (9%) on one of our SQL server. I was like..”NO! It cannot be. I clearly remember that this machine had over 150 Gb […]

Using compression on IIS servers? Yes or no?

Well…in the very beginning, my answer is pretty much simple : yes AND no!  Why you ask?  Just keep reading… Compression, regardless if its the compression of static or dynamic content is using CPU – that is a fact we can all agree upon. Lets say compression is a tradeoff – CPU for bandwidth..use more […]