Month: July 2009

Microsoft Exchange 2007: using Content Filter to fight Spam / Junk using Codepages

Spam filtering involves analyzing various pieces of information. The email itself is of course one full bag. The SMTP command parameters and DNS also contribute their share. Today we look at just one piece of the puzzle, the language used to author an email or more precisely the character set. Before moving further, I will…




Creating Microsoft Windows Installer Package MSI using Windows Installer XML (WIX)

The Windows Installer XML (WiX) is a toolset that builds Windows installation packages from XML source code. It is hosted under sourceforge.net (http://wix.sourceforge.net/). Since it is a toolset, the solution typically consists of a few console applications. candle.exe – is a compiler light.exe – is a linker dark.exe – is a MSI decompiler To get…



PowerShell: Enumerate Files recursive and get full path for each file

To enumerate all files of a specific path recursive and get the full path for each file using Microsoft PowerShell: Get-ChildItem -rec | ForEach-Object -Process {$_.FullName} to capture the output and generate an XML file do: Get-ChildItem -rec | ForEach-Object -Process {$_.FullName} | Export-Clixml c:\temp\report.xml to only enumerate / list files, use the psIsContainer switch:…




Exchange/Outlook: A security certificate has expired or is not yet valid

A self-signed Microsoft Exchange 2007 Security Certificate is valid for a period of one year. After this period you’re required to re-issue a new certificate. This can be done using EMS (Exchange Management Shell) and the New-ExchangeCertificate CommandLet (cmdlet). If you do not update / reissue the certificate, Outlook will complain about this issue displaying…



How to Direct In-Place Upgrade Windows 7 Beta or RC (Prerelease Version) to Windows 7 RTM

Officially Windows 7 does not allow upgrade path from prerelease version of Windows 7 such as Windows 7 Beta or Windows 7 RC (Release Candidate) to Windows 7 RTM, which has the build version 7600.16385. When user attempts to directly in-place upgrade Windows 7 RC or Beta or any pre-release version from within Windows 7…



Microsoft Hyper-V 0x80004005 Unspecified error – certificate expiration and resolution

It’s not the first time i got this error message and since i’ve solved it, i thought i’ll share this with the rest of the world. a quote from an Microsoft Blog Post on Technet: For those of you who’ve enabled the Hyper-V role in WS08. It has been determined that a certificate error can…



Convert AVI to FLV using ffmpeg

There’s a nice and extremly powerful tool called FFMpeg. Using this Tool you can convert almost any video format (AVI, FLV, MPG, MPEG, etc) to another to download the tool use google here example AVI to FLV ffmpeg.exe -i “c:\temp\myAviFile.avi” -ar 22050 -qscale .1 c:\temp\myFlvFile.flv” to batch-convert a whole directory full of AVI files: for…



Search for files using PowerShell

To search for files using Windows PowerShell is pretty easy. PS C:\> CD $Env:WinDir PS C:\Windows>Get-ChildItem -Recurse | Where-Object {$_.Name -match “notepad.exe”} this should result in something like. Directory: Microsoft.PowerShell.Core\FileSystem::C:\Windows Mode LastWriteTime Length Name —- ————- —— —- -a— 21.01.2008 03:46 169472 notepad.exe to supress any access denied errors, you can add the -errorAction “SilentlyContinue”…



PowerShell: UAC, SUDO, Elevation, Access to the path ‘C:\Program Files’ is denied.

Powershell on Windows Vista and Windows 7 runs restricted and not-elevated by default. Microsoft did a good job when they invented the so called UAC (User Account Control). As ususal, Microsoft started something new and did not finish it yet – the product is still not feature-complete. Well, probably it’s their philosophy to create thousands…




Solution: Microsoft.PowerShell_profile.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see “get-help about_signing” for more details.

Solution: Microsoft.PowerShell_profile.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see “get-help about_signing” for more details. Check the current execution-policy PS C:\Windows\System32> Get-ExecutionPolicy Restricted PS C:\Windows\System32> To change the current execution-policy use: Note: this command must be run elevated (Start Powershell using ‘Run as Administrator’) PS C:\Windows\System32> Set-Executionpolicy -ExecutionPolicy…