• Microsoft Exchange Server

    Exchange 2007: OWA Virtual Directories from PowerShell

    Get a list of all of your virtual directories from PowerShell using this command: Get-OwaVirtualDirectory If you are having an issue with a specific virtual directory then you can delete it using this command: Remove-OwaVirtualDirectory “owa (Default Web Site)” In the above command we used owa but we could have also used Exchange, Public, Exchweb or Exadmin.  To recreate the directory use the following command (again replacing owa in the “” portion of the command with the specified virtual directory you are recreating: New-OwaVirtualDirectory -OwaVersion “Exchange2007″ -Name “owa (Default Web Site)” Because Exchange, Public, Exchweb and Exadmin are not native to Echange 2007 then you would actually replace Exchange2007 with Exchange2003or2000.…

  • Microsoft Exchange Server

    Exchange 2007: Can't Create User with Forwarding Address

    How many times do you go to create a user and find that it’s already there, or at least the forwarding address is.  Info@, sales@, etc.  Well, in Exchange 2007 you can final all the users with a forwarding address in them to quickly isolate who already has your address.  To do so, use the following command: Get-Mailbox | Where {$_.ForwardingAddress -ne $null} | Select Name, ForwardingAddress, DeliverToMailboxAndForward

  • Microsoft Exchange Server

    Exchange 2007: Using PowerShell To Create A Database

    As the title implies, you can create an Exchange database through PowerShell in Exchange 2007.  To do so you would use the New-MailboxDatabase command.   When you use this command you will need to identify the name of the server and the server’s storage group to put the database on followed by the name of the database.  For example the following command would create an Exchange database called YOURMOMSMAIL on KryptedServer in the Second Storage Group: New-MailboxDatabase -StorageGroup “KryptedServerSecond Storage Group” -Name “YOURMOMSMAIL”