Archive for October, 2008

Considerations for virtualizing Exchange 2007 mailbox servers

Thursday, October 30th, 2008

Microsoft Exchange Server hardware virtualization is so popular that it seems as if everyone is moving their entire infrastructure to a virtual server environment. That being the case, I want to discuss some of the issues you may encounter when virtualizing Exchange 2007 mailbox servers.

(more…)

Exchange WMI Errors - WMI Repository Clear & Reinstall Script

Wednesday, October 29th, 2008

Finally found the solution to fix the “An error occured during a call to Windows Management Instrumentation ID no: 8004100e Exchange System Manager” error. It worked beautifully. I can now fully utilise Message Tracking on my Windows 2000 Exchange server.
I have to give full credit to Luke Edson at http://www.mrtweak.com/exchange-ser…install-script/
In essence, it incompases the solution given by Danielp ealier, but goes a little further. Just run this script:

(more…)

Stop Annoying and Bad Bots

Monday, October 27th, 2008

Original article

.htaccess file

# Deny domain access to spammers and other scumbags
RewriteEngine on
php_flag register_globals off
SetEnvIfNoCase User-Agent “^libwww-perl*” block_bad_bots
Deny from env=block_bad_bots

# Redirect index.php to domain.com
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.ewebsite.biz/ [R=301,L]

# Redirect domain.com to www.domain.com
RewriteCond %{HTTP_HOST} ^ewebsite.biz [NC]
RewriteRule ^(.*)$ http://www.ewebsite.biz/$1 [L,R=301]

(more…)

Screen Tips

Saturday, October 4th, 2008

A few snippets to make your prompt look better when using screen for linux.

Add the below to your .bashrc so each tab created when you generate a new screen shows user@hostname

function rename_screen_tab () { echo -ne “\x1bk$@\x1b\\”; return 0; }

if [[ "$TERM" = screen* ]]; then
PROMPT_COMMAND=’rename_screen_tab ${USER}@${HOSTNAME%%.*}’
[ "$HOSTNAME" = "hostname-of-mainbox" ] && PROMPT_COMMAND=’rename_screen_tab ${SCREEN_TAB:-$USER}’
fi

Add the below to your .screenrc

hardstatus off
caption always “%?%F%{= Kk}%:%{=u kR}%?  %h %-024=%{+b} %C%a %D %d %M %Y%{= db}”
hardstatus alwayslastline
hardstatus string ‘%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]‘
shelltitle “$ |bash”

Note: the hardstatus string should be on the one line.

Keyboard Short Cuts for Windows

Saturday, October 4th, 2008

This lists keyboard shortcuts that you can use with Windows.

Windows system key combinations

F1: Help
CTRL+ESC: Open Start menu
ALT+TAB: Switch between open programs
ALT+F4: Quit program
SHIFT+DELETE: Delete item permanently

(more…)

VirtualBox Fix

Saturday, October 4th, 2008

This file is used for the “Unknown” devices in a Windows VirtualBox machine. Its the SATA drivers that is missing.

How to update DNS through DHCP automatically

Thursday, October 2nd, 2008

If you are looking for configuration then you need it as follows:

Let us say domain is test.com
Domain nameserver, dns (named), samba and most of Linux services servers ip is 192.168.0.1
And network is 192.168.0.1/24 for dhcp ips are 192.168.0.10-60

(more…)

Horrid CPU Issues with VMWare and Hardware Interrupts

Thursday, October 2nd, 2008

Original Article

So I fought this problem all day long. My Windows XP VMWare image was running like crap. I started to poke around. The first thing I did was to bring up the task manager. Sure enough, my virtual CPU was pegged at around 55-60% when the vm was doing nothing. This is not good!

(more…)

Change SBS Backup Selections

Thursday, October 2nd, 2008

Run the SBSBackup wiz and make your selections as close as possible to what you want (or not, doesn’t really matter what is selected at this point) then fire up NTBackup. Programs, accesories, backup. Cancel the NTBackup wiz (if
it starts in wiz mode, default), go to the backup page and from the ‘job’ menu ‘load selections’. The SBSBackup wiz creates a selection file, Small Business Backup Script.bks in C:\Program files\Microsoft Windows Small Business Server\backup, it is this file you wish to load. Adjust the
selections in NTBackup and save the file.