Here is the quick command that you can use to view the properties of an Exchange 2007 user.
Get-CASMailbox -Identity jsmith fl more
You can use the following cmdlet to set RPC over HTTPs (Outlook Anywhere).
Get-CASMailbox -Identity jsmith Set-CASMailbox -MAPIBlockOutlookRpcHttp:$false
Monday, February 22, 2010
Moving Mailboxes - Exchange 2007 SP1
Something very interesting happened the other day when I decided to use the Move-Mailbox cmdlet in Exchange 2007 to move about 350 mailboxes from one storage group to another. I ran the following command first:
Get-Mailbox -Database mailsrvr\SG07\SG07-DB01 -ResultSize unlimited Move-Mailbox -TargetDatabase mailsrvr\SG01\SG01-DB01 -MaxThreads 15 -PreserveMailboxSizeLimit -ReportFile C:\MoveResultAll.txt
It just took forever to move mailboxes. Note that I used 15 threads to move mailboxes thinking that it would move 15 mailboxes at once. The size of mailboxes on average was 150-200 MB. I was expecting this to finish within 3-4 hours. I finally decided to cancel the task and started to investigate as to why it took this long for these to move. I finally came to the conclusion that it was because some the large mailboxes took forever to move and caused bottle neck for other many smaller mailboxes. But I was kind of surprised because my own mailbox is nearly 800 MB and it took 10 minutes to move. I mean we have a pretty heavy duty Exchange server. So next day I tried the following script to larger mailboxes will be moved first and then all smaller ones.
Get-MailboxStatistics -Database mailsrvr\SG08\SG08-DB01 Sort-Object TotalItemSize Move-Mailbox -TargetDatabase mailsrvr\SG10\SG10-DB01 -MaxThreads 30 -PreserveMailboxSizeLimit -ReportFile C:\MoveResult_All.txt
It still took forever and after 2 hours it had moved only 15 mailboxes. Note that this time I even used 30 threads to move mailboxes.
I finally decided to move mailboxes using Move mailbox wizard. You an use up to five mailboxes at a time with default of 5 threads and with 10 wizard windows open.
This turned out to be very fast as I was move 50 mailboxes on an average of 30 minutes.
I am surprised that there was too much delay when using PowerShell to move mailboxes on the same server on Exchange 2007. I used same commands to move mailboxes from Exchange 2000 to Exchange 2007 during the migration. However, there I was using multiple shell window to run Move-Mailbox cmdlet using different OUs.
Get-Mailbox -Database mailsrvr\SG07\SG07-DB01 -ResultSize unlimited Move-Mailbox -TargetDatabase mailsrvr\SG01\SG01-DB01 -MaxThreads 15 -PreserveMailboxSizeLimit -ReportFile C:\MoveResultAll.txt
It just took forever to move mailboxes. Note that I used 15 threads to move mailboxes thinking that it would move 15 mailboxes at once. The size of mailboxes on average was 150-200 MB. I was expecting this to finish within 3-4 hours. I finally decided to cancel the task and started to investigate as to why it took this long for these to move. I finally came to the conclusion that it was because some the large mailboxes took forever to move and caused bottle neck for other many smaller mailboxes. But I was kind of surprised because my own mailbox is nearly 800 MB and it took 10 minutes to move. I mean we have a pretty heavy duty Exchange server. So next day I tried the following script to larger mailboxes will be moved first and then all smaller ones.
Get-MailboxStatistics -Database mailsrvr\SG08\SG08-DB01 Sort-Object TotalItemSize Move-Mailbox -TargetDatabase mailsrvr\SG10\SG10-DB01 -MaxThreads 30 -PreserveMailboxSizeLimit -ReportFile C:\MoveResult_All.txt
It still took forever and after 2 hours it had moved only 15 mailboxes. Note that this time I even used 30 threads to move mailboxes.
I finally decided to move mailboxes using Move mailbox wizard. You an use up to five mailboxes at a time with default of 5 threads and with 10 wizard windows open.
This turned out to be very fast as I was move 50 mailboxes on an average of 30 minutes.
I am surprised that there was too much delay when using PowerShell to move mailboxes on the same server on Exchange 2007. I used same commands to move mailboxes from Exchange 2000 to Exchange 2007 during the migration. However, there I was using multiple shell window to run Move-Mailbox cmdlet using different OUs.
Wednesday, February 10, 2010
How to search items in a list against another list in Excel?
To search a list against another list follow these steps to find different values
1. Select the range or list which contains values to be compared
2. Click Format --> Conditional Format
3. Select Formula Is from drop down
4. Enter this formula COUNTIF($Range,$Cell), where $Range is the list which will be compared against and $Cell is the cell where list in #1 starts. i.e. $Range = $A1:$B2 and $Cell = C2
5. Click Format Style and select formatting such as pattern or font color.
6. Click Ok
7. Result will show cells with new formatting selected in last step.
1. Select the range or list which contains values to be compared
2. Click Format --> Conditional Format
3. Select Formula Is from drop down
4. Enter this formula COUNTIF($Range,$Cell), where $Range is the list which will be compared against and $Cell is the cell where list in #1 starts. i.e. $Range = $A1:$B2 and $Cell = C2
5. Click Format Style and select formatting such as pattern or font color.
6. Click Ok
7. Result will show cells with new formatting selected in last step.
How to remove empty rows in Excel?
To remove empty rows in Excel:
1. Simply highlight and select all rows
2. Press Ctrl + G, then click Special button
3. Click Blanks radio button, Click Ok
4. Go to Edit --> Delete or right click and delete
1. Simply highlight and select all rows
2. Press Ctrl + G, then click Special button
3. Click Blanks radio button, Click Ok
4. Go to Edit --> Delete or right click and delete
Monday, February 8, 2010
SSL Traffic and Microsoft ISA 2006 Server
Microsoft's ISA 2006 Firewall/Proxy will not allow SSL traffic on any other port except port 5003. Well actually, it will allow the HTTPS request to go out but will not allow response back with message of "Unidentified IP Traffic". This applies to all of the following:
Microsoft Internet Security and Acceleration Server 2004 Standard Edition
Microsoft Internet Security and Acceleration Server 2000 Standard Edition
Microsoft Windows Small Business Server 2003 Premium Edition
Microsoft Internet Security and Acceleration Server 2006 Enterprise Edition
Microsoft Internet Security and Acceleration Server 2006 Standard Edition
Windows Essential Business Server 2008 Standard
Microsoft Forefront Threat Management Gateway, Medium Business Edition
You can use the following KB to use vbscript to add more ports on ISA.
http://support.microsoft.com/kb/283284
Microsoft Internet Security and Acceleration Server 2004 Standard Edition
Microsoft Internet Security and Acceleration Server 2000 Standard Edition
Microsoft Windows Small Business Server 2003 Premium Edition
Microsoft Internet Security and Acceleration Server 2006 Enterprise Edition
Microsoft Internet Security and Acceleration Server 2006 Standard Edition
Windows Essential Business Server 2008 Standard
Microsoft Forefront Threat Management Gateway, Medium Business Edition
You can use the following KB to use vbscript to add more ports on ISA.
http://support.microsoft.com/kb/283284
Sunday, February 7, 2010
Use CLI to add new port groups in VMware ESX 3.5 or vSphere
If you need to add multiple port groups at once on a single vSwitch or multiple virtual switches, you can use the following commands,
esxcfg-vswitch vSwitch2 -A VMs-403
esxcfg-vswitch vSwitch2 -p VMs-403 -v 403
esxcfg-vswitch vSwitch2 -A VMs-405
esxcfg-vswitch vSwitch2 -p VMs-405 -v 405
esxcfg-vswitch vSwitch2 -A VMs-409
esxcfg-vswitch vSwitch2 -p VMs-409 -v 409
where,
vSwitch2 - Name of your virtual switch
-A - To add a new port group to the virtual switch
-p - VLAN Id of your port group
esxcfg-vswitch vSwitch2 -A VMs-403
esxcfg-vswitch vSwitch2 -p VMs-403 -v 403
esxcfg-vswitch vSwitch2 -A VMs-405
esxcfg-vswitch vSwitch2 -p VMs-405 -v 405
esxcfg-vswitch vSwitch2 -A VMs-409
esxcfg-vswitch vSwitch2 -p VMs-409 -v 409
where,
vSwitch2 - Name of your virtual switch
-A - To add a new port group to the virtual switch
-p - VLAN Id of your port group
Friday, February 5, 2010
Vmkernel Default Gateway in ESX
In ESX, you can only have one default gateway for any number of vmkernel networks.
Here is an example output from host that has 2 iSCSI vmkernel networks and 1 Vmotion:
[root@host01 ~]# esxcfg-route -l
VMkernel Routes:
Network Netmask Gateway
192.168.113.0 255.255.255.0 Local Subnet
192.168.115.0 255.255.255.0 Local Subnet
192.168.116.0 255.255.255.0 Local Subnet
default 0.0.0.0 192.168.113.1
Here is an example output from host that has 2 iSCSI vmkernel networks and 1 Vmotion:
[root@host01 ~]# esxcfg-route -l
VMkernel Routes:
Network Netmask Gateway
192.168.113.0 255.255.255.0 Local Subnet
192.168.115.0 255.255.255.0 Local Subnet
192.168.116.0 255.255.255.0 Local Subnet
default 0.0.0.0 192.168.113.1
Subscribe to:
Posts (Atom)
Blog Archive
-
▼
2010
(39)
-
▼
February
(10)
- Enable RPC/HTTP (Outlook Anywhere) in Exchange 200...
- Moving Mailboxes - Exchange 2007 SP1
- How to search items in a list against another list...
- How to remove empty rows in Excel?
- SSL Traffic and Microsoft ISA 2006 Server
- Use CLI to add new port groups in VMware ESX 3.5 o...
- Vmkernel Default Gateway in ESX
- Use man UNIX command to see all esxcfg commands in...
- Display routing table on ESX / Linux
- Software iSCSI Rescan HBAs Commands in vSphere (ES...
-
►
January
(29)
- VBScript to Move Files
- Restart Windows services on remote computers
- Batch File To Turn Power On and Off Monitor or LCD...
- Get notify about TrendMicro OfficeScan anti-virus ...
- Update timestamp on multiple files in multiple fol...
- A tool to archive old IIS logs.
- Replace file extensions for multiple files in a fo...
- Creational Design Patterns Quick Reference
- Change name for multiple files in a folder in a ba...
- A Quick Reference & Tutorial for ASP.NET
- How to calculate SQL table sizes?
- A Quick Reference for T-SQL
- A Quick C# Programming Language Reference
- Nslookup & Service Records ( SRV Records )
- How to locate authorized and non-authorized (rouge...
- Get the MAC address of remote desktop or server in...
- Windows 2008 Disk Resize Fix - Error 0xc0000225
- How to change SRV records priorities and weight fo...
- MTU Maximums (Jumbo Frames) for ESX 4.0, Windows 2...
- Windows 2008 License Activation Quick Overview - K...
- Exchange 2007 OWA Address Book Search Bug
- iSCSI SAN & Multihoming
- How to reset system folders in Outlook?
- A Quick Guide to Windows Terminal Server Setup
- Windows 2008 RADIUS Server - NPS/NPAS Checklist & ...
- Windows 2008 NFS & ESX 4.0 - Best Practices & Quic...
- Windows 2008 Failover Cluster & iSCSI - Quick Fact...
- Server Build Document & Guidelines - Windows & ESX...
- Test Plan Template
-
▼
February
(10)
Information Technology - A Quick Technical Reference
This blog is a curtsey of Axiom Dynamics Corp. (http://www.axiomdynamics.com) to share useful tips and tricks that can prove to be very useful and handy for dealing with everyday’s IT tasks. We will provide helpful tips, quick references and quickstart guides on a number of topics involving Networks, Systems and Software based on our own experiences from real world scenarios.