Your SlideShare is downloading. ×
  • Like
Getting Started with PowerShell for Office 365
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Getting Started with PowerShell for Office 365

  • 885 views
Published

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 …

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
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
885
On SlideShare
0
From Embeds
0
Number of Embeds
6

Actions

Shares
Downloads
9
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. #ciaops
  • 2.  PowerShell basics  Advantages of PowerShell  Configuring for Office 365 access  Connecting to Office 365  Helpful commands 2
  • 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  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  Microsoft Online Services Sign in Assistant
  • 6. 6  Windows Azure Active Directory Module for Windows PowerShell
  • 7. 7  SharePoint Online Management Shell – Requires:  Windows Management Framework 3.0  .NET v4.0
  • 8. 8  Lync Online Management Shell – Requires:  Windows Management Framework 3.0  .NET v4.0
  • 9. 9 set-executionpolicy remotesigned
  • 10. 10 import-module msonline
  • 11. 11 $cred=get-credential
  • 12. 12 connect-msolservice –credential $cred
  • 13. 13
  • 14. 14 $Session = New-PSSession - ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ - Credential $Cred -Authentication Basic -AllowRedirection Import-PSSession $Session
  • 15. 15 import-module microsoft.online.sharepoint.powershell connect-sposervice –url https://<yourtenant>- admin.sharepoint.com –credential $cred
  • 16. 16 import-module lynconlineconnector $session = New-CsOnlineSession - Credential $cred Import-PSSession $session
  • 17. 17
  • 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 set-mailbox –identity sjohnson@ciaops365e1.onmicrosoft.com –type shared
  • 20. 20 set-msoluserpassword – userprincipalname <Microsoft Online Services ID> -newpassword <Password> -forcechangepassword $false
  • 21. 21 add-mailboxpermission –identity <Microsoft Online Services ID target> - user <Microsoft Online Services ID source> -accessrights fullaccess – inheritancetype all
  • 22. 22
  • 23. 23  PowerShell is for IT Pros  Fast way to manage many Microsoft products  Reuse scripts  Functionality will increase
  • 24. 24 www.ciaops.com/publications
  • 25.  Questions / queries? 25
  • 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 Robert Crane