Windows 2008 CA: Error 401 – Access is denied

Windows Server’s Certification Authority offers a web interface to request certificates, available at the following URL: https://nomeserver/CertSrv. When I tried to connect to an Enterprise CA installed on a Windows 2008 server, I got this error message: 401 – Unauthorized: Access is denied: Open the IIS management console, select CertSrv virtual directory and click Authentication: Choose Windows Authentication and, on the right,…

Exchange 2003: how to log IMAP sessions

Today, I needed to record IMAP sessions on my Microsoft Exchange 2003 server to debug a client. You can enable session logging with the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IMAP4Svc\Parameters Two values control logging behavior: IMAP4 Protocol Log Level ->logging level (0 = disabled, 5 = maximum); IMAP4 Protocol Log Path -> folder logs will be saved in. You…

Windows 7: how to clear “pinned list”

A useful feature added in Windows 7 is the jump list you can get with a right click on Windows Explorer icon located in the taskbar. You can also “pin” some resources in the top pinned list: Because of a bug, if you previously added to pinned list a resource (for example a network share)  not available anymore, you can’t remove that resource.…

Powershell, how to get parameters from a file

I wrote the following snippet when a friend asked me some help: he needed to execute a command several times, getting its parameters from a CSV (comma-separated values) file. the parameters.csv file contains the following informations: IP address username password Here’s the script: $file = Get-Content "C:\parameters.csv"   foreach($row in $file) {   $parameters = $row.Split(","); $ipaddress = $parameters[0]; $username…