PowerShell tools for Exchange Administration Mario Ivanov - - PowerPoint PPT Presentation

powershell tools for exchange administration
SMART_READER_LITE
LIVE PREVIEW

PowerShell tools for Exchange Administration Mario Ivanov - - PowerPoint PPT Presentation

Conference 2018 PowerShell tools for Exchange Administration Mario Ivanov Data Centre Services, University of Victoria A bit about myself EXCHANGE TOOLS TO SET/RESET: Mailbox permissions Calendar permissions Send As


slide-1
SLIDE 1

Conference 2018 Mario Ivanov Data Centre Services, University of Victoria

PowerShell tools for Exchange Administration

slide-2
SLIDE 2

A bit about myself

slide-3
SLIDE 3

EXCHANGE TOOLS TO SET/RESET:

  • Mailbox permissions
  • Calendar permissions
  • Send As permissions
  • Send on Behalf permissions
  • Unified Voice messaging
  • Out of office message
slide-4
SLIDE 4

What is PowerShell?

Built on the .NET Framework, PowerShell is a task-based command-line shell and scripting language; it is designed specifically for system administrators and power-users, to rapidly automate the administration of multiple operating systems (Linux, MacOS, Unix, and Windows) and the processes related to the applications that run on those operating systems. Windows PowerShell introduces the concept of a cmdlet (pronounced "command-let"), a simple, single-function command-line tool built into the shell. You can use each cmdlet separately, but their power is realized when you use these simple tools in combination to perform complex tasks. Windows PowerShell includes more than one hundred basic core cmdlets, and you can write your own cmdlets and share them with other users.

slide-5
SLIDE 5

Warning: PowerShell is powerful!

  • Beginners should always start with non-intrusive

commandlets i.e. starting with “Get-”

  • The “dangerous” ones start with “Set-”, “Remove-” etc.
slide-6
SLIDE 6

Example

Get-Mailbox - returns a huge amount of properties belonging

to an Exchange mailbox, literally above 200. Among them:

  • Display name
  • Database name
  • Forwarding address,
  • If they have a picture
  • If hidden in the Global Address List
slide-7
SLIDE 7

Logging to the Exchange server

slide-8
SLIDE 8
slide-9
SLIDE 9

Console versions

slide-10
SLIDE 10

Switching to GUI

  • Windows Forms a.k.a. Winforms

WinForms is a graphical (GUI) class library included as a part of Microsoft .NET Framework, providing a platform to write rich client applications for desktop, laptop, and tablet PCs. Being a first generation GUI building technology, WinForms UI layout is very simplistic and limited. Controls are placed using distance from the top-left point of a window and their size is explicitly specified. The size of controls can't compensate automatically when resizing windows… etc. (From Wikipedia)

  • WPF
slide-11
SLIDE 11
slide-12
SLIDE 12
slide-13
SLIDE 13
slide-14
SLIDE 14

Mailbox permissions tool

slide-15
SLIDE 15
slide-16
SLIDE 16

Mailbox permissions tool

a

slide-17
SLIDE 17
slide-18
SLIDE 18
slide-19
SLIDE 19
slide-20
SLIDE 20
slide-21
SLIDE 21
slide-22
SLIDE 22
slide-23
SLIDE 23
slide-24
SLIDE 24
slide-25
SLIDE 25
slide-26
SLIDE 26
slide-27
SLIDE 27

Frequent request:

Please grant user1 Fu Full A Access ss and Se Send-As As permission on the following mailboxes: Mailbox1 Mailbox2 Mailbox3 Mailbox4 Mailbox5 Mailbox6 and remove user2 having any access on the above.

slide-28
SLIDE 28
slide-29
SLIDE 29
slide-30
SLIDE 30
slide-31
SLIDE 31
slide-32
SLIDE 32
slide-33
SLIDE 33
slide-34
SLIDE 34
slide-35
SLIDE 35
slide-36
SLIDE 36
slide-37
SLIDE 37
slide-38
SLIDE 38
slide-39
SLIDE 39

Calendar permissions tool

slide-40
SLIDE 40
slide-41
SLIDE 41
slide-42
SLIDE 42
slide-43
SLIDE 43
slide-44
SLIDE 44
slide-45
SLIDE 45

Set-MailboxFolderPermission -Identity dsstesting107:\calendar -User wclarke -AccessRights Editor

Existing permission is a requirement

Add-MailboxFolderPermission -Identity dsstesting107:\calendar -User wclarke -AccessRights Editor

No Existing permission is a requirement

slide-46
SLIDE 46
slide-47
SLIDE 47
slide-48
SLIDE 48

Unified voice messaging tool

Typical request example: Pl Please se make ext.

  • t. 8631 to
  • for
  • rward to
  • ma

mailbox jpotton

slide-49
SLIDE 49
slide-50
SLIDE 50
slide-51
SLIDE 51
slide-52
SLIDE 52
slide-53
SLIDE 53
slide-54
SLIDE 54
slide-55
SLIDE 55
slide-56
SLIDE 56
slide-57
SLIDE 57
slide-58
SLIDE 58
slide-59
SLIDE 59

Get-UMMailbox -ResultSize Unlimited | where {$_.Extensions -like $phone} Get-UMMailbox -ResultSize Unlimited | where { if($_.Extensions –like $phone){$line=$_;break}} $dummyArr=@(1) foreach ($dummyelement in $dummyArr) { get-ummailbox -ResultSize Unlimited |where { if($_.Extensions -like $phone){$line=$_;break} } }

slide-60
SLIDE 60
slide-61
SLIDE 61
slide-62
SLIDE 62

Set out of office message tool

slide-63
SLIDE 63
slide-64
SLIDE 64
slide-65
SLIDE 65

<html> <body> …..<br> …..<br> …..<br> ….. </body> </html>

slide-66
SLIDE 66
slide-67
SLIDE 67

SUMMARY

Thank you!

slide-68
SLIDE 68

Thank you!

slide-69
SLIDE 69

The presentation can be downloaded from here http://web.uvic.ca/~mivanov/BCNET/