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

Friday, July 1, 2011

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"

Sunday, June 12, 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...