2014年9月18日星期四

clean up outlook 2010 cache

Turn Off Cached Exchange Mode

Click the Start Menu > Control Panel > Mail
Click the button labeled Show Profiles
Highlight the profile you are using for Exchange email
Click the Properties button.
Click the Email Accounts button
Highlight the Microsoft Exchange account and click the Change button.
Uncheck the box that says “Use Cached Exchange Mode”
Click the Next button
Click Finish.


Delete OST files from hard drive

Windows 7: C:\Users\username\AppData\Local\Microsoft\Outlook
Windows Vista: C:\User\user name\Local Settings\Application Data\Microsoft\Outlook
Windows XP: C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook


Turn On Cached Exchange Mode

Click the Start Menu > Control Panel > Mail
Click the button labeled Show Profiles
Highlight the profile you are using for Exchange email
Click the Properties button.
Click the Email Accounts button
Highlight the Microsoft Exchange account and click the Change button.
Check the box that says “Use Cached Exchange Mode”
Click the Next button
Click Finish.
Restart Outlook


Once Outlook is restarted, all of your mailbox data  including email, calendars, tasks and notes will download to your computer again.  This process may take a while to complete depending on the size of your mailbox.  You can watch the progress in the lower right corner of the Outlook application window.

2014年9月17日星期三

Add new/replacement harddisk in Linux Raid 1(Mirror)

Example data like this
sda is original / source harddisk
sdb is new / replacement  harddisk

md0 members are sda1 and sdb1
md1 members are sda2 and sdb2

After you have changed the hard disk /dev/sdb, boot the system.
 ----------------------------------------------------------------------------------------------------------------
If you use a disk and it is contained some raid info, you need to erase the metadata using this command.
mdadm --zero-superblock /dev/sdb
 ----------------------------------------------------------------------------------------------------------------


sda is master/original drive
sdb new drive

after replace harddisk

boot the master harddisk. If bios have problem and cannot boot, boot rescuecd(you can download from search the web) via usb or CD.

after login and access terminal or command prompt.

copy partition table
sfdisk -d /dev/sda | sfdisk /dev/sdb

after that can verify use
fdisk -l

if ok then

add join harddisk to raid. add partition one by one
mdadm --manage /dev/md0 --add /dev/sdb1

mdadm --manage /dev/md1 --add /dev/sdb2

if md1 is big and boot up is using rescuecd, you can reboot pc using the new harddisk now due to md0 is boot partition and sync is completed. It can startup now.
After reboot, login to root and re-add md1 again using the last command.

God bless you!

2014年9月16日星期二

SBS Exchange send as a distrubutions group

You need to grant the users the "Send As" permissions. Not sure how to accomplish that on SBS 2003, but on Exchange 2003 or 2007 you will:
  1. Start the Exchange version of Active Directory Users and Computers
  2. From the View menu choose Advanced Features.(Must activate this option to see the Security tab after Properties)
  3. Right click the user who wants to let other people send messages on his behalf and select Properties.
  4. Select the Security tab and click Advanced.
  5. Select the Permissions tab and click Add.
  6. Enter the users who require the Send As permission, then click OK.
  7. You will see the list of permissions. Make sure that "This object only" is selected for the apply field, then scroll to the bottom and select the Send As permission. Click OK.
  8. OK the Advanced security dialog box, and OK the User Properties window to close.

2014年8月27日星期三

CentOS 6.5 Linux install raid 1 with efi firmware system


during the centos install.

make the two harddisk partition tables as below

sda (first drive)
- sda1 - FAT32 - /boot/efi - in firmware boot menu as "CentOS"
- sda2 - Linux software RAID - /boot
- sda3 - Linux software RAID - /

sdb (second drive)
- sdb1 - FAT32 - copy of /boot/efi - in firmware boot menu as "CentOS Backup"
- sdb2 - Linux software RAID - /boot
- sdb3 - Linux software RAID - /

example screen :




after the installation complete

do this commandsto make the secound harddisk bootable

# dd if=/dev/sda1 of=/dev/sdb1
# efibootmgr --create --disk /dev/sdb --label "CentOS Backup" --load "\\EFI\\redhat\\grub.efi"         

after that, update efi bios to boot the CentOS and CentOS Backup for the first and secound device in boot sequence.

2014年8月26日星期二

Clonezilla for raid 1(mirror)

If you want to use clonezilla to clone a raid 1(mirror) to single drive.

You can try this as below:

In the GRUB menu,
select your preferred boot menu item and then hit tab,

add "dmraid=false" and then press enter.

or someone said

add nodmraid without quote is also work!

This way, your can imaging one of the drives.

2014年8月19日星期二

Erase Disk with Linux DD Command

/dev/sda is the drive you want to erase. Please reconfirm the drive is correct or you will lost your data. Use it for your own risk!

Fill with zero like this

dd if=/dev/zero of=/dev/sda bs=1M
 
or Fill with random data like this
 
dd if=/dev/urandom of=/dev/sda bs=1M 

2014年3月24日星期一

windows cannot run .exe files

Let me fix it myself

To resolve this issue, you can do this and follow these steps.
Click the Start button and type regedit in the Search box
Right-click Regedit.exe in the returned list and click Run as administrator

Find the following registry key:

HKEY_CLASSES_ROOT\.exe
With .exe selected, right-click (Default) and click Modify…
Change the Value data:exefile
Browse to and then click on the following registry key:

HKEY_CLASSES_ROOT\exefile
With exefileselected, right-click (Default) and click Modify…
Change the Value data:"%1" %*
Browse to and then click on the following registry key:

HKEY_CLASSES_ROOT\exefile\shell\open
With openselected, right-click (Default) and click Modify…
Change the Value data:"%1" %*
Close the Registry Editor and restart your PC

user profile problem, restore from a backup

Fix the user account profile

To fix the user account profile, follow these steps:

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows How to back up and restore the registry in Windows
Click Start, type regedit in the Search box, and then press ENTER.
In Registry Editor, locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
In the navigation pane, locate the folder that begins with S-1-5 (SID key) followed by a long number.
Click each S-1-5 folder, locate the ProfileImagePath entry in the details pane, and then double-click to make sure that this is the user account profile that has the error.

If you have two folders starting with S-1-5 followed by some long numbers and one of them ended with .bak, you have to rename the .bak folder. To do this, follow these steps:
Right-click the folder without .bak, and then click Rename. Type .ba, and then press ENTER.

Right-click the folder that is named .bak, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.

Right-click the folder that is named .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press ENTER.

If you have only one folder starting with S-1-5 that is followed by long numbers and ends with .bak. Right-click the folder, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
If you have two folders starting with S-1-5 followed by some long numbers and one of them ended with .bak, you have to rename the .bak folder. To do this, follow these steps:
Right-click the folder without .bak, and then click Rename. Type .ba, and then press ENTER.

Right-click the folder that is named .bak, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.

Right-click the folder that is named .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press ENTER.

If you have only one folder starting with S-1-5 that is followed by long numbers and ends with .bak. Right-click the folder, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
Double-click the folder without .bak in the details pane, double-click RefCount, type 0, and then click OK.

Click the folder without .bak, in the details pane, double-click State, type 0, and then click OK.

Close Registry Editor.
Restart the computer.
Log on again with your account.