sábado, 29 de mayo de 2010

Mas PShell

Este comando esta muy bueno para sacar no solo la cantidad de usuarios x base de datos sino el size de la misma, tengan en cuenta q el resultado es solo de la suma de los maiboxes, o sea a este numero hay q sumar el white space de la base en el caso de q tenga:

Por server:

Get-MailboxDatabase -server NOMBRE_DEL_SERVER | Select Server, StorageGroupName, Name, @{Name="Size (GB)";Expression={$objitem = (Get-MailboxDatabase $_.Identity); $path = "`\`\" + $objitem.server + "`\" + $objItem.EdbFilePath.DriveName.Remove(1).ToString() + "$"+ $objItem.EdbFilePath.PathName.Remove(0,2); $size = ((Get-ChildItem $path).length)/1048576KB; [math]::round($size, 2)}}, @{Name="Size (MB)";Expression={$objitem = (Get-MailboxDatabase $_.Identity); $path = "`\`\" + $objitem.server + "`\" + $objItem.EdbFilePath.DriveName.Remove(1).ToString() + "$"+ $objItem.EdbFilePath.PathName.Remove(0,2); $size = ((Get-ChildItem $path).length)/1024KB; [math]::round($size, 2)}}, @{Name="No. Of Mbx";expression={(Get-Mailbox -Database $_.Identity | Measure-Object).Count}} | Format-table -AutoSize






Por base de datos:

Get-MailboxDatabase -identity NOMBRE_DE_base | Select Server, StorageGroupName, Name, @{Name="Size (GB)";Expression={$objitem = (Get-MailboxDatabase $_.Identity); $path = "`\`\" + $objitem.server + "`\" + $objItem.EdbFilePath.DriveName.Remove(1).ToString() + "$"+ $objItem.EdbFilePath.PathName.Remove(0,2); $size = ((Get-ChildItem $path).length)/1048576KB; [math]::round($size, 2)}}, @{Name="Size (MB)";Expression={$objitem = (Get-MailboxDatabase $_.Identity); $path = "`\`\" + $objitem.server + "`\" + $objItem.EdbFilePath.DriveName.Remove(1).ToString() + "$"+ $objItem.EdbFilePath.PathName.Remove(0,2); $size = ((Get-ChildItem $path).length)/1024KB; [math]::round($size, 2)}}, @{Name="No. Of Mbx";expression={(Get-Mailbox -Database $_.Identity | Measure-Object).Count}} | Format-table -AutoSize


lunes, 19 de abril de 2010

Exchange 2007 backups & W2K8

En la nueva versión de W2K8 se descontinuo la conocida versión de NTbackup la cual se integraba con una API para realizar Exchange backups.
En un principio se pensó en descontinuar este feature pero en la versión de Exchange 2007 SP2 se incorpora un componente para realizar backups de Exchange mediante VSS, este artículo a continuación lo explica muy bien, muy interesante :)

http://www.simple-talk.com/sysadmin/exchange/exchange-backups-on-windows-server-2008/

miércoles, 24 de marzo de 2010

why treadstone?

Internet explorer 9?




Check out the new capabilities of the next Internet Explorer, with the Internet Explorer 9 Platform Preview. Find demos of HTML5 and the hardware-accelerated performance with background compiled JavaScript. You can also download the Windows Internet Explorer Platform Preview user guide and release notes.

Un Poco de Power Shell

Seteos de Exchange quota con PShell

Ver conf. actual:

get-mailbox -identity fl *quota*

Set-Mailbox -UseDatabaseQuotaDefaults:$False -issuewarningQuota 90MB -ProhibitSendQuota 100MB -ProhibitSendReceive “UNLIMITED”


Medianre una variable:

$a = get-mailbox -identitu

Set-Mailbox $a -UseDatabaseQuotaDefaults:$False -issuewarningQuota 90MB -ProhibitSendQuota 100MB -ProhibitSendReceive “UNLIMITED”

Para Multiples usuarios desde un txt

get-content “C:\names.txt” Set-Mailbox -UseDatabaseQuotaDefaults:$False -issuewarningQuota 90MB -ProhibitSendQuota 100MB -ProhibitSendReceive “UNLIMITED”



get-content “C:\names.txt” Set-Mailbox -UseDatabaseQuotaDefaults:$False -issuewarningQuota “UNLIMITED” -ProhibitSendQuota “UNLIMITED” -ProhibitSendReceive “UNLIMITED”

martes, 16 de marzo de 2010

HUB server en exchange 2007


The Hub Transport Server role is responsible for routing messaging, not only between the Internet and the Exchange organization, but also between Exchange servers within your organization.
All messages are always routed via the Hub Transport Server role, even if the source and the destination mailbox are on the same server, and even if the source and the destination mailbox are in the same Mailbox Database. For example, in Figure 8, the Hub Transport Server is responsible for routing all messages:
Step 1: A message is sent to the Hub Transport Server.
Step 2: A recipient on the same server as the sender means the message is sent back.
Step 3: When the recipient is on another mailbox server, the message is routed to the appropriate Hub Transport Server. This is then followed

Step 4: The second Hub Transport Server delivers the message to the Mailbox Server of the recipient.