NTWEEKLY.COM - Exchange Server Cmdlets Shell Guide V1.0

Similar documents
Microsoft MCITP Exam

TS: Microsoft Exchange Server

Presented by: Robert Crane BE MBA MVP


PowerShell for Exchange Admins

Optimizing Microsoft Exchange in the Enterprise Part I: Optimizing the Mailbox Server Role and the Client Access Server

Mahmoud Magdy Microsoft MVP Exchange server Tech Lead Ingazat Information Technology. Mohamed Fawzi Senior Infrastructure Consultant Link Development

EXAM TS: Microsoft Exchange Server 2010, Configuring. Buy Full Product.

Rapid transition guide from Exchange 2003 to Exchange 2010

Protecting Exchange 2010

TROUBLESHOOTING. Calendar, SSL, Mailboxes, and more!

ENTERPRISE VAULT 9.0 FEATURE BRIEFING

Optimizing Microsoft Exchange in the Enterprise Part II: Hub Transport Server and Lync-SharePoint Integration

W H I T E P A P E R : T E C H N I C AL. Enterprise Vault 9.0 Archiving from Exchange Server Dan Strydom Technical Field Enablement November 2010

Z-Hire V3 Administration Guide

Lesson Plans Configuring Exchange Server 2007

2016 March NEW Dumps is Released Today!

Exchange 2010 PowerShell Access and Commands for Departmental IT Staff. (CatNet OU Admins)

New York Exchange User Group: Upgrade to Exchange Server 2013

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

Create user mailboxes

WHITE PAPER POWERSHELL FOR DUMMIES HOW TO KEEP TRACK OF

E2E Complete Known Limitations

PowerShell for Dummies

Journaling Guide for Archive for Exchange 2007

Z-Term V4 Administration Guide

10135A: Configuring, Managing, and Troubleshooting Microsoft Exchange Server 2010

Restoring an Individual Mailbox(s) Using Exchange 2010

Load Balancing Microsoft Exchange Deployment Guide

EXCHANGE SERVER 2010 TO 2013 MIGRATION GUIDE

LEARN EXCHANGE PART 2 Managing your Exchange Architecture

Configuring the Hub Transport Role

Z-Hire V4 Administration Guide

Customer Health Check Report FY 2013 Global Knowledge

How to Request and Configure Exchange Server 2013 Certificate

EVault for Data Protection Manager. Course 321 Protecting Exchange 2010 with DPM

Exchange Server 2007 Turbo Transition Guide

5/20/2013. The primary design goal was for simplicity of scale, hardware utilization, and failure isolation. Microsoft Exchange Team

8.7. Target Exchange 2010 Environment Preparation

CROSS-FOREST-FREE/BUSY

Cloud. Hosted Exchange Administration Manual

MS Exchange Server backup with eazybackup

INSTALLATION GUIDE Version 1.2

Exchange 2007 Role Build-In protection ( Overview) Anywhere Access Unified Messaging Console Powershell for Exchange Outlook 2007 and Exchange 2007 :

Navigate your checklist Before you begin with Exchange Sign up for Office

IBM Tivoli Composite Application Manager for Microsoft Applications: Microsoft Exchange Server Agent Version Fix Pack 2.

Deploying the Barracuda Load Balancer with Microsoft Exchange Server 2010 Version 2.6. Introduction. Table of Contents

4/16/2013. Install. Setup.exe /mode:install /roles:clientaccess Setup.exe /mode:install /roles:mailbox Setup.exe /mode:install /roles:managementtools

Hybrid Architecture. Office 365. On-premises Exchange org (Exchange 2007+) Provisioned via DirSync. Secure Mail flow

2015 Dell Inc. ALL RIGHTS RESERVED. Trademarks

BlackBerry Enterprise Server Express for Microsoft Exchange. Version: 5.0 Service Pack: 4. Upgrade Guide

Personal Archiving in Exchange Online

EMC NetWorker Module for Microsoft for Exchange Server VSS

MS Exchange Server backup with BackupAgent

Introduction. Part I Introduction to Exchange Server

Exchange Server Cookbook

MS Exchange Server backup with BackupAgent

BlackBerry Enterprise Server Express for Microsoft Exchange Version: 5.0 Service Pack: 1. Installation and Configuration Guide

Converting Prospects to Purchasers.

Exchange Deployment Options: On-premises, cloud, or hybrid? Jeff Mealiffe Principal Program Manager Microsoft

GSX for Exchange. When End User performance... Matters! GSX Solutions 2015

Dell Migration Manager for Exchange User Guide

About Archiving for Microsoft Exchange Server

MCTS: Microsoft Exchange Server 2010

Exchange Server 2013 Architecture. Ross Smith IV Principal Program Manager, Exchange Server

This document describes new features and resolved issues for EAS 6.4.

CISNTWK-492e. Microsoft Exchange Server 2003 Administration. Chapter Five Managing Addresses

Migrate from Exchange 2003 to By Gareth Gudger

How To Configure And Manage An Exchange Server 2010 For Free

Installation Manual UC for Business Unified Messaging for Exchange 2010

Office 365 Compliance and Data Loss Prevention

Core Solutions of Microsoft Exchange Server Version 15.0

Symantec Enterprise Vault. Upgrading to Enterprise Vault

GWAVA, Inc. Migration Toolkit. For GroupWise to Exchange and Office 365 From edirectory to Active Directory. Version 2.1

GSX Monitor & Analyzer When end-users performance Matters! GSX Solutions 2014

How To Use Gree On A Windows 7.5 (Windows 7) Or 7.7 (Windows 8) (For A Non-Procedure) (Windows) (Or 7.1) (Ahemmer) (Powerpoint

Coveo Platform 7.0. Microsoft Exchange Connector Guide

Symprex Out-of-Office Manager

Administering Microsoft Exchange Server ; 5 Days, Instructor-led

Technical Note P/N REV A02 May 07, 2010

5053A: Designing a Messaging Infrastructure Using Microsoft Exchange Server 2007

MOC 5047B: Intro to Installing & Managing Microsoft Exchange Server 2007 SP1

MS 10135B Configuring, Managing and Troubleshooting Microsoft Exchange Server 2010

70-662: Deploying Microsoft Exchange Server 2010

ITA Mail Archive Setup Guide

Configuration Guide. Installation and. BlackBerry Enterprise Server for Microsoft Exchange. Version: 5.0 Service Pack: 4

Self-Service Administration in Exchange Online Dedicated Exchange Server 2010

DIY: Migrating Microsoft Exchange 2013 To Office 365

ADMINISTERING MICROSOFT EXCHANGE SERVER 2016

Avatier Identity Management Suite

Microsoft. Exchange Referent: Daniel Glomb System Architect

Transcription:

Contents Introduction... 2 Notes... 2 Server Commands... 2 Recipients Commands... 3 Mailbox Server... 4 Distribution Lists... 5 Auto Discovery... 5 Inter Org Connector between Exchange 2003 2010... 5 DAG... 6 Active Directory... 6 Transport Queue... 7 CAS Array... 7 Public Folders... 7 Offline Address Book (OAB)... 8 Email Address Policy... 9 Recovery... 9 NTWEEKLY.COM Page 1

Introduction This Exchange Server cmdlets guide was created to help administrators manage Exchange server and users. This is not a beginner guide to Exchange because of the advanced cmdlets that requires deep understanding of Exchange. Notes When you see a script like this.\movetransportdatabase.ps1 note that the script is located in the Exchange server installation script folder. When you Users.txt note that this is a text file that contain the users that the cmdlet will run against when running the cmdlets you will need to run it from the location of the text file. Server Commands Get-exchangeserver Get all Exchange servers in the organisation NTWEEKLY.COM Page 2

Get-clientaccessserver Get CAS server information Recipients Commands Get-mailbox name FL Get User mailbox information Get-MailboxStatistics name fl Get mailbox size, item count and DB Get-Mailbox Get-MailboxStatistics ft DisplayName, TotalItemSize, ItemCount >c:\allusersmbx.txt Get all mailboxes size and total item report get-content users.txt Set-Mailbox - HiddenFromAddressListsEnabled $true Hide Multiple users from GAL Set-Mailbox Level1 -Type shared Convert user mailbox to shared mailbox Set-TransportConfig -MaxRecipientEnvelopeLimit 1000 Set Max recipient allowed sending to get-mailboxstatistics "David King" -archive fl - Get Archive Mailbox size NTWEEKLY.COM Page 3

Mailbox Server Get-Mailbox -Arbitration -Database "DB1" Get list of all Arbitration mailboxes in the DB Set-Mailbox user -UseDatabaseQuotaDefaults $flase - ProhibitSendReceiveQuota 1GB Set Send Receive Quota Get-Mailbox -Arbitration -Database "DB1" New-MoveRequest -TargetDatabase DB2" Move all Arbitration mailboxes Get-mailboxdatabase DB1 Get-MailboxStatistics %{$_.TotalItemSize.Value.ToMB()} Measure-Object -sum - average -max min Get Mailbox DB Site using cmdlet Clean-MailboxDatabase DB1 Refresh Mailbox database after deleting mailboxes Get-MailboxDatabase Add-ADPermission -User Davidk - AccessRights ExtendedRight -ExtendedRights Receive-As,Send- As Give Full access permission to user over all mailboxes (good for admins and applications like BES) Get-Content c:\users.txt New-MoveRequest -TargetDatabase DB1 -BadItem 100 - Move bulk users NTWEEKLY.COM Page 4

Distribution Lists Get-DistributionGroup ResultSize Unlimited Set- DistributionGroup ForceUpgrade - RequireSenderAuthenticationEnabled $False Upgrade all DLs to Exchange 2010 Auto Discovery Get-AutodiscoverVirtualDirectory - Get Auto Discover information set-webservicesvirtualdirectory -Identity "ntweekly.com\ews (Default Web Site)" -ExternalUrl https://owa.ntweekly.com/ews/exchange.asmx - set new Auto- Discover URL Inter Org Connector between Exchange 2003 2010 New-RoutingGroupConnector -Name "Interop RGC" - SourceTransportServers "Ex2010 " -TargetTransportServers "Ex2003" -Cost 10 -Bidirectional $true - PublicFolderReferralsEnabled $true NTWEEKLY.COM Page 5

DAG Remove-DatabaseAvailabilityGroupServer -Identity DAG - MailboxServer EX2 ConfigurationOnly Force DAG Removal Get-DatabaseAvailabilityGroup Get DAG Get-MailboxDatabaseCopyStatus - Get DAG DBs Copy status Test-ReplicationHealth Test DAG replication Active Directory Set-ADServerSettings PreferredServer DC01 Set Preferred AD server for Exchange to use NTWEEKLY.COM Page 6

Transport Queue.\move-transportdatabase.ps1 queuedatabasepath E:\<new location> queuedatabaseloggingpath E:<new location> - Move Transport Queue (Run script from Exchange server scripts directory) Retry-Queue -Identity "<ServerName>\Unreachable" - Resubmit $true Retry \ Force mail Queue CAS Array New-clientaccessarray -fqdn casarray.amcor.net -site "ADC" - name mail2010.ntweekly.com Create new CAS Array Get-MailboxDatabase Set-MailboxDatabase - RPCClientAccessServer mail2010.ntweekly.com Set CAS Array on all DBs Public Folders get-mailpublicfolder "sales@ntweekly.com " getpublicfolderstatistics select AdminDisplayName, FolderPath Find Mail enabled Public Folders NTWEEKLY.COM Page 7

Set-PublicFolder -Identity '\sales' -Server 'ExchangeSRV1' - Replicas 'Public Folder Store 01','Public Folder Store 02' Force Public folder replication Get-PublicFolderStatistics -resultsize unlimited ft Name,DatabaseName,TotalAssociatedItemSize,LastModificationTime > c:\pfreport.txt Get all public folders name, Size and Last used date.\adduserstopfrecursive.ps1 -TopPublicFolder "\sales" -User "David K" -Permission owner - Set Public Folder permissions Offline Address Book (OAB) Set-OABVirtualDirectory -identity "EX1\OAB (Default Web Site)" -externalurl https://mail.ntweekly.com/oab - RequireSSL:$true - Change OAB Directory Test-OutlookWebServices -ClientAccessServer "ex1" test OAB get-offlineaddressbook update-offlineaddressbook update OAB NTWEEKLY.COM Page 8

Email Address Policy Get-EmailAddressPolicy where {$_.RecipientFilterType eq Legacy } Get-EmailAddressPolicy where {$_.RecipientFilterType eq Legacy } Set-EmailAddressPolicy IncludedRecipients AllRecipients - Upgrade email address policy Recovery New-MailboxDatabase -Recovery -Name RDB -Server EX1 - EdbFilePath "C:\Recovery\RDB\RDB.EDB" -LogFolderPath "D:\Recovery\RDB" Create Recovery Database NTWEEKLY.COM Page 9

NTWEEKLY.COM Page 10