IIS Log Analyzer

Download Log Parser 2.2 from the microsoft site. After the installation google is your friend Example Hits on a particular page by IP address LogParser -i:IISW3C "SELECT c-ip, COUNT(*) As Hits FROM C:\WINDOWS\system32\LogFiles\temp\*.log WHERE EXTRACT_FILENAME(cs-uri-stem) = 'default.aspx' AND sc-status = '200' GROUP BY c-ip Order by Hits DESC" -o:DataGrid Another great way to analyse log files is the tool: Log Parser Studio. With this tool you can easy query loggings with a GUI: ...

August 25, 2016 · 1 min · thomasf
slow-moving-websites-sign

Troubleshoot IIS hangs

I’ve created a batch file which find out what was hanging my .NET application. :loop CLS time /t >>crappy_site_log.txt %windir%\system32\inetsrv\appcmd list requests /elapsed:5000 >>crappy_site_log.txt ping -n 4 127.0.0.1 GOTO loop This command logs every request above the 5 seconds. This idea came from: https://www.leansentry.com/Guide/IIS-AspNet-Hangs

November 4, 2015 · 1 min · thomasf

IIS 7 and 7.5 rotate all logging

start powershell set-executionpolicy remotesigned Create a script with notepad get-childitem -Path C:\inetpub\logs\LogFiles -recurse | where-object {$_.lastwritetime -lt (get-date).addDays(-90)} | Foreach-Object { del $_.FullName } Save the script @ c:\scripts\del_old_logs.ps1 start cmd run: powershell.exe c:\scripts\del_old_logs.ps1 -noprofile -Noninteractive If you get a “child” question press A Start task scheduler Schedule the task program powershell c:\scripts\del_old_logs.ps1 -noprofile -Noninteractive Run the task wheter user is logged on or not Highest privileges not needed

September 6, 2013 · 1 min · thomasf

Install Thawte SSL Webserver or Wildcard (the Quick way)

After you successfully installed a web or wildcard SSL certificate you must follow some extra steps. First download this zip with 2 SSL certificates Extract the zip e.g. C:\install\ssl Start > run > mmc > file> add/remove snap in > certificates > local computer >computer account > Intermediate Certification Authorities > right click certificates > import Then disable the old certificate Expand Trusted Root Certification Authorities > certificates Locate this certificate: Common Name – thawte Primary Root CA Expiry Date – 17th July 2036 Thumbprint – 91 c6 d6 ee 3e 8a c8 63 84 e5 48 c2 99 29 5c 75 6c 81 7b 81 ...

December 16, 2010 · 1 min · thomasf

A revocation check could not be performed for the certificate

If this article helps you please consider a donation. I don’t like adds on my blog. When you get the RDP error “a revocation check could not be performed for the certificate” on a windows 7 workstation after you installed an SSL from a certification, you must disable enablecredsspsupport support. You can do this in the RDP file you are using. Open the *.rdp file in notepad and add the following line: ...

November 15, 2010 · 5 min · thomasf

WSS / Sharepoint Cannot access site from local server

You receive error 401.1 when you browse a Web site that uses Integrated Authentication and is hosted on IIS 5.1 or a later version Solution : http://support.microsoft.com/kb/896861 Method 1: Specify host names (Preferred method if NTLM authentication is desired) To specify the host names that are mapped to the loopback address and can connect to Web sites on your computer, follow these steps: Set the DisableStrictNameChecking registry entry to 1. For more information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base: 281308 Connecting to SMB share on a Windows 2000-based computer or a Windows Server 2003-based computer may not work with an alias name Click Start, click Run, type regedit, and then click OK. In Registry Editor, locate and then click the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0 Right-click MSV1_0, point to New, and then click Multi-String Value. Type BackConnectionHostNames, and then press ENTER. Right-click BackConnectionHostNames, and then click Modify. In the Value data box, type the host name or the host names for the sites that are on the local computer, and then click OK. Quit Registry Editor, and then restart the IISAdmin service. ...

August 18, 2010 · 2 min · thomasf

Restore IIS from backup

Give a IISRESET /STOP Browse to C:\Windows\System32\Inetsrv\ Rename the Histroy folder to History.old Rename the metabase.xml to metabase.xml.old Rename the mbschema.xml to mbschema.xml.old Place the following files from the backup: metabase.xml, mbschema.xml & Histrory to the C:\Windows\System32\Inetsrv\ folder Giva a IISRESET /START

March 11, 2009 · 1 min · thomasf