Thursday, September 29, 2011

VSS Snapshot warning. File %BeBootDrive%\bootmgr is not present on the snapshot.

Exclude the ASR writer from the list of approved writers

ASR writer id is '{BE000CBE-11FE-4426-9C58-531AA6355FC4}'.
1. Go to: Start  --> Run, key in regedt32, press Enter.
2. Then go to the HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\Backup Exec for Windows Servers \Engine\Shadow Copy Components\
3. Then create a new Additional Not Authorized Writers key.
4. Then, in the Additional Not Authorized Writers key, create a new String value under that key named ASR, with a value of {BE000CBE-11FE-4426-9C58-531AA6355FC4} Completing these steps causes Backup Exec to ignore the ASR components.

Sunday, September 11, 2011

Exchange Server 2010 & Event ID 106

There is nothing to worry about this error. Microsoft published article KB982679 - Event ID 106 is logged when you start the RPC Client Access service on Exchange Server 2010.
This problem occurs because the performance counters of the RPC Client Access service are not installed when you install only the Mailbox role on an Exchange Server 2010 server. However, this does not affect the functionality of the Exchange Server 2010 server.
It’s not so pretty to see many errors in Event Viewer after restarting Microsoft Exchange RPC Client Access service. Let’s try to manually add RPC Client Access performance counters.
Manually add RPC Client Access performance counters
  • Start Exchange Management Shell
  • Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Setup
  • New-PerfCounters -DefinitionFileName "C:\Program Files\Microsoft\Exchange Server\V14\Setup\Perf\RpcClientAccessPerformanceCounters.xml"

    image
  • Restart server or Microsoft Exchange RPC Client Access service.

Saturday, August 13, 2011

Tuesday, July 12, 2011

Add Full Access Right to Exchange 2010 user's mailbox

Get-MailboxDatabase -identity “Mailbox Database” | Add-ADPermission -user “Domain Admins” -AccessRights GenericAll

Saturday, July 9, 2011

Rebuilding Foreign Disk manually in LSI RAID

1. Download "MegaCli64" from LSI and store on c:\temp
2. Open Command Prompt
3. In command prompt, run "C:\temp\MegaCli64 -CfgForeign -Scan -a0"
4. If the result show "There are 1 foreign configuration(s) on controller 0", go to step 5
5. In Command prompt, run "C:\temp\MegaCli64 -CfgForeign -Clear -a0"

Tuesday, July 5, 2011

Change Remote Desktop Listening Port

1. Open Regedit
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

2.Locate the port number

3. Change from 3389 to 6389

4. Access the server with special RDP port, e.g. 192.168.0.11:6389

Wednesday, June 29, 2011

Friday, June 17, 2011

Delete a disconnected mailbix in Exchange 2010

1. Get-MailboxStatistics -Database "Mailbox Database 1166050598" | Where-Object {$_.DisconnectDate -Notlike $NULL} | FL DisplayName, DisconnectDate, MailboxGuid

2. The result should be

DisplayName    : USERMAN
DisconnectDate : 1-7-2010 16:00:48
MailboxGuid    : def4aabd-2156-5857-858f-470efc3e6f28

3. Remove-Mailbox -Database "Mailbox Database 1166050598" -StoreMailboxIdentity def4aabd-2156-  5857-858f-470efc3e6f28

4. clean-mailboxdatabase "Mailbox Database 1166050598"

Saturday, June 11, 2011

Move mailbox with many bad items

New-MoveRequest -Identity 'Kweku' -PrimaryOnly -TargetDatabase "DB01" -BadItemLimit 100 -AcceptLargeDataLoss

Tuesday, June 7, 2011

Exchange 2010 SP1 Mailbox Import

1. In Role Base Access Control (RBAC), assign Mailbox Import Export Role to administrator
2. Copy the pst file to share file e.g. \\mbx1\temp
3. In Exchange Management Shell, type
New-MailboxImportRequest -Mailbox 'user' -FilePath \\mbx1\temp\user.pst
4. Check the status, type
Get-MailboxImportRequest

Saturday, June 4, 2011

Active Sync error with Exchange 2010 Sp1 "Failed to create the account. Please try again later".

ExI have seen this error many times with iPhones, etc. This has been easily fixed every time by simply doing the following.
You will need to have access to Active Directory.
1. Go Active Directory Users & Computers (Enable Advanced Features if needed)
2. Open the properties of the user that is having the issue
3. Click on the Security Tab
4.Click the Advanced button
5. In the Default Permissions tab check the box at the bottom for "Include inheritable permissions from this object’s parent"
6. Wait for AD to propagate

Saturday, April 16, 2011

Offline Address Book: Mystery of The Missing Recipients

Offline Address Book: Mystery of The Missing Recipients

by Bharat Suneja on February 1, 2007
Frequently users report recipients missing from the GAL. So begins the mystery of missing recipients.
These are existing users, not new ones. New users don’t show up in the GAL for clients using Outlook 2003 Cached Mode clients, because Outlook uses an Offline Address List (aka “Offline Address Book” or OAB), which is generated once every 24 hours by default [read previous post "New user does not show up in GAL"]
In this case there are existing users who did show up in the GAL earlier but have disappeared now.
Scenario:
- Recipients are not hidden from Exchange Address Lists
- Recipients do show up in the “All Users” Address List
- Recipients do show up when Outlook’s not in Cached Mode
- Recipients resolve in Outlook Web Access
Some recipients may not be included in the Offline Address Book when it is generated, for a number of reasons.
With Diagnostics Logging for OALGenerator bumped up (in server properties | Diagnostics Logging tab | MSExchangeSA -> screenshot), the OAB was regenerated manually. Sure enough, errors were logged for the missing users.
Details:
Event Type: Error
Event Source: MSExchangeSA
Event Category: OAL Generator
Event ID: 9325
Date: 1/30/2007
Time: 3:04:17 PM
User: N/A
Computer: LETTER
Description:
OALGen will skip user entry ‘Joe Adams‘ in address list ‘\Global Address List’ because the SMTP address ” is invalid.
- Default Offline Address List
On closer inspection:
- The reason these recipients show up in the “All Users” Address List is because that Address List is not part of the OAB – only the Default GAL is, as shown in the screenshot below. Therefore, if you disconnect the client from the network, you can’t see the “All Users” Address List.
Default Offline Address List properties
- The default SMTP email address of the user – as displayed on the Email Addresses tab with uppercase SMTP: was jadams@exchangelabs.net.
Recipient Properties - Email Addresses tab
However, on the recipient’s properties | General tab, it showed up as Joe.Adams@exchangelabs.net.
Recipient Properties - General tab
- The address on the General tab was corrected to match the default email address – jadams@exchangelabs.net
- The OAB was regenerated, and complete OAB downloaded in the Outlook client.
Voilà, the missing users showed up!
And thus was solved the mystery of the missing recipients.

Tuesday, March 29, 2011

Error message when you try to set an IP address on a network adapter

  1. Click Start, click Run, type cmd.exe, and then press ENTER.
  2. Type set devmgr_show_nonpresent_devices=1, and then press ENTER.
  3. Type Start DEVMGMT.MSC, and then press ENTER.
  4. Click View, and then click Show Hidden Devices.
  5. Expand the Network Adapters tree.
  6. Right-click the dimmed network adapter, and then click Uninstall.

Wednesday, February 9, 2011

Install Centos 5.5 in Hyper-V

Hyper-V R2 brings some powerful virtualization to the table for those of us who do not have either the skills or the desire to work with virtual machineware. Most fans of Hyper-V are also likely to be well versed in Windows and may often lack the knowledge to rummage through Linux. Although there are many resources available regarding Linux on Hyper-V, I felt that most assumed the reader had intimate knowledge with Linux, which is often not the case.
For Windows administrators new to Linux who wish to provide virtualized services to their end-users, my recommendation is to stick to CentOS 5.5. Being a close derivative of Red Hat Enterprise Linux (RHEL), the officially supported distribution by Microsoft, installation of the Integration Components is simplified and stability is matched to what is found when running RHEL.

Requirements

You will need the CentOS 5.5 x64 installation DVD ISO (CentOS-5.5-x86_64-bin-DVD-1of2.iso) which can be found at http://isoredirect.centos.org/centos/5/isos/x86_64/.
You will also need the Linux Integration Services 2.1 ISO (LinuxIC v21.iso) available through the Microsoft Download Center at http://www.microsoft.com/downloads/en/details.aspx?FamilyID=eee39325-898b-4522-9b4c-f4b5b9b64551.

Initial virtual machine Settings

To create the initial virtual machine, you will need to use the Legacy Network Adapter and limit yourself to a single CPU. You will also want to take time to decide how large of a VHD to allocate ahead of time as expanding a Linux partition can be a little complicated. Personally, I find 20GB to be sufficient for small, single purpose Linux virtual machines.

Installing CentOS 5.5

After booting from the CentOS ISO, you are presented with the choice to do a graphical or a text mode installation. To choose the text mode installation (as used here), simply type “linux text” at the boot: prompt and hit enter.

To navigate throughout the next portion of the text mode installation, use the Tab key to navigate between fields and the Space key to select options or hit buttons.
You will be asked if you would like to do a media test. You can safely skip this.

The initial welcome screen to the installation process.

Choose your language as appropriate.

And your keyboard.

You must then partition your VHD for Linux. As you will be starting off with a fresh VHD, you can simply choose “Use free space on selected drives and create default layout.” and continue with OK.

Be sure to hit No to continue as hitting Yes will simply bring you back to the previous screen.

As long as you have properly configured your virtual machine to use the Legacy Network Adapter, you will be presented with the opportunity to have the installation configure it for you.

Check the “Enable IPv4 support” option and hit OK to continue.

Switch to the “Manual address configuration” option and enter your IP address and netmask as appropriate.

Continue on by entering your default gateway (usually your router or your network’s default route). If you have internal DNS servers for your network, enter them here or alternatively, you can use OpenDNS.

The name of your virtual machine is defined here as the hostname.

Select your time zone and continue.

Be sure to choose a secure root password as the root user has complete access to the entire virtual machine and SSH is enabled on first boot.

For a bare minimum installation, uncheck all of the packages, check “Customize software selection” and hit OK.

Uncheck all package groups and continue. Anything you require can later be installed by yum anyway.

Installation will begin once you continue past this screen.

Once installation is complete, you will be required to reboot.

After rebooting, you will be ready to login. At this point, I recommend connecting via SSH in order to copy and paste commands.

Preparing to install the Linux Integration Components

The first thing that must be done is to update all the base packages and upgrade the kernel to the latest version. Simply run a “yum update”, then reboot.
1
2
yum update
reboot
You will need to install the required “kernel-devel”, “gcc”, “make” and “perl” packages to compile and install the Linux Integration Components. Also, I suggest installing the VIM text editor.
1
2
3
4
5
yum install kernel-devel
yum install gcc
yum install make
yum install perl
yum install vim-enhanced.x86_64

Installing the Linux Integration Components

Attach the Linux Integration Services ISO. Once attached, you will need to mount the cdrom. You must then copy and compile the source in a temporary folder. Finally, you will be able install the Linux Integration Components. “make” will compile the source, then “make install” will install the compiled drivers.
1
2
3
4
5
6
7
mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp -rp /mnt/cdrom /opt/linux_ic
umount /mnt/cdrom
cd /opt/linux_ic
make
make install
The time synchronisation component is not compatible with CentOS, therefore you will need to install “adjtimex”.
1
yum install adjtimex
You will need to shutdown the virtual machine in order to enable the Synthetic Network Adapter and increase the number of CPUs allocated. To do so, run the shutdown command.
1
shutdown -h -t 0 0
Change the settings in Hyper-V once the virtual machine has completely shutdown.

Start the virtual machine and log in. You will need to reconfigure the network adapter as “eth0″ will have disapeared and a new adapter, “seth0″, will have taken its place.
The easiest way to do this is to edit the MAC address in the “eth0″ backup file to match the MAC address of the Network Adapter as displayed in the virtual machine settings in Hyper-V, then copy the backup file as “seth0″ and restart the network service. Don’t forget to also update the DEVICE line use “seth0″.
1
2
3
4
5
6
vi /etc/sysconfig/network-scripts/ifcfg-eth0.bak
(edit DEVICE and HWADDR)
(save and exit)
rm -f /etc/sysconfig/network-scripts/ifcfg-seth0
mv /etc/sysconfig/network-scripts/ifcfg-eth0.bak /etc/sysconfig/network-scripts/ifcfg-seth0
service network restart
If all went well, you will find yourself with a bare minimum install of CentOS 5.5 running the latest kernel and version 2.1 of the Linux Integration Services. Fully virtualized and synthetic. You can now enjoy the many benefits of Hyper-V Linux such as the ability to shutdown the virtual machine without the root password.

Slove Error Message in Lunix on Virtual machine

TSC appears to be running slowly. Marking it as unstable
Time: pit
clocksource has been installed
Add "clock: pit" to /boot/grub/menu.lst

Tuesday, January 4, 2011

Prevent or Prohibit Server Drives From Being Visible to Users

  To make changes to this policy for one of the seven default values: Start the Microsoft Management Console. On the Console menu, click  Ad...