#ciaops
 PowerShell basics
 Advantages of PowerShell
 Configuring for Office 365 access
 Connecting to Office 365
 Helpful co...
3
 Scripting language
 Included in most Windows OS
 On premise and Cloud
 Is how even the GUI console execute
 Syntax...
4
 Fast
 Time saving
 Easy to apply again and again
 Ability to combine commands into
scripts
 Works with all Microso...
5
 Microsoft Online Services Sign in
Assistant
6
 Windows Azure Active Directory Module
for Windows PowerShell
7
 SharePoint Online Management Shell
– Requires:
 Windows Management Framework 3.0
 .NET v4.0
8
 Lync Online Management Shell
– Requires:
 Windows Management Framework 3.0
 .NET v4.0
9
set-executionpolicy remotesigned
10
import-module msonline
11
$cred=get-credential
12
connect-msolservice –credential $cred
13
14
$Session = New-PSSession -
ConfigurationName Microsoft.Exchange
-ConnectionUri
https://ps.outlook.com/powershell/ -
Cre...
15
import-module
microsoft.online.sharepoint.powershell
connect-sposervice –url
https://<yourtenant>-
admin.sharepoint.com...
16
import-module lynconlineconnector
$session = New-CsOnlineSession -
Credential $cred
Import-PSSession $session
17
18
new-msoluser –userprincipalname
sjohnson@ciaops365e1.onmicrosoft.com
–displayname ‘Steve Johnson’ –
firstname Steve – L...
19
set-mailbox –identity
sjohnson@ciaops365e1.onmicrosoft.com
–type shared
20
set-msoluserpassword –
userprincipalname <Microsoft Online
Services ID> -newpassword
<Password> -forcechangepassword
$f...
21
add-mailboxpermission –identity
<Microsoft Online Services ID target> -
user <Microsoft Online Services ID
source> -acc...
22
23
 PowerShell is for IT Pros
 Fast way to manage many Microsoft
products
 Reuse scripts
 Functionality will increase
24
www.ciaops.com/publications
 Questions / queries?
25
 Microsoft Online Services Sign In Assistant -
http://www.microsoft.com/en-us/download/details.aspx?id=39267
 Windows Az...
27
Robert Crane
Upcoming SlideShare
Loading in …5
×

Getting Started with PowerShell for Office 365

1,903 views

Published on

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.

Published in: Software, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,903
On SlideShare
0
From Embeds
0
Number of Embeds
387
Actions
Shares
0
Downloads
26
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Getting Started with PowerShell for Office 365

  1. 1. #ciaops
  2. 2.  PowerShell basics  Advantages of PowerShell  Configuring for Office 365 access  Connecting to Office 365  Helpful commands 2
  3. 3. 3  Scripting language  Included in most Windows OS  On premise and Cloud  Is how even the GUI console execute  Syntax is normally: Command -<parameters>
  4. 4. 4  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
  5. 5. 5  Microsoft Online Services Sign in Assistant
  6. 6. 6  Windows Azure Active Directory Module for Windows PowerShell
  7. 7. 7  SharePoint Online Management Shell – Requires:  Windows Management Framework 3.0  .NET v4.0
  8. 8. 8  Lync Online Management Shell – Requires:  Windows Management Framework 3.0  .NET v4.0
  9. 9. 9 set-executionpolicy remotesigned
  10. 10. 10 import-module msonline
  11. 11. 11 $cred=get-credential
  12. 12. 12 connect-msolservice –credential $cred
  13. 13. 13
  14. 14. 14 $Session = New-PSSession - ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ - Credential $Cred -Authentication Basic -AllowRedirection Import-PSSession $Session
  15. 15. 15 import-module microsoft.online.sharepoint.powershell connect-sposervice –url https://<yourtenant>- admin.sharepoint.com –credential $cred
  16. 16. 16 import-module lynconlineconnector $session = New-CsOnlineSession - Credential $cred Import-PSSession $session
  17. 17. 17
  18. 18. 18 new-msoluser –userprincipalname sjohnson@ciaops365e1.onmicrosoft.com –displayname ‘Steve Johnson’ – firstname Steve – Lastname Johnson – licenseassignment ciaops365e1:ENTERPRISEPACK – licenseoptions $options –usagelocation AU
  19. 19. 19 set-mailbox –identity sjohnson@ciaops365e1.onmicrosoft.com –type shared
  20. 20. 20 set-msoluserpassword – userprincipalname <Microsoft Online Services ID> -newpassword <Password> -forcechangepassword $false
  21. 21. 21 add-mailboxpermission –identity <Microsoft Online Services ID target> - user <Microsoft Online Services ID source> -accessrights fullaccess – inheritancetype all
  22. 22. 22
  23. 23. 23  PowerShell is for IT Pros  Fast way to manage many Microsoft products  Reuse scripts  Functionality will increase
  24. 24. 24 www.ciaops.com/publications
  25. 25.  Questions / queries? 25
  26. 26.  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. 27. 27 Robert Crane

×