Posts

File Check with MD5 Hash Using Linux

There are many times that you need to be sure that a file you downloaded from the internet or copied from a location is the same as the original. There are many tools that can help you with that but my favorite is md5sum (and md5deep when it comes to comparing directories). The usage is very simple. The command md5sum FILE will show you the hash for the file and the file name. So the only thing you have to do is get the sum of the original file, the sum of your file and compare them. If they are the same, your file is not corrupted or tampered with. Comparing the hashes your self may not be very easy but there is a way to do it using a hash file. Simply save the result of the above command to a file, like md5sum FILE > hashfile.md5 and then use the option -c to compare the hash of your file to the hash in the hashfile. I always use relative paths because that way you can export the hash of the file to a hash file that is on the same directory with the original file for exam...

Windows 2008 R2 Activation Period Extension

There have been many times that I needed to use a Windows 2008 R2 operating system in a virtual inveronment for testing and writting guides. But after the activation period ends you have to enter a valid serial in order to continue using the OS. In case that period has expired and you do not have the time to set up a new VM or your working on a production server that need to be activated you can just rearm it. To rearm you just have to run the command slmgr.vbs -rearm  on a command prompt with elevated priviedges. After that restart the server and you'le have 30 days left to activate. Be vary carefull because you can only do this three times... Below are some keys: Windows 2008 R2 Web: KBV3Q-DJ8W7-VPB64-V88KG-82C49 Windows 2008 R2 Standard: 4GGC4-9947F-FWFP3-78P6F-J9HDR Windows 2008 R2 Enterprise: 7PJBC-63K3J-62TTK-XF46D-W3WMD Windows 2008 R2 Datacenter: QX7TD-2CMJR-D7WWY-KVCYC-6D2YT  

Microsoft Office 2003 Registration Info After Uninstall

Recently I had to uninstall Microsoft Office 2003 from a computer and then install Microsoft Office 2007. The were no errors on both processes but when I scanned the computer with Spiceworks, it appeared  to have Office 2003 installed as well as 2007. That is because the registration info is not removed when the product is unistalled. In order to remove that info, you have to delete the following key and it's subkeys: HKLM\Software\Microsoft\Office\11.0\Registration You should backup your registry before making any changes, or at least the keys you 're about to delete.  

Microsoft Exchange 2007 and Email Forwarding

A very common scenario is the one where you are using Microsoft Exchange Server 2007 as your communication system and you have users that want their messages to be forwarded to another address. For example, your domain is foo.com and you have a user that already has an email account at bar.com. If you do not want to create a mailbox on your exchange you can simply create a mail contact and on that mail contact you have to set the address at bar.com as Reply and External and add the address that you want the contact to have on your organization.

MPI.NET Installation and Usage

MPI.NET  is a great MPI implementation for MPI and C#. You can find installation instructions on the mail page but to summarize the procedure all you have to do is: Install  Windows Computer Cluster Install MPI.NET runtime or SDK on all computers You can then test the MPI installation by running pingpong.exe just like it's described in the tutorial. In order to start an application on another computer you must start the smpd service by starting smpd.exe on  microsoft compute cluster bin folder with -d as argument. You also have to create rules that allow mpi traffic on your firewall for mpiexec and your application.

Microsoft Exchange 2007 Agent Logs

Unfortunately, the logging for the rejected or deleted messages in Exchange Server 2007 is a bit poor. There is a set of commands that may help examining the log: Display the log for the specific period: Get-AgentLog -StartDate “4/16/2007″ -EndDate “4/17/2007″ Get-AgentLog -StartDate “4/17/2007 8:00 AM” -EndDate “4/17/2007 2:00 PM” Filtering in order to show messages to a particular recipient : Get-AgentLog -StartDate “4/16/2007″ -EndDate “4/17/2007″ | where {$_.recipients -like “foo@yourdomain.com”} To search for messages from a particular sender : Get-AgentLog -StartDate “4/16/2007″ -EndDate “4/17/2007″ | where {$_.P1FromAddress -like “aqe@easymoney2u.com” -or $_.P2FromAddresses -like “aqe@easymoney2u.com ”} There are more commands, that can help you filter the log for the agent or the host IP address and other stuff.   Many thanks to Bharat Suneja for this article.  

Autodesk TrueView 2012 Aunattended Setup

I was trying to deploy Autodesk Trueview 2012 but I could not find a MSI package in order to use it with GPO. If you download the installation file and extract it's contents you can use the following command in order to perform a silent installation: setup.exe /Q /W /I setup.ini Further setup options can be configured on setup.ini file. This command in combination with psexec tools can help you deploy the package.