getting started with powershell for office 365

Post on 13-May-2015

960 Views

Category:

Software

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

This presentation takes your through the basics of connecting to Office 365 using PowerShell. You'll see how to connect as well as a number of handy commands to make administration of Office 365 easier.

TRANSCRIPT

Making Administration Easy with Office 365 and PowerShell

Presented by :Robert Crane BE MBA MCPdirector@ciaops.comComputer Information Agency

http://www.ciaops.com

#ciaops

PowerShell basics Advantages of PowerShell Configuring for Office 365 access Connecting to Office 365 Helpful commands

2

Agenda

3

PowerShell

Scripting language Included in most Windows OS On premise and Cloud Is how even the GUI console

execute Syntax is normally:

Command -<parameters>

4

Advantages of PowerShell Fast Time saving Easy to apply again and again Ability to combine commands into

scripts Works with all Microsoft products No real equivalent for other

hosted platforms

Online Sign in assistant

5

Microsoft Online Services Sign in Assistant

Azure AD Module

6

Windows Azure Active Directory Module for Windows PowerShell

7

SharePoint Online

SharePoint Online Management Shell– Requires:

Windows Management Framework 3.0 .NET v4.0

8

Lync Online

Lync Online Management Shell– Requires:

Windows Management Framework 3.0 .NET v4.0

9

Execution policy

set-executionpolicy remotesigned

10

Load Online commands

import-module msonline

11

Get login

$cred=get-credential

12

Connect to Office 365

connect-msolservice –credential $cred

DEMO

13

14

Connect to Exchange Online

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic -AllowRedirection

Import-PSSession $Session

15

Connect to SharePoint Online

import-module microsoft.online.sharepoint.powershell

connect-sposervice –url https://<yourtenant>-admin.sharepoint.com –credential $cred

16

Connect to Lync Online

import-module lynconlineconnector

$session = New-CsOnlineSession -Credential $cred

Import-PSSession $session

DEMO

17

18

Create a new users

new-msoluser –userprincipalname sjohnson@ciaops365e1.onmicrosoft.com –displayname ‘Steve Johnson’ –firstname Steve – Lastname Johnson –licenseassignment ciaops365e1:ENTERPRISEPACK –licenseoptions $options –usagelocation AU

19

Change to shared mailbox

set-mailbox –identity sjohnson@ciaops365e1.onmicrosoft.com –type shared

20

Set password

set-msoluserpassword –userprincipalname <Microsoft Online Services ID> -newpassword <Password> -forcechangepassword $false

21

Mailbox rights

add-mailboxpermission –identity <Microsoft Online Services ID target> -user <Microsoft Online Services ID source> -accessrights fullaccess –inheritancetype all

DEMO

22

Summary

23

PowerShell is for IT Pros

Fast way to manage many Microsoft products

Reuse scripts

Functionality will increase

Book

24www.ciaops.com/

publications

Feedback

Questions / queries?

25

Resources Microsoft Online Services Sign In Assistant - http://

www.microsoft.com/en-us/download/details.aspx?id=39267

Windows Azure Active Directory Module for Windows PowerShell – – 32 bit - http://go.microsoft.com/fwlink/p/?linkid=236298 – 64 bit - http://go.microsoft.com/fwlink/p/?linkid=236297

Windows Management Framework 3.0 - http://www.microsoft.com/en-us/download/details.aspx?id=34595

SharePoint Online Management Shell - http://www.microsoft.com/en-us/download/details.aspx?id=35588

Lync Online Management Shell - http://

www.microsoft.com/en-us/download/details.aspx?id=39366 26

27

Robert Cranedirector@ciaops.com

blog.ciaops.com

top related