SlideShare a Scribd company logo
PowerShell for Exchange
Administrators
Dejan Foro CEO,
Exchangemaster GmbH
European Office 365 Connect Conference,
Haarlem, Netherlands 2.4.2014
Speaker introduction
• 21 years in IT of which last 16 as an Exchange specialist
• 6 Exchange generations (5.5, 2000, 2003, 2007, 2010, 2013)
• 3,2 million mailboxes
• Exchange User Group Europe - Founder
• 9x Microsoft MVP for Exchange
• Founder and CEO, Exchangemaster GmbH, Zurich, Switzerland
Agenda
• Introduction
• Setting you up for working with PowerShell
• PowerShell basics
• Using PowerShell examples in daily Exchange administration
Presentation download
• This presentation will be available for download from
www.exchangemaster.net
Setting you up for work with PowerShell
Tools, etc.
Get the properTools
http://www.idera.com/productssolutions/freetools/powershellplus
PowerShell Plus
• Advantages over built in PowerShell editor
• Advanced Editor
• Code you use everday at hand
• Script sharing with your colleauges
• Profiles
• Modules loading
• Different layouts
• Code signing
If you use other scripting languages in addition
to Powershell -
PowerGUI
PowerGUI
PowerGUI
PowerGUI
Introduction to PowerShell
ABC of ExchangeAdministration with PowerShell
Introduction
• How it used to be ....
• Problems of Scripting inWindows enviroment
• Many things could be done through command line
• VBScript – programming knowledge required, knowledge ofVB, WMI,WBEM,ADSI, object
models
• security voulnearable
Introduction
• How it is today ...
• Scripting with PowerShell in Exchange
• Command line interface developed first, than GUI
• EVERYTHING can be done via command line
• Exchange managment GUI actually executes PowerShell commands and shows you the
syntax
• Single line commands replace pages ofVB code
• Symple syntax
• Better security – exectution of powershell scripts completely disabled by default, require
scripts to be signed, etc.
Introduction
• Exchange Powershell – 500+ commands
Get-Excommand
• Don’t worry, you will be cool with approx. 20 
Why are you going to love PowerShell
•Task example :
• Get a list of mailboxes and export into .csv file
Why you are going to love PowerShell
• VBScript 
Dim SWBemlocator
Dim objWMIService
Dim colItems
Dim objFSO
Dim objFile
strTitle="Mailbox Report"
strComputer = “MyServer"
UserName = ""
Password = ""
strLog="Report.csv"
Set objFSO=CreateObject("Scripting.FileSystemObject")
Set objFile=objFSO.CreateTextFile(strLog,True)
strQuery="Select * from Exchange_Mailbox"
Set SWBemlocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIService = SWBemlocator.ConnectServer(strComputer,"rootMicrosoftExchangeV2",UserName,Password)
Set colItems = objWMIService.ExecQuery(strQuery,,48)
For Each objItem In colItems
objFile.writeline objItem.ServerName & "," &objItem.StorageGroupName &_
"," & objItem.StoreName & "," & Chr(34) & objItem.MailboxDisplayName
Next
objFile.close
Why you are going to love PowerShell
•PowerShell 
Get-mailbox | export-csv c:report.csv
.... And Action !!!
Command Syntax
• New-Mailbox
• Get-Mailbox
• Set-Mailbox
• Move-Mailbox
• Remove-Mailbox ...
Getting help
• List of all available PowerShell commands
Get-Command
• List of only Exchange commands
Get-Excommand
• Getting help about specific command
Get-Help Get-Mailbox
Get-Help Get-Mailbox – detailed
Get-Help Get-Mailbox – full
Getting info about users/mailboxes
• List of all mailboxes in organisation
Get-Mailbox
Get-Mailbox -ResultSize unlimited
Getting all available properties
Get-Mailbox | Format-List
Get-Mailbox –ResultSize 1 | Format-List
Getting just a list of properties names
Get-Mailbox | Get-Member -MemberType *Property |
Select-Object Name
Selecting & Sorting
Get-Mailbox | Select-Object -Property DisplayName, PrimarySMTPAddress
Get-Mailbox | Select-Object -Property DisplayName,
PrimarySMTPAddress | Sort-Object -Property DisplayName
Examples
• List all mailboxes, sort by name, and export
into a CSV file
Get-Mailbox | Sort-Object -Property Name |
Export-csv c:mailboxes.csv
• Get a list of mailboxes from Active Directory
OU named Users
Get-Mailbox -OrganizationalUnit Users
Examples
• Count mailboxes in organisation
(Get-mailbox).count
• Getting all properties for a specific user
Get-Mailbox | where {$_.DisplayName -eq "Dejan Foro"} |
format-list
• Who is the postmaster ?
Get-Mailbox | where {$_.EmailAddresses -contains
"postmaster@exchangemaster.net"}
Examples
• Who is the user with GUID e65a6ff3-d193-4563-9a8e-26a22315a686 ?
Get-Mailbox | where {$_.guid -eq "e65a6ff3-d193-
4563-9a8e-26a22315a686"}
• Who has UM extention 200 ?
Get-Mailbox | where {$_.extensions -contains "200"}
Getting info about servers
• Give me a list of Exchange servers
Get-Exchangeserver
Get-ExchangeServer | Select-Object -Property Name, Edition,
AdminDisplayVersion, ServerRole | format-list
Examples
• Give me a list of mailbox servers
Get-ExchangeServer | where {$_.ServerRole -ilike "*Mailbox*"}
• Do we have servers running on trial version of Exchange and if yes when do
they expire ?
Get-ExchangeServer | where {$_.IsExchange2007TrialEdition -eq "True"} | Select-
Object -Property FQDN, RemainingTrialPeriod
Getting membership of a group
Get-DistributionGroupMember -identity "Swiss IT Pro User Group Moderators"
Managing the user lifecycle
• Creating users - Importing from a .csv file
• Modifing users – move to another database
• Removing mailboxes and users
Importing users from a .CSV file
• Task
• Import users from a file c:users.csv
• For every user
• Create user account in AD of form First.Last@exchangemaster.net
• Put them in Organizational UnitVIP
• Create a mailbox in database “Standard users”
• Enter his first and last name
• Set all users with password Password123 and require the users to change the password at
first logon
Importing users from a .CSV file
Import-CSV c:users.csv
Procesing values from a csv file
• Processing each row of data from .CSV file
Import-CSV c:users.csv | ForEach-Object { SOME ACTION}
• Command for creating Users
New-Mailbox
Get-Help New-Mailbox –full
Processing values from .CSV file
• Referencing column names from the .CSV file
$_.columnname
• Converting Password text into secure string
$Password = ConvertTo-SecureString -String "Password123" -
asplaintext -force
Importing users from a .CSV file
• Putted all together
$Password = ConvertTo-SecureString -String "Password123" -asplaintext -force
Import-Csv c:users.csv | ForEach-Object {
$Name = $_.First + " " + $_.Last
$UPN = $_.First + "." + $_.Last + "@exchangemaster.net"
New-Mailbox -Name $Name -UserPrincipalName $UPN -Password $Password -
OrganizationalUnit VIP -Database 'standard users' -FirstName $_.First -LastName
$_Last -ResetPasswordOnNextLogon $True}
Making changes to users
• Apply policies
• Assing to groups
• Enable or disable features
• Changing attributes
• Moving mailboxes ....
Moving mailboxes
• Moving mailoboxes of users in OUVIP to a new database forVIPs
Get-Mailbox -OrganizationalUnit "VIP" | Move-Mailbox -
TargetDatabase "VIP users"
Moving mailboxes
• Checking for mailbox location after move
Get-Mailbox | Select-Object Name,Database
Removing mailboxes
• Check before deleting !
Get-Mailbox -OrganizationalUnit VIP | Remove-Mailbox -WhatIf
• Remove them
Get-Mailbox -OrganizationalUnit VIP | Remove-Mailbox
Recommendation
• 3rd party snap-in for better manipulation ofADobjects
• Quest Software
• ActiveRoles Management Shell for Active Directoy
Managing queues
• Removing spam messages from the queue
Remove-Message -Filter {FromAddress -like "*spammer.com*“ } -
withNDR $false
Testing
• Get a list of test commands
• Get-Command test*
Testing
Communicating with user from the script
• Prompting user
Write-Host -ForegroundColor red -BackgroundColor yellow
"Formating your drive c: ..."
Write-Host -ForegroundColor blue -BackgroundColor green "Be
cool I am just kidding"
• Getting user input
Read-Host
Script samples
Using PowerShell in your daily Exchange admin routine
Install Exchange 2013 pre-requisites
http://technet.microsoft.com/en-us/library/bb691354(v=exchg.150).aspx#WS2008R2SP1MBX
Import-Module ServerManager
Add-WindowsFeature Desktop-Experience, NET-Framework, NET-HTTP-Activation,
RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Web-Server, WAS-Process-Model,
Web-Asp-Net, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing,
Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect,
Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console,
Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext, Web-Request-Monitor,
Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI
Good Morning Exchange
FAQ 000116 - Good Morning Exchange - doing a quick check on Exchange using
PowerShellhttp://www.exchangemaster.net/index.php?option=com_content&task=view&id=247
&Itemid=1&lang=en
It checks the following 3 things on all your Exchange machines:
- Are Exchange services running?
- Are all databases mounted and healty?
- Are E-mails piling up in the queues?
Good Morning Exchnage
Checking services...
All Exchange services OK
Checking databases..
All Databases OK
Checking Queues...
All Queues OK
All systems OK, you can have your morning coffee :)
|---|
| |)
|___|
Checking services...
All Exchange services OK
Checking databases..
All Databases OK
Checking Queues...
SERVER01
SERVER011448 500
SERVER011478 300
SERVER011485 50
Sorry mate, no coffee for you. There is work to do.
|---|
| |)
|___|
Good Morning Exchnage
Did the backup run last night?
• Exchange 2010 backup report
http://www.exchangemaster.net/index.php?option=com_content&task=vie
w&id=251&Itemid=57&lang=en
• Exchange 2007 backup report
http://www.exchangemaster.net/index.php?option=com_content&task=view&id=251&Ite
mid=57&lang=en
Did the backup run last night ?
Backup Status Report for All Databases in Exchange Organization MAIL
Created on 23.09.2013 15:40:57
Backup Status of Mailbox Databases
Server Name BackupInProgress LastFullBackup LastIncrementalBackup LastDifferentialBackup LastCopyBackup RetainDeletedItemsUntilBackup
-------- ---- ---------------- -------------- --------------------- ---------------------- -------------- -----------------------------
SERVER01 DB01 False 20.09.2013 17:01:35 False
SERVER01 DB02 False 20.09.2013 17:01:35 23.07.2013 18:37:31 False
SERVER02 DB03 False 20.09.2013 17:01:35 23.07.2013 20:19:37 False
SERVER02 DB04 False 20.09.2013 17:01:35 23.07.2013 21:49:31 False
SERVER03 DB05 False 22.09.2013 17:20:02 23.09.2013 12:05:12 False
SERVER03 DB06 False 22.09.2013 17:20:03 23.09.2013 12:05:12 False
SERVER03 DB09 False 22.09.2013 17:20:02 23.09.2013 12:05:12 False
SERVER04 DB07 False 22.09.2013 17:20:03 23.09.2013 12:05:12 False
SERVER04 DB08 False 22.09.2013 17:20:02 23.09.2013 12:05:12 False
Backup Status of Public Folder Databases
Server Name BackupInProgess LastFullBackup LastIncrementalBackup LastDifferentialBackup LastCopyBackup RetainDeletedItemsUntilBackup
-------- ---- --------------- -------------- --------------------- ---------------------- -------------- -----------------------------
SERVER01 Public Folder DB06 22.09.2013 17:20:03 False
SERVER03 Public Folder DB08 20.09.2013 17:01:35 False
DAG Maintenance
• Scripts that come with Exchange server
C:Program FilesMicrosoftExchangeServerV14scripts
StartDagServerMaintenance.ps1
StopDagServerMaintenance.ps1
RedistributeActiveDatabases.ps1
DAG Maintenance
Exchange01 Exchange02
DAG01
DB01
DB02
DB03
DB04
DB01
DB02
DB03
DB04
DAG Maintenance
On the first node
1) execute
.StartDagServerMaintenance.ps1 -ServerName Exchange01
2) Do your maintenance (patching, whatever) on the first node
Exchange01 Exchange02
DAG01
DB01
DB02
DB03
DB04
DB01
DB02
DB03
DB04
DAG Maintenance
3) After maintenance is completed
.StopDagServerMaintenance.ps1 -ServerName Exchange01
Exchange01 Exchange02
DAG01
DB01
DB02
DB03
DB04
DB01
DB02
DB03
DB04
DAG Maintenance
4) On the second node
.StartDagServerMaintenance.ps1 -ServerName Exchange02
5)Do the patching
Exchange01 Exchange02
DAG01
DB01
DB02
DB03
DB04
DB01
DB02
DB03
DB04
DAG Maintenance
6) On the second node
.StopDagServerMaintenance.ps1 -ServerName Exchange02
DAG Maintenance
7) execute
.RedistributeActiveDatabases.ps1 -DagName DAG01 -BalanceDbsByActivationPreference
-ShowFinalDatabaseDistribution -Confirm:$false
Compare Services
• Computer1: SERVER01
• Computer2: SERVER02
• SystemName DisplayName StartMode State Status
• ---------- ----------- --------- ----- ------
• SERVER01 Application Management Manual Running OK
• SERVER02 Application Management Manual Stopped OK
• SERVER01 PsKill Manual Stopped OK
• SERVER01 WinHTTP Web Proxy Auto-Discovery Service Manual Running OK
• SERVER02 WinHTTP Web Proxy Auto-Discovery Service Manual Stopped OK
PowerShell books – Lite
• Frank Koch, Microsoft Switzerland
• German version
• English version
PowerShell books – medium
• PowerShell documentation Pack
• Manuals that comes with Powershell
http://www.microsoft.com/downloads/details.aspx?FamilyID=b4720b00-9a66-430f-bd56-
ec48bfca154f&DisplayLang=en
PowerShell books – medium
• PowerShell documentation Pack
• Manuals that comes with Powershell
http://www.microsoft.com/downloads/details.aspx?FamilyID=b4720b00-9a66-430f-bd56-
ec48bfca154f&DisplayLang=en
Powershell Books – Advanced
Q&A
• Q&A session 17:30 – 18:30
• You can send your questions in advance to
• dejan.foro@exchangemaster.net
Contact
Dejan Foro, CEO
dejan.foro@exchangemaster.net
Exchangemaster GmbH
www.exchangemaster.net
Show your scripts to the world
• Technet Gallery
• Powershell.com
O365con14 - powershell for exchange administrators

More Related Content

What's hot

Workflow Manager 1.0 SharePoint 2013 Workflows
Workflow Manager 1.0SharePoint 2013 WorkflowsWorkflow Manager 1.0SharePoint 2013 Workflows
Workflow Manager 1.0 SharePoint 2013 Workflows
Damir Dobric
 
SenchaCon 2016: How to Give your Sencha App Real-time Web Performance - James...
SenchaCon 2016: How to Give your Sencha App Real-time Web Performance - James...SenchaCon 2016: How to Give your Sencha App Real-time Web Performance - James...
SenchaCon 2016: How to Give your Sencha App Real-time Web Performance - James...
Sencha
 
ECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint Files
ECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint FilesECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint Files
ECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint Files
European Collaboration Summit
 
Windows Server AppFabric Caching - What it is & when you should use it?
Windows Server AppFabric Caching - What it is & when you should use it?Windows Server AppFabric Caching - What it is & when you should use it?
Windows Server AppFabric Caching - What it is & when you should use it?
Robert MacLean
 
RESTFul Tools For Lazy Experts - CFSummit 2016
RESTFul Tools For Lazy Experts - CFSummit 2016RESTFul Tools For Lazy Experts - CFSummit 2016
RESTFul Tools For Lazy Experts - CFSummit 2016
Ortus Solutions, Corp
 
ASP.NET Core 1.0
ASP.NET Core 1.0ASP.NET Core 1.0
ASP.NET Core 1.0
Ido Flatow
 
Powershell For Developers
Powershell For DevelopersPowershell For Developers
Powershell For Developers
Ido Flatow
 
WebLogic Scripting Tool made Cool!
WebLogic Scripting Tool made Cool!WebLogic Scripting Tool made Cool!
WebLogic Scripting Tool made Cool!
Maarten Smeets
 
High-Performance Hibernate Devoxx France 2016
High-Performance Hibernate Devoxx France 2016High-Performance Hibernate Devoxx France 2016
High-Performance Hibernate Devoxx France 2016
Vlad Mihalcea
 
20140211 BTUG.be - Workflow Manager
20140211 BTUG.be - Workflow Manager20140211 BTUG.be - Workflow Manager
20140211 BTUG.be - Workflow ManagerBTUGbe
 
The Grid the Brad and the Ugly: Using Grids to Improve Your Applications
The Grid the Brad and the Ugly: Using Grids to Improve Your ApplicationsThe Grid the Brad and the Ugly: Using Grids to Improve Your Applications
The Grid the Brad and the Ugly: Using Grids to Improve Your Applications
balassaitis
 
The Path through SharePoint Migrations
The Path through SharePoint MigrationsThe Path through SharePoint Migrations
The Path through SharePoint Migrations
Brian Caauwe
 
Sitecore9 key features by jitendra soni - Presented in Sitecore User Group UK
Sitecore9 key features by jitendra soni - Presented in Sitecore User Group UKSitecore9 key features by jitendra soni - Presented in Sitecore User Group UK
Sitecore9 key features by jitendra soni - Presented in Sitecore User Group UK
Jitendra Soni
 
Tips and Tricks For Faster Asp.NET and MVC Applications
Tips and Tricks For Faster Asp.NET and MVC ApplicationsTips and Tricks For Faster Asp.NET and MVC Applications
Tips and Tricks For Faster Asp.NET and MVC Applications
Sarvesh Kushwaha
 
Scaling wix with microservices and multi cloud - 2015
Scaling wix with microservices and multi cloud - 2015Scaling wix with microservices and multi cloud - 2015
Scaling wix with microservices and multi cloud - 2015
Aviran Mordo
 
Boost the Performance of SharePoint Today!
Boost the Performance of SharePoint Today!Boost the Performance of SharePoint Today!
Boost the Performance of SharePoint Today!
Brian Culver
 
What's New for the Windows Azure Developer? Lots!!
What's New for the Windows Azure Developer?  Lots!!What's New for the Windows Azure Developer?  Lots!!
What's New for the Windows Azure Developer? Lots!!
Michael Collier
 
Building Scalable .NET Web Applications
Building Scalable .NET Web ApplicationsBuilding Scalable .NET Web Applications
Building Scalable .NET Web ApplicationsBuu Nguyen
 
Office Online Server 2016 - a must for on-premises installation for SharePoin...
Office Online Server 2016 - a must for on-premises installation for SharePoin...Office Online Server 2016 - a must for on-premises installation for SharePoin...
Office Online Server 2016 - a must for on-premises installation for SharePoin...
SPC Adriatics
 
Windows Azure for Developers - Service Management
Windows Azure for Developers - Service ManagementWindows Azure for Developers - Service Management
Windows Azure for Developers - Service Management
Michael Collier
 

What's hot (20)

Workflow Manager 1.0 SharePoint 2013 Workflows
Workflow Manager 1.0SharePoint 2013 WorkflowsWorkflow Manager 1.0SharePoint 2013 Workflows
Workflow Manager 1.0 SharePoint 2013 Workflows
 
SenchaCon 2016: How to Give your Sencha App Real-time Web Performance - James...
SenchaCon 2016: How to Give your Sencha App Real-time Web Performance - James...SenchaCon 2016: How to Give your Sencha App Real-time Web Performance - James...
SenchaCon 2016: How to Give your Sencha App Real-time Web Performance - James...
 
ECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint Files
ECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint FilesECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint Files
ECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint Files
 
Windows Server AppFabric Caching - What it is & when you should use it?
Windows Server AppFabric Caching - What it is & when you should use it?Windows Server AppFabric Caching - What it is & when you should use it?
Windows Server AppFabric Caching - What it is & when you should use it?
 
RESTFul Tools For Lazy Experts - CFSummit 2016
RESTFul Tools For Lazy Experts - CFSummit 2016RESTFul Tools For Lazy Experts - CFSummit 2016
RESTFul Tools For Lazy Experts - CFSummit 2016
 
ASP.NET Core 1.0
ASP.NET Core 1.0ASP.NET Core 1.0
ASP.NET Core 1.0
 
Powershell For Developers
Powershell For DevelopersPowershell For Developers
Powershell For Developers
 
WebLogic Scripting Tool made Cool!
WebLogic Scripting Tool made Cool!WebLogic Scripting Tool made Cool!
WebLogic Scripting Tool made Cool!
 
High-Performance Hibernate Devoxx France 2016
High-Performance Hibernate Devoxx France 2016High-Performance Hibernate Devoxx France 2016
High-Performance Hibernate Devoxx France 2016
 
20140211 BTUG.be - Workflow Manager
20140211 BTUG.be - Workflow Manager20140211 BTUG.be - Workflow Manager
20140211 BTUG.be - Workflow Manager
 
The Grid the Brad and the Ugly: Using Grids to Improve Your Applications
The Grid the Brad and the Ugly: Using Grids to Improve Your ApplicationsThe Grid the Brad and the Ugly: Using Grids to Improve Your Applications
The Grid the Brad and the Ugly: Using Grids to Improve Your Applications
 
The Path through SharePoint Migrations
The Path through SharePoint MigrationsThe Path through SharePoint Migrations
The Path through SharePoint Migrations
 
Sitecore9 key features by jitendra soni - Presented in Sitecore User Group UK
Sitecore9 key features by jitendra soni - Presented in Sitecore User Group UKSitecore9 key features by jitendra soni - Presented in Sitecore User Group UK
Sitecore9 key features by jitendra soni - Presented in Sitecore User Group UK
 
Tips and Tricks For Faster Asp.NET and MVC Applications
Tips and Tricks For Faster Asp.NET and MVC ApplicationsTips and Tricks For Faster Asp.NET and MVC Applications
Tips and Tricks For Faster Asp.NET and MVC Applications
 
Scaling wix with microservices and multi cloud - 2015
Scaling wix with microservices and multi cloud - 2015Scaling wix with microservices and multi cloud - 2015
Scaling wix with microservices and multi cloud - 2015
 
Boost the Performance of SharePoint Today!
Boost the Performance of SharePoint Today!Boost the Performance of SharePoint Today!
Boost the Performance of SharePoint Today!
 
What's New for the Windows Azure Developer? Lots!!
What's New for the Windows Azure Developer?  Lots!!What's New for the Windows Azure Developer?  Lots!!
What's New for the Windows Azure Developer? Lots!!
 
Building Scalable .NET Web Applications
Building Scalable .NET Web ApplicationsBuilding Scalable .NET Web Applications
Building Scalable .NET Web Applications
 
Office Online Server 2016 - a must for on-premises installation for SharePoin...
Office Online Server 2016 - a must for on-premises installation for SharePoin...Office Online Server 2016 - a must for on-premises installation for SharePoin...
Office Online Server 2016 - a must for on-premises installation for SharePoin...
 
Windows Azure for Developers - Service Management
Windows Azure for Developers - Service ManagementWindows Azure for Developers - Service Management
Windows Azure for Developers - Service Management
 

Viewers also liked

PowerShell Tips & Tricks for Exchange
PowerShell Tips & Tricks for ExchangePowerShell Tips & Tricks for Exchange
PowerShell Tips & Tricks for Exchange
Michel de Rooij
 
the Stairway to PowerShell in Office365
the Stairway to PowerShell in Office365the Stairway to PowerShell in Office365
the Stairway to PowerShell in Office365
Thorbjørn Værp
 
Collab365: PowerShell for Office 365
Collab365: PowerShell for Office 365Collab365: PowerShell for Office 365
Collab365: PowerShell for Office 365
Vlad Catrinescu
 
Windows power shell and active directory
Windows power shell and active directoryWindows power shell and active directory
Windows power shell and active directory
Dan Morrill
 
Using PowerShell for active directory management
Using PowerShell for active directory managementUsing PowerShell for active directory management
Using PowerShell for active directory management
Ravikanth Chaganti
 
PowerShell and the Future of Windows Automation
PowerShell and the Future of Windows AutomationPowerShell and the Future of Windows Automation
PowerShell and the Future of Windows Automation
Concentrated Technology
 
Free tools for win server administration
Free tools for win server administrationFree tools for win server administration
Free tools for win server administrationConcentrated Technology
 
Automating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShellAutomating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShellConcentrated Technology
 
Managing enterprise with PowerShell remoting
Managing enterprise with PowerShell remotingManaging enterprise with PowerShell remoting
Managing enterprise with PowerShell remotingConcentrated Technology
 
PowerShell Functions
PowerShell FunctionsPowerShell Functions
PowerShell Functions
mikepfeiffer
 
Basic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 sessionBasic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 session
Rob Dunn
 
Three cool cmdlets I wish PowerShell Had!
Three cool cmdlets I wish PowerShell Had!Three cool cmdlets I wish PowerShell Had!
Three cool cmdlets I wish PowerShell Had!
Thomas Lee
 
VDI-in-a-Box: Microsoft Desktop Virtualization for Smaller Businesses and Uses
VDI-in-a-Box:  Microsoft Desktop Virtualization for Smaller Businesses and UsesVDI-in-a-Box:  Microsoft Desktop Virtualization for Smaller Businesses and Uses
VDI-in-a-Box: Microsoft Desktop Virtualization for Smaller Businesses and Uses
Concentrated Technology
 

Viewers also liked (20)

PowerShell Tips & Tricks for Exchange
PowerShell Tips & Tricks for ExchangePowerShell Tips & Tricks for Exchange
PowerShell Tips & Tricks for Exchange
 
the Stairway to PowerShell in Office365
the Stairway to PowerShell in Office365the Stairway to PowerShell in Office365
the Stairway to PowerShell in Office365
 
Collab365: PowerShell for Office 365
Collab365: PowerShell for Office 365Collab365: PowerShell for Office 365
Collab365: PowerShell for Office 365
 
Windows power shell and active directory
Windows power shell and active directoryWindows power shell and active directory
Windows power shell and active directory
 
Using PowerShell for active directory management
Using PowerShell for active directory managementUsing PowerShell for active directory management
Using PowerShell for active directory management
 
From VB Script to PowerShell
From VB Script to PowerShellFrom VB Script to PowerShell
From VB Script to PowerShell
 
PowerShell and the Future of Windows Automation
PowerShell and the Future of Windows AutomationPowerShell and the Future of Windows Automation
PowerShell and the Future of Windows Automation
 
PowerShell crashcourse for sharepoint
PowerShell crashcourse for sharepointPowerShell crashcourse for sharepoint
PowerShell crashcourse for sharepoint
 
Free tools for win server administration
Free tools for win server administrationFree tools for win server administration
Free tools for win server administration
 
PowerShell custom properties
PowerShell custom propertiesPowerShell custom properties
PowerShell custom properties
 
PowerShell crashcourse
PowerShell crashcoursePowerShell crashcourse
PowerShell crashcourse
 
Automating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShellAutomating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShell
 
PS error handling and debugging
PS error handling and debuggingPS error handling and debugging
PS error handling and debugging
 
Managing enterprise with PowerShell remoting
Managing enterprise with PowerShell remotingManaging enterprise with PowerShell remoting
Managing enterprise with PowerShell remoting
 
PowerShell and WMI
PowerShell and WMIPowerShell and WMI
PowerShell and WMI
 
PowerShell Functions
PowerShell FunctionsPowerShell Functions
PowerShell Functions
 
Basic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 sessionBasic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 session
 
Three cool cmdlets I wish PowerShell Had!
Three cool cmdlets I wish PowerShell Had!Three cool cmdlets I wish PowerShell Had!
Three cool cmdlets I wish PowerShell Had!
 
VDI-in-a-Box: Microsoft Desktop Virtualization for Smaller Businesses and Uses
VDI-in-a-Box:  Microsoft Desktop Virtualization for Smaller Businesses and UsesVDI-in-a-Box:  Microsoft Desktop Virtualization for Smaller Businesses and Uses
VDI-in-a-Box: Microsoft Desktop Virtualization for Smaller Businesses and Uses
 
PowerShell 8tips
PowerShell 8tipsPowerShell 8tips
PowerShell 8tips
 

Similar to O365con14 - powershell for exchange administrators

MWLUG 2015 - AD114 Take Your XPages Development to the Next Level
MWLUG 2015 - AD114 Take Your XPages Development to the Next LevelMWLUG 2015 - AD114 Take Your XPages Development to the Next Level
MWLUG 2015 - AD114 Take Your XPages Development to the Next Level
balassaitis
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server Management
Sharkrit JOBBO
 
DjangoCon 2010 Scaling Disqus
DjangoCon 2010 Scaling DisqusDjangoCon 2010 Scaling Disqus
DjangoCon 2010 Scaling Disqus
zeeg
 
[Struyf] Automate Your Tasks With Azure Functions
[Struyf] Automate Your Tasks With Azure Functions[Struyf] Automate Your Tasks With Azure Functions
[Struyf] Automate Your Tasks With Azure Functions
European Collaboration Summit
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
Amazon Web Services
 
Building Complex Business Processes 3.7
Building Complex Business Processes 3.7Building Complex Business Processes 3.7
Building Complex Business Processes 3.7
StephenKardian
 
Raffaele Rialdi
Raffaele RialdiRaffaele Rialdi
Raffaele Rialdi
CodeFest
 
Effective out-of-container Integration Testing
Effective out-of-container Integration TestingEffective out-of-container Integration Testing
Effective out-of-container Integration Testing
Sam Brannen
 
ITPROceed 2016 - The Art of PowerShell Toolmaking
ITPROceed 2016 - The Art of PowerShell ToolmakingITPROceed 2016 - The Art of PowerShell Toolmaking
ITPROceed 2016 - The Art of PowerShell Toolmaking
Kurt Roggen [BE]
 
Nagios Conference 2014 - Mike Weber - Nagios Rapid Deployment Options
Nagios Conference 2014 - Mike Weber - Nagios Rapid Deployment OptionsNagios Conference 2014 - Mike Weber - Nagios Rapid Deployment Options
Nagios Conference 2014 - Mike Weber - Nagios Rapid Deployment Options
Nagios
 
Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3Drupalcon Paris
 
Better Enterprise Integration With the WSO2 ESB 4.5.1
Better Enterprise Integration With the WSO2 ESB 4.5.1Better Enterprise Integration With the WSO2 ESB 4.5.1
Better Enterprise Integration With the WSO2 ESB 4.5.1WSO2
 
CCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShell
CCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShellCCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShell
CCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShell
walk2talk srl
 
Elements for an iOS Backend
Elements for an iOS BackendElements for an iOS Backend
Elements for an iOS Backend
Laurent Cerveau
 
Apache Cayenne for WO Devs
Apache Cayenne for WO DevsApache Cayenne for WO Devs
Apache Cayenne for WO DevsWO Community
 
WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...Fabio Franzini
 
Powershell Seminar @ ITWorx CuttingEdge Club
Powershell Seminar @ ITWorx CuttingEdge ClubPowershell Seminar @ ITWorx CuttingEdge Club
Powershell Seminar @ ITWorx CuttingEdge Club
Essam Salah
 
AD102 - Break out of the Box
AD102 - Break out of the BoxAD102 - Break out of the Box
AD102 - Break out of the Box
Karl-Henry Martinsson
 
Busy Developers Guide to AngularJS (Tiberiu Covaci)
Busy Developers Guide to AngularJS (Tiberiu Covaci)Busy Developers Guide to AngularJS (Tiberiu Covaci)
Busy Developers Guide to AngularJS (Tiberiu Covaci)
ITCamp
 
O365Con18 - Automate your Tasks through Azure Functions - Elio Struyf
O365Con18 - Automate your Tasks through Azure Functions - Elio StruyfO365Con18 - Automate your Tasks through Azure Functions - Elio Struyf
O365Con18 - Automate your Tasks through Azure Functions - Elio Struyf
NCCOMMS
 

Similar to O365con14 - powershell for exchange administrators (20)

MWLUG 2015 - AD114 Take Your XPages Development to the Next Level
MWLUG 2015 - AD114 Take Your XPages Development to the Next LevelMWLUG 2015 - AD114 Take Your XPages Development to the Next Level
MWLUG 2015 - AD114 Take Your XPages Development to the Next Level
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server Management
 
DjangoCon 2010 Scaling Disqus
DjangoCon 2010 Scaling DisqusDjangoCon 2010 Scaling Disqus
DjangoCon 2010 Scaling Disqus
 
[Struyf] Automate Your Tasks With Azure Functions
[Struyf] Automate Your Tasks With Azure Functions[Struyf] Automate Your Tasks With Azure Functions
[Struyf] Automate Your Tasks With Azure Functions
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
Building Complex Business Processes 3.7
Building Complex Business Processes 3.7Building Complex Business Processes 3.7
Building Complex Business Processes 3.7
 
Raffaele Rialdi
Raffaele RialdiRaffaele Rialdi
Raffaele Rialdi
 
Effective out-of-container Integration Testing
Effective out-of-container Integration TestingEffective out-of-container Integration Testing
Effective out-of-container Integration Testing
 
ITPROceed 2016 - The Art of PowerShell Toolmaking
ITPROceed 2016 - The Art of PowerShell ToolmakingITPROceed 2016 - The Art of PowerShell Toolmaking
ITPROceed 2016 - The Art of PowerShell Toolmaking
 
Nagios Conference 2014 - Mike Weber - Nagios Rapid Deployment Options
Nagios Conference 2014 - Mike Weber - Nagios Rapid Deployment OptionsNagios Conference 2014 - Mike Weber - Nagios Rapid Deployment Options
Nagios Conference 2014 - Mike Weber - Nagios Rapid Deployment Options
 
Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3
 
Better Enterprise Integration With the WSO2 ESB 4.5.1
Better Enterprise Integration With the WSO2 ESB 4.5.1Better Enterprise Integration With the WSO2 ESB 4.5.1
Better Enterprise Integration With the WSO2 ESB 4.5.1
 
CCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShell
CCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShellCCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShell
CCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShell
 
Elements for an iOS Backend
Elements for an iOS BackendElements for an iOS Backend
Elements for an iOS Backend
 
Apache Cayenne for WO Devs
Apache Cayenne for WO DevsApache Cayenne for WO Devs
Apache Cayenne for WO Devs
 
WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...
 
Powershell Seminar @ ITWorx CuttingEdge Club
Powershell Seminar @ ITWorx CuttingEdge ClubPowershell Seminar @ ITWorx CuttingEdge Club
Powershell Seminar @ ITWorx CuttingEdge Club
 
AD102 - Break out of the Box
AD102 - Break out of the BoxAD102 - Break out of the Box
AD102 - Break out of the Box
 
Busy Developers Guide to AngularJS (Tiberiu Covaci)
Busy Developers Guide to AngularJS (Tiberiu Covaci)Busy Developers Guide to AngularJS (Tiberiu Covaci)
Busy Developers Guide to AngularJS (Tiberiu Covaci)
 
O365Con18 - Automate your Tasks through Azure Functions - Elio Struyf
O365Con18 - Automate your Tasks through Azure Functions - Elio StruyfO365Con18 - Automate your Tasks through Azure Functions - Elio Struyf
O365Con18 - Automate your Tasks through Azure Functions - Elio Struyf
 

More from NCCOMMS

O365Con19 - UI:UX 101 Learn How to Design Custom Experiences for SharePoint -...
O365Con19 - UI:UX 101 Learn How to Design Custom Experiences for SharePoint -...O365Con19 - UI:UX 101 Learn How to Design Custom Experiences for SharePoint -...
O365Con19 - UI:UX 101 Learn How to Design Custom Experiences for SharePoint -...
NCCOMMS
 
O365Con19 - Model-driven Apps or Canvas Apps? - Rick Bakker
O365Con19 - Model-driven Apps or Canvas Apps? - Rick BakkerO365Con19 - Model-driven Apps or Canvas Apps? - Rick Bakker
O365Con19 - Model-driven Apps or Canvas Apps? - Rick Bakker
NCCOMMS
 
O365Con19 - Office 365 Groups Surviving the Real World - Jasper Oosterveld
O365Con19 - Office 365 Groups Surviving the Real World - Jasper OosterveldO365Con19 - Office 365 Groups Surviving the Real World - Jasper Oosterveld
O365Con19 - Office 365 Groups Surviving the Real World - Jasper Oosterveld
NCCOMMS
 
O365Con19 - Developing Timerjob and Eventhandler Equivalents - Adis Jugo
O365Con19 - Developing Timerjob and Eventhandler Equivalents - Adis JugoO365Con19 - Developing Timerjob and Eventhandler Equivalents - Adis Jugo
O365Con19 - Developing Timerjob and Eventhandler Equivalents - Adis Jugo
NCCOMMS
 
O365Con19 - Sharepoint with (Artificial) Intelligence - Adis Jugo
O365Con19 - Sharepoint with (Artificial) Intelligence - Adis JugoO365Con19 - Sharepoint with (Artificial) Intelligence - Adis Jugo
O365Con19 - Sharepoint with (Artificial) Intelligence - Adis Jugo
NCCOMMS
 
O365Con19 - What Do You Mean 90 days Isn't Enough - Paul Hunt
O365Con19 - What Do You Mean 90 days Isn't Enough - Paul HuntO365Con19 - What Do You Mean 90 days Isn't Enough - Paul Hunt
O365Con19 - What Do You Mean 90 days Isn't Enough - Paul Hunt
NCCOMMS
 
O365Con19 - Tips and Tricks for Complex Migrations to SharePoint Online - And...
O365Con19 - Tips and Tricks for Complex Migrations to SharePoint Online - And...O365Con19 - Tips and Tricks for Complex Migrations to SharePoint Online - And...
O365Con19 - Tips and Tricks for Complex Migrations to SharePoint Online - And...
NCCOMMS
 
O365Con19 - Start Developing Teams Tabs and SharePoint Webparts with SPFX - O...
O365Con19 - Start Developing Teams Tabs and SharePoint Webparts with SPFX - O...O365Con19 - Start Developing Teams Tabs and SharePoint Webparts with SPFX - O...
O365Con19 - Start Developing Teams Tabs and SharePoint Webparts with SPFX - O...
NCCOMMS
 
O365Con19 - Start Your Journey from Skype for Business to Teams - Sasja Beere...
O365Con19 - Start Your Journey from Skype for Business to Teams - Sasja Beere...O365Con19 - Start Your Journey from Skype for Business to Teams - Sasja Beere...
O365Con19 - Start Your Journey from Skype for Business to Teams - Sasja Beere...
NCCOMMS
 
O365Con19 - Lets Get Started with Azure Container Instances - Jussi Roine
O365Con19 - Lets Get Started with Azure Container Instances - Jussi RoineO365Con19 - Lets Get Started with Azure Container Instances - Jussi Roine
O365Con19 - Lets Get Started with Azure Container Instances - Jussi Roine
NCCOMMS
 
O365Con19 - Azure Blackbelt - Jussi Roine
O365Con19 - Azure Blackbelt - Jussi RoineO365Con19 - Azure Blackbelt - Jussi Roine
O365Con19 - Azure Blackbelt - Jussi Roine
NCCOMMS
 
O365Con19 - Customise the UI in Modern SharePoint Workspaces - Corinna Lins
O365Con19 - Customise the UI in Modern SharePoint Workspaces - Corinna LinsO365Con19 - Customise the UI in Modern SharePoint Workspaces - Corinna Lins
O365Con19 - Customise the UI in Modern SharePoint Workspaces - Corinna Lins
NCCOMMS
 
O365Con19 - Be The Protagonist of Your Modern Workplace - Corinna Lins
O365Con19 - Be The Protagonist of Your Modern Workplace - Corinna LinsO365Con19 - Be The Protagonist of Your Modern Workplace - Corinna Lins
O365Con19 - Be The Protagonist of Your Modern Workplace - Corinna Lins
NCCOMMS
 
O365Con19 - How to Really Manage all your Tasks Across Microsoft 365 - Luise ...
O365Con19 - How to Really Manage all your Tasks Across Microsoft 365 - Luise ...O365Con19 - How to Really Manage all your Tasks Across Microsoft 365 - Luise ...
O365Con19 - How to Really Manage all your Tasks Across Microsoft 365 - Luise ...
NCCOMMS
 
O365Con19 - Sharing Code Efficiently in your Organisation - Elio Struyf
O365Con19 - Sharing Code Efficiently in your Organisation - Elio StruyfO365Con19 - Sharing Code Efficiently in your Organisation - Elio Struyf
O365Con19 - Sharing Code Efficiently in your Organisation - Elio Struyf
NCCOMMS
 
O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...
O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...
O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...
NCCOMMS
 
O365Con19 - Keep Control of Your Data with AIP and CA - Bram de Jager
O365Con19 - Keep Control of Your Data with AIP and CA - Bram de JagerO365Con19 - Keep Control of Your Data with AIP and CA - Bram de Jager
O365Con19 - Keep Control of Your Data with AIP and CA - Bram de Jager
NCCOMMS
 
O365Con19 - Kaizala a Dive Into the Unknown - Rick van Rousselt
O365Con19 - Kaizala a Dive Into the Unknown - Rick van RousseltO365Con19 - Kaizala a Dive Into the Unknown - Rick van Rousselt
O365Con19 - Kaizala a Dive Into the Unknown - Rick van Rousselt
NCCOMMS
 
O365Con19 - How to Inspire Users to Unstick from Email - Luise Freese
O365Con19 - How to Inspire Users to Unstick from Email - Luise FreeseO365Con19 - How to Inspire Users to Unstick from Email - Luise Freese
O365Con19 - How to Inspire Users to Unstick from Email - Luise Freese
NCCOMMS
 
O365Con19 - O365 Identity Management and The Golden Config - Chris Goosen
O365Con19 - O365 Identity Management and The Golden Config - Chris GoosenO365Con19 - O365 Identity Management and The Golden Config - Chris Goosen
O365Con19 - O365 Identity Management and The Golden Config - Chris Goosen
NCCOMMS
 

More from NCCOMMS (20)

O365Con19 - UI:UX 101 Learn How to Design Custom Experiences for SharePoint -...
O365Con19 - UI:UX 101 Learn How to Design Custom Experiences for SharePoint -...O365Con19 - UI:UX 101 Learn How to Design Custom Experiences for SharePoint -...
O365Con19 - UI:UX 101 Learn How to Design Custom Experiences for SharePoint -...
 
O365Con19 - Model-driven Apps or Canvas Apps? - Rick Bakker
O365Con19 - Model-driven Apps or Canvas Apps? - Rick BakkerO365Con19 - Model-driven Apps or Canvas Apps? - Rick Bakker
O365Con19 - Model-driven Apps or Canvas Apps? - Rick Bakker
 
O365Con19 - Office 365 Groups Surviving the Real World - Jasper Oosterveld
O365Con19 - Office 365 Groups Surviving the Real World - Jasper OosterveldO365Con19 - Office 365 Groups Surviving the Real World - Jasper Oosterveld
O365Con19 - Office 365 Groups Surviving the Real World - Jasper Oosterveld
 
O365Con19 - Developing Timerjob and Eventhandler Equivalents - Adis Jugo
O365Con19 - Developing Timerjob and Eventhandler Equivalents - Adis JugoO365Con19 - Developing Timerjob and Eventhandler Equivalents - Adis Jugo
O365Con19 - Developing Timerjob and Eventhandler Equivalents - Adis Jugo
 
O365Con19 - Sharepoint with (Artificial) Intelligence - Adis Jugo
O365Con19 - Sharepoint with (Artificial) Intelligence - Adis JugoO365Con19 - Sharepoint with (Artificial) Intelligence - Adis Jugo
O365Con19 - Sharepoint with (Artificial) Intelligence - Adis Jugo
 
O365Con19 - What Do You Mean 90 days Isn't Enough - Paul Hunt
O365Con19 - What Do You Mean 90 days Isn't Enough - Paul HuntO365Con19 - What Do You Mean 90 days Isn't Enough - Paul Hunt
O365Con19 - What Do You Mean 90 days Isn't Enough - Paul Hunt
 
O365Con19 - Tips and Tricks for Complex Migrations to SharePoint Online - And...
O365Con19 - Tips and Tricks for Complex Migrations to SharePoint Online - And...O365Con19 - Tips and Tricks for Complex Migrations to SharePoint Online - And...
O365Con19 - Tips and Tricks for Complex Migrations to SharePoint Online - And...
 
O365Con19 - Start Developing Teams Tabs and SharePoint Webparts with SPFX - O...
O365Con19 - Start Developing Teams Tabs and SharePoint Webparts with SPFX - O...O365Con19 - Start Developing Teams Tabs and SharePoint Webparts with SPFX - O...
O365Con19 - Start Developing Teams Tabs and SharePoint Webparts with SPFX - O...
 
O365Con19 - Start Your Journey from Skype for Business to Teams - Sasja Beere...
O365Con19 - Start Your Journey from Skype for Business to Teams - Sasja Beere...O365Con19 - Start Your Journey from Skype for Business to Teams - Sasja Beere...
O365Con19 - Start Your Journey from Skype for Business to Teams - Sasja Beere...
 
O365Con19 - Lets Get Started with Azure Container Instances - Jussi Roine
O365Con19 - Lets Get Started with Azure Container Instances - Jussi RoineO365Con19 - Lets Get Started with Azure Container Instances - Jussi Roine
O365Con19 - Lets Get Started with Azure Container Instances - Jussi Roine
 
O365Con19 - Azure Blackbelt - Jussi Roine
O365Con19 - Azure Blackbelt - Jussi RoineO365Con19 - Azure Blackbelt - Jussi Roine
O365Con19 - Azure Blackbelt - Jussi Roine
 
O365Con19 - Customise the UI in Modern SharePoint Workspaces - Corinna Lins
O365Con19 - Customise the UI in Modern SharePoint Workspaces - Corinna LinsO365Con19 - Customise the UI in Modern SharePoint Workspaces - Corinna Lins
O365Con19 - Customise the UI in Modern SharePoint Workspaces - Corinna Lins
 
O365Con19 - Be The Protagonist of Your Modern Workplace - Corinna Lins
O365Con19 - Be The Protagonist of Your Modern Workplace - Corinna LinsO365Con19 - Be The Protagonist of Your Modern Workplace - Corinna Lins
O365Con19 - Be The Protagonist of Your Modern Workplace - Corinna Lins
 
O365Con19 - How to Really Manage all your Tasks Across Microsoft 365 - Luise ...
O365Con19 - How to Really Manage all your Tasks Across Microsoft 365 - Luise ...O365Con19 - How to Really Manage all your Tasks Across Microsoft 365 - Luise ...
O365Con19 - How to Really Manage all your Tasks Across Microsoft 365 - Luise ...
 
O365Con19 - Sharing Code Efficiently in your Organisation - Elio Struyf
O365Con19 - Sharing Code Efficiently in your Organisation - Elio StruyfO365Con19 - Sharing Code Efficiently in your Organisation - Elio Struyf
O365Con19 - Sharing Code Efficiently in your Organisation - Elio Struyf
 
O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...
O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...
O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...
 
O365Con19 - Keep Control of Your Data with AIP and CA - Bram de Jager
O365Con19 - Keep Control of Your Data with AIP and CA - Bram de JagerO365Con19 - Keep Control of Your Data with AIP and CA - Bram de Jager
O365Con19 - Keep Control of Your Data with AIP and CA - Bram de Jager
 
O365Con19 - Kaizala a Dive Into the Unknown - Rick van Rousselt
O365Con19 - Kaizala a Dive Into the Unknown - Rick van RousseltO365Con19 - Kaizala a Dive Into the Unknown - Rick van Rousselt
O365Con19 - Kaizala a Dive Into the Unknown - Rick van Rousselt
 
O365Con19 - How to Inspire Users to Unstick from Email - Luise Freese
O365Con19 - How to Inspire Users to Unstick from Email - Luise FreeseO365Con19 - How to Inspire Users to Unstick from Email - Luise Freese
O365Con19 - How to Inspire Users to Unstick from Email - Luise Freese
 
O365Con19 - O365 Identity Management and The Golden Config - Chris Goosen
O365Con19 - O365 Identity Management and The Golden Config - Chris GoosenO365Con19 - O365 Identity Management and The Golden Config - Chris Goosen
O365Con19 - O365 Identity Management and The Golden Config - Chris Goosen
 

Recently uploaded

Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
ThomasParaiso2
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 

Recently uploaded (20)

Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 

O365con14 - powershell for exchange administrators

  • 1.
  • 2. PowerShell for Exchange Administrators Dejan Foro CEO, Exchangemaster GmbH European Office 365 Connect Conference, Haarlem, Netherlands 2.4.2014
  • 3. Speaker introduction • 21 years in IT of which last 16 as an Exchange specialist • 6 Exchange generations (5.5, 2000, 2003, 2007, 2010, 2013) • 3,2 million mailboxes • Exchange User Group Europe - Founder • 9x Microsoft MVP for Exchange • Founder and CEO, Exchangemaster GmbH, Zurich, Switzerland
  • 4. Agenda • Introduction • Setting you up for working with PowerShell • PowerShell basics • Using PowerShell examples in daily Exchange administration
  • 5. Presentation download • This presentation will be available for download from www.exchangemaster.net
  • 6. Setting you up for work with PowerShell Tools, etc.
  • 8. PowerShell Plus • Advantages over built in PowerShell editor • Advanced Editor • Code you use everday at hand • Script sharing with your colleauges • Profiles • Modules loading • Different layouts • Code signing
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19. If you use other scripting languages in addition to Powershell -
  • 24. Introduction to PowerShell ABC of ExchangeAdministration with PowerShell
  • 25. Introduction • How it used to be .... • Problems of Scripting inWindows enviroment • Many things could be done through command line • VBScript – programming knowledge required, knowledge ofVB, WMI,WBEM,ADSI, object models • security voulnearable
  • 26. Introduction • How it is today ... • Scripting with PowerShell in Exchange • Command line interface developed first, than GUI • EVERYTHING can be done via command line • Exchange managment GUI actually executes PowerShell commands and shows you the syntax • Single line commands replace pages ofVB code • Symple syntax • Better security – exectution of powershell scripts completely disabled by default, require scripts to be signed, etc.
  • 27.
  • 28. Introduction • Exchange Powershell – 500+ commands Get-Excommand • Don’t worry, you will be cool with approx. 20 
  • 29. Why are you going to love PowerShell •Task example : • Get a list of mailboxes and export into .csv file
  • 30. Why you are going to love PowerShell • VBScript  Dim SWBemlocator Dim objWMIService Dim colItems Dim objFSO Dim objFile strTitle="Mailbox Report" strComputer = “MyServer" UserName = "" Password = "" strLog="Report.csv" Set objFSO=CreateObject("Scripting.FileSystemObject") Set objFile=objFSO.CreateTextFile(strLog,True) strQuery="Select * from Exchange_Mailbox" Set SWBemlocator = CreateObject("WbemScripting.SWbemLocator") Set objWMIService = SWBemlocator.ConnectServer(strComputer,"rootMicrosoftExchangeV2",UserName,Password) Set colItems = objWMIService.ExecQuery(strQuery,,48) For Each objItem In colItems objFile.writeline objItem.ServerName & "," &objItem.StorageGroupName &_ "," & objItem.StoreName & "," & Chr(34) & objItem.MailboxDisplayName Next objFile.close
  • 31. Why you are going to love PowerShell •PowerShell  Get-mailbox | export-csv c:report.csv
  • 33. Command Syntax • New-Mailbox • Get-Mailbox • Set-Mailbox • Move-Mailbox • Remove-Mailbox ...
  • 34. Getting help • List of all available PowerShell commands Get-Command • List of only Exchange commands Get-Excommand • Getting help about specific command Get-Help Get-Mailbox Get-Help Get-Mailbox – detailed Get-Help Get-Mailbox – full
  • 35. Getting info about users/mailboxes • List of all mailboxes in organisation Get-Mailbox Get-Mailbox -ResultSize unlimited
  • 36. Getting all available properties Get-Mailbox | Format-List Get-Mailbox –ResultSize 1 | Format-List
  • 37. Getting just a list of properties names Get-Mailbox | Get-Member -MemberType *Property | Select-Object Name
  • 38. Selecting & Sorting Get-Mailbox | Select-Object -Property DisplayName, PrimarySMTPAddress Get-Mailbox | Select-Object -Property DisplayName, PrimarySMTPAddress | Sort-Object -Property DisplayName
  • 39. Examples • List all mailboxes, sort by name, and export into a CSV file Get-Mailbox | Sort-Object -Property Name | Export-csv c:mailboxes.csv • Get a list of mailboxes from Active Directory OU named Users Get-Mailbox -OrganizationalUnit Users
  • 40. Examples • Count mailboxes in organisation (Get-mailbox).count • Getting all properties for a specific user Get-Mailbox | where {$_.DisplayName -eq "Dejan Foro"} | format-list • Who is the postmaster ? Get-Mailbox | where {$_.EmailAddresses -contains "postmaster@exchangemaster.net"}
  • 41. Examples • Who is the user with GUID e65a6ff3-d193-4563-9a8e-26a22315a686 ? Get-Mailbox | where {$_.guid -eq "e65a6ff3-d193- 4563-9a8e-26a22315a686"} • Who has UM extention 200 ? Get-Mailbox | where {$_.extensions -contains "200"}
  • 42. Getting info about servers • Give me a list of Exchange servers Get-Exchangeserver Get-ExchangeServer | Select-Object -Property Name, Edition, AdminDisplayVersion, ServerRole | format-list
  • 43. Examples • Give me a list of mailbox servers Get-ExchangeServer | where {$_.ServerRole -ilike "*Mailbox*"} • Do we have servers running on trial version of Exchange and if yes when do they expire ? Get-ExchangeServer | where {$_.IsExchange2007TrialEdition -eq "True"} | Select- Object -Property FQDN, RemainingTrialPeriod
  • 44. Getting membership of a group Get-DistributionGroupMember -identity "Swiss IT Pro User Group Moderators"
  • 45. Managing the user lifecycle • Creating users - Importing from a .csv file • Modifing users – move to another database • Removing mailboxes and users
  • 46. Importing users from a .CSV file • Task • Import users from a file c:users.csv • For every user • Create user account in AD of form First.Last@exchangemaster.net • Put them in Organizational UnitVIP • Create a mailbox in database “Standard users” • Enter his first and last name • Set all users with password Password123 and require the users to change the password at first logon
  • 47. Importing users from a .CSV file Import-CSV c:users.csv
  • 48. Procesing values from a csv file • Processing each row of data from .CSV file Import-CSV c:users.csv | ForEach-Object { SOME ACTION} • Command for creating Users New-Mailbox Get-Help New-Mailbox –full
  • 49. Processing values from .CSV file • Referencing column names from the .CSV file $_.columnname • Converting Password text into secure string $Password = ConvertTo-SecureString -String "Password123" - asplaintext -force
  • 50. Importing users from a .CSV file • Putted all together $Password = ConvertTo-SecureString -String "Password123" -asplaintext -force Import-Csv c:users.csv | ForEach-Object { $Name = $_.First + " " + $_.Last $UPN = $_.First + "." + $_.Last + "@exchangemaster.net" New-Mailbox -Name $Name -UserPrincipalName $UPN -Password $Password - OrganizationalUnit VIP -Database 'standard users' -FirstName $_.First -LastName $_Last -ResetPasswordOnNextLogon $True}
  • 51. Making changes to users • Apply policies • Assing to groups • Enable or disable features • Changing attributes • Moving mailboxes ....
  • 52. Moving mailboxes • Moving mailoboxes of users in OUVIP to a new database forVIPs Get-Mailbox -OrganizationalUnit "VIP" | Move-Mailbox - TargetDatabase "VIP users"
  • 53. Moving mailboxes • Checking for mailbox location after move Get-Mailbox | Select-Object Name,Database
  • 54. Removing mailboxes • Check before deleting ! Get-Mailbox -OrganizationalUnit VIP | Remove-Mailbox -WhatIf • Remove them Get-Mailbox -OrganizationalUnit VIP | Remove-Mailbox
  • 55. Recommendation • 3rd party snap-in for better manipulation ofADobjects • Quest Software • ActiveRoles Management Shell for Active Directoy
  • 56. Managing queues • Removing spam messages from the queue Remove-Message -Filter {FromAddress -like "*spammer.com*“ } - withNDR $false
  • 57. Testing • Get a list of test commands • Get-Command test*
  • 59. Communicating with user from the script • Prompting user Write-Host -ForegroundColor red -BackgroundColor yellow "Formating your drive c: ..." Write-Host -ForegroundColor blue -BackgroundColor green "Be cool I am just kidding" • Getting user input Read-Host
  • 60. Script samples Using PowerShell in your daily Exchange admin routine
  • 61. Install Exchange 2013 pre-requisites http://technet.microsoft.com/en-us/library/bb691354(v=exchg.150).aspx#WS2008R2SP1MBX Import-Module ServerManager Add-WindowsFeature Desktop-Experience, NET-Framework, NET-HTTP-Activation, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Web-Server, WAS-Process-Model, Web-Asp-Net, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI
  • 62. Good Morning Exchange FAQ 000116 - Good Morning Exchange - doing a quick check on Exchange using PowerShellhttp://www.exchangemaster.net/index.php?option=com_content&task=view&id=247 &Itemid=1&lang=en It checks the following 3 things on all your Exchange machines: - Are Exchange services running? - Are all databases mounted and healty? - Are E-mails piling up in the queues?
  • 63. Good Morning Exchnage Checking services... All Exchange services OK Checking databases.. All Databases OK Checking Queues... All Queues OK All systems OK, you can have your morning coffee :) |---| | |) |___|
  • 64. Checking services... All Exchange services OK Checking databases.. All Databases OK Checking Queues... SERVER01 SERVER011448 500 SERVER011478 300 SERVER011485 50 Sorry mate, no coffee for you. There is work to do. |---| | |) |___| Good Morning Exchnage
  • 65. Did the backup run last night? • Exchange 2010 backup report http://www.exchangemaster.net/index.php?option=com_content&task=vie w&id=251&Itemid=57&lang=en • Exchange 2007 backup report http://www.exchangemaster.net/index.php?option=com_content&task=view&id=251&Ite mid=57&lang=en
  • 66. Did the backup run last night ? Backup Status Report for All Databases in Exchange Organization MAIL Created on 23.09.2013 15:40:57 Backup Status of Mailbox Databases Server Name BackupInProgress LastFullBackup LastIncrementalBackup LastDifferentialBackup LastCopyBackup RetainDeletedItemsUntilBackup -------- ---- ---------------- -------------- --------------------- ---------------------- -------------- ----------------------------- SERVER01 DB01 False 20.09.2013 17:01:35 False SERVER01 DB02 False 20.09.2013 17:01:35 23.07.2013 18:37:31 False SERVER02 DB03 False 20.09.2013 17:01:35 23.07.2013 20:19:37 False SERVER02 DB04 False 20.09.2013 17:01:35 23.07.2013 21:49:31 False SERVER03 DB05 False 22.09.2013 17:20:02 23.09.2013 12:05:12 False SERVER03 DB06 False 22.09.2013 17:20:03 23.09.2013 12:05:12 False SERVER03 DB09 False 22.09.2013 17:20:02 23.09.2013 12:05:12 False SERVER04 DB07 False 22.09.2013 17:20:03 23.09.2013 12:05:12 False SERVER04 DB08 False 22.09.2013 17:20:02 23.09.2013 12:05:12 False Backup Status of Public Folder Databases Server Name BackupInProgess LastFullBackup LastIncrementalBackup LastDifferentialBackup LastCopyBackup RetainDeletedItemsUntilBackup -------- ---- --------------- -------------- --------------------- ---------------------- -------------- ----------------------------- SERVER01 Public Folder DB06 22.09.2013 17:20:03 False SERVER03 Public Folder DB08 20.09.2013 17:01:35 False
  • 67. DAG Maintenance • Scripts that come with Exchange server C:Program FilesMicrosoftExchangeServerV14scripts StartDagServerMaintenance.ps1 StopDagServerMaintenance.ps1 RedistributeActiveDatabases.ps1
  • 69. DAG Maintenance On the first node 1) execute .StartDagServerMaintenance.ps1 -ServerName Exchange01 2) Do your maintenance (patching, whatever) on the first node Exchange01 Exchange02 DAG01 DB01 DB02 DB03 DB04 DB01 DB02 DB03 DB04
  • 70. DAG Maintenance 3) After maintenance is completed .StopDagServerMaintenance.ps1 -ServerName Exchange01 Exchange01 Exchange02 DAG01 DB01 DB02 DB03 DB04 DB01 DB02 DB03 DB04
  • 71. DAG Maintenance 4) On the second node .StartDagServerMaintenance.ps1 -ServerName Exchange02 5)Do the patching Exchange01 Exchange02 DAG01 DB01 DB02 DB03 DB04 DB01 DB02 DB03 DB04
  • 72. DAG Maintenance 6) On the second node .StopDagServerMaintenance.ps1 -ServerName Exchange02
  • 73. DAG Maintenance 7) execute .RedistributeActiveDatabases.ps1 -DagName DAG01 -BalanceDbsByActivationPreference -ShowFinalDatabaseDistribution -Confirm:$false
  • 74. Compare Services • Computer1: SERVER01 • Computer2: SERVER02 • SystemName DisplayName StartMode State Status • ---------- ----------- --------- ----- ------ • SERVER01 Application Management Manual Running OK • SERVER02 Application Management Manual Stopped OK • SERVER01 PsKill Manual Stopped OK • SERVER01 WinHTTP Web Proxy Auto-Discovery Service Manual Running OK • SERVER02 WinHTTP Web Proxy Auto-Discovery Service Manual Stopped OK
  • 75. PowerShell books – Lite • Frank Koch, Microsoft Switzerland • German version • English version
  • 76. PowerShell books – medium • PowerShell documentation Pack • Manuals that comes with Powershell http://www.microsoft.com/downloads/details.aspx?FamilyID=b4720b00-9a66-430f-bd56- ec48bfca154f&DisplayLang=en
  • 77. PowerShell books – medium • PowerShell documentation Pack • Manuals that comes with Powershell http://www.microsoft.com/downloads/details.aspx?FamilyID=b4720b00-9a66-430f-bd56- ec48bfca154f&DisplayLang=en
  • 79. Q&A • Q&A session 17:30 – 18:30 • You can send your questions in advance to • dejan.foro@exchangemaster.net
  • 81. Show your scripts to the world • Technet Gallery • Powershell.com