Office 365 PowerShell Jeremy Sublett.

Slides:



Advertisements
Similar presentations
Agenda AD to Windows Azure AD Sync Options Federation Architecture
Advertisements

02 | Managing Users, Groups, and Licenses Anthony Steven | Principal Technologist, Content Master Martin Coetzer | Portfolio Architect, Microsoft.
Microsoft SharePoint 2013 SharePoint 2013 as a Developer Platform
Web FOCUS Integration with Microsoft Office SharePoint By: Kelvin Ruiz NASA – Kennedy Space Center.
Mark Kashman Senior Product Manager –
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
Service Overview & Offering Features & Requirements Office 365 Administration | Portals & PowerShell Partner Opportunity.
Share easilyShare responsibly Share with anyone.
SharePoint and SharePoint Online: Today and what's next? Presented by Luke Abeling – IT Platforms.
The SharePoint Shepherd’s Course for End Users Based on the book by Robert L. Bogue Copyright 2011 AvailTek LLC All Rights Reserved.
External user invited This creates invitation in Access Request List Invitation sent to guest with invitation URL Guest clicks URL. Verification.
23/04/2017 Desarrollando una integración entre Azure Websites y SharePoint Online de Office 365.
Online Conference June 17 th and 18 th What’s new in SharePoint 2016 for Power Users.
A Lap Around Windows Azure Active Directory Stuart Kwan Lead Principal Program Manager Microsoft Corporation SIA209.
Getting Started Managing a Collaboration Site Kendra Holly SharePoint Analyst June 13, 2015.
Online Conference June 17 th and 18 th SharePoint Online Administration with PowerShell.
Windows SharePoint Services Managing users and rights.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Security Overview Functional security – users, groups, and permissions for sites, lists,
ON YOUR TERMS Business needs * Enhanced by upcoming Azure IAAS features GoodBetterBest * * GoodBetterBestGoodBetterBestGoodBetterBestGoodBetterBestGoodBetterBest.
Building consumer apps with Azure AD B2C
Office 365: SharePoint Online 31 May | SharePoint Saturday Calgary – 31 MAY 2014 About Me – Jason Kaczor
Using Azure Active Directory Authentication with your SharePoint Add-Ins for Office 365.
Martina Grom MVP Office 365 How to (remote) control Office 365 with Azure Toni Pohl MVP Client Dev
Managing Office 365 Identities and Requirements.
Microsoft Virtual Academy Chris Oakman | Managing Partner Infrastructure Team | Eastridge Technology Curtis Sawin | Technical Solutions Professional |
Powering up your Office 365 cmdlets with CSOM Bjoern H Rapp, Senior Architect Public Cloud, SopraSteria.
This image was selected is show placement and can be replaced with another full slide image. The Amazing World of PowerShell with SharePoint Online (and.
SharePoint Online and PowerShell?
11 | Managing User Info Jeremy Foster Michael Palermo
ArcGIS for Server Security: Advanced
Connecting Power BI to On-Premise Dynamics CRM/GP Data
SharePoint 101 – An Overview of SharePoint 2010, 2013 and Office 365
Tools and Tips for Administering Office 365
SharePoint Saturday Genève 2016
Office PowerShell administration
Solving your printing problems with Windows Server and Azure
Building Compliant Team Sites
Automate Custom Solutions Deployment on Office 365 and Azure
Microsoft - Managing Office 365 Identities and Requirements
To the Command Line and Beyond Jeremy Sublett Composable Systems, LLC
6/17/2018 5:54 AM OSP322 Getting the best of both worlds, making the most of SharePoint hybrid search solutions Shyam Narayan Microsoft © 2013 Microsoft.
Who Needs a Developer for Automated SharePoint Provisioning?
Leveraging The Microsoft Graph
Think You Know How To Manage Office 365?
SharePoint Framework Extensions
Getting Started with the Data ONTAP PowerShell Toolkit
Office 365 Development.
What Is Sharepoint? Mohsen Ashkboos
PowerShell goodness 2017 Jeremy Sublett Composable Systems, LLC
Local AD, Azure AD, & Google Suite User Management
Hybrid Search Planning Implementation.
Hybrid Search Technical Guidance.
Office 365 Development July 2014.
Leveraging The Microsoft Graph
Adding members to ArcGIS Online
+ GETTING STARTED WITH POWERSHELL FOR OFFICE 365 Vlad Catrinescu
Adding members to ArcGIS Online
SharePoint Online Hybrid – Configure Outbound Search
SharePoint Online Authentication Patterns
Site scripts and Site Design
SPO Demos to Business Value Discussion Pillar Mapping
SharePoint Foundation 2010
PowerShell + SharePoint Online – An Admins Guide to Administration in the O365 Cloud Marrell Sanders – Sr. SharePoint Administrator NACS Branson, MO.
INSTRUCTOR NOTES/LINKS
Links Launch Outlook Launch Skype Place Skype on Do Not Disturb.
PowerShell + SharePoint Online – An Admins Guide to Administration in the O365 Cloud Marrell Sanders – Sr. SharePoint Administrator SharePoint Saturday.
08 | Configuring SharePoint Online
Adding members to ArcGIS Online
Presentation transcript:

Office 365 PowerShell Jeremy Sublett

Agenda Azure AD Cmdlets Users, licenses and other objects SharePoint Patterns and Practices (PnP) Cmdlets Lists, list items, fields and provisioning

Azure AD Cmdlets Cmdlets for accessing and interacting with Azure AD objects

Azure AD PowerShell for Graph User/Groups Certificates AD Apps Domains Auth (OAuth2) Install-Module AzureAD Connect-AzureAD Different than MSOnline cmdlets (referred to as "Older")

Users and Groups Get-AzureADUser Get-AzureADUserMembership Get-AzureADGroup Get-AzureADGroupMember

Adding a User New-AzureADUser -UserPrincipalName "joe.smith@contoso.com" -AccountEnabled $true -DisplayName "Joe Smith" -GivenName "Joe" -Surname "Smith" -MailNickName "Joe.Smith" -Department "Corporate Accounts Payable" -JobTitle "Accountant" -PasswordProfile $PasswordProfile

Adding a User $PasswordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile $PasswordProfile.Password = "mynewpassword"

Adding a Group New-AzureADGroup -DisplayName "Dev Team" -MailEnabled $false -SecurityEnabled $true -MailNickName "NotSet" Add-AzureADGroupMember -ObjectId… -RefObjectId… Group ID User ID

Licenses Get-AzureADSubscribedSku Set-AzureADUserLicense

Licenses # Create the objects we'll need to add and remove licenses $license = New-Object -TypeName Microsoft.Open.AzureAD.Model.AssignedLicense $licenses = New-Object -TypeName Microsoft.Open.AzureAD.Model.AssignedLicenses # Find the SkuID of the license we want to add - in this example we'll use the O365_BUSINESS_PREMIUM license $license.SkuId = (Get-AzureADSubscribedSku | Where-Object -Property SkuPartNumber -Value "O365_BUSINESS_PREMIUM" -EQ).SkuID # Set the Office license as the license we want to add in the $licenses object $licenses.AddLicenses = $license # Call the Set-AzureADUserLicense cmdlet to set the license. Set-AzureADUserLicense -ObjectId "joe.smith@contoso.com" -AssignedLicenses $licenses

AzureAD verses MSOnline AzureAD: allows user to manage Active Directory objects only, [where directory is hosted in Azure] https://docs.microsoft.com/en-us/powershell/module/azuread/connect- azuread?view=azureadps-2.0 MSOnline: apart from managing Active Directory allows more administrative tasks such as Domain management, configure single sign- on etc. https://docs.microsoft.com/en-us/powershell/azure/active-directory/install- msonlinev1?view=azureadps-1.0

SharePoint PnP Cmdlets PowerShell cmdlets for enhanced SharePoint management

SharePoint Patterns and Practices Community-Driven https://github.com/SharePoint/PnP-PowerShell Different from "SPO" cmdlets provided by Microsoft Excellent capabilities to manipulate lists, views and items Installation: Install-Module SharePointPnPPowerShellOnline

* PnP originally used "SPO" in command names Multiple Cmdlets SharePoint Patterns and Practices ("PnP" naming in commands)* Connect-PnPOnline -Url https://contoso.sharepoint.com Connect-PnPOnline -Url https://contoso.sharepoint.com/web1 * PnP originally used "SPO" in command names SharePoint Online Management Shell ("SPO" naming in commands) Connect-SPOService -Url https://contoso-admin.sharepoint.com https://www.microsoft.com/en-us/download/details.aspx?id=35588

Connecting via PnP Cmdlets Site Collection Root Connect-PnPOnline -Url http://tenantxyz.sharepoint.com Subsite (Subweb) Connect-PnPOnline -Url http://tenantxyz.sharepoint.com/web1 Authenticating $creds = Get-Credentials Connect-PnPOnline -Url … -Credentials $creds Connect-PnPOnline -Url … -UseWebLogin

Basic SharePoint Concepts "Site" – a container for webs Site Collection / Root Web "Web" – a location for containing document libraries and lists (sometimes called sites) /web1 /web1/childweb1 Sub Web or Child Web

Webs Get-PnPWebTemplates New-PnPWeb -Title "Customers Web" -Url "CustMgmt" -Description "Simple team site" -Template "STS#3" Connect-PnPOnline -Url https://contoso.sharepoint.com/CustMgmt Get-PnPSubWebs Remove-PnPWeb -Identity 81c90c36-d2e4-4e68-bc38-5af5d96303d1 Remove-PnPWeb –Url web1

Lists New-PnPList -Title "Customers" -Template Contacts Get-PnpList Remove-PnpList –Title "Customers"

Lists $x = Import-Csv -Path .\Desktop\CustList50.csv $x | ForEach-Object { Add-PnPListItem -List Customers -Values @{"Title" = $_.last_name; "First Name = $_.first_name} }

Fields Add-PnPField -List "Customers" -DisplayName "Size" -InternalName "Size" -Type MultiChoice -AddToDefaultView -Choices "Small","Medium","Large"

Create View Add-PnPView -List "Customers" -Title "Simple" - Fields "Title","Company","Size"

Documents Add-PnpFile, Get-PnpFile, Move-PnpFile, Copy-PnpFile Add-PnpFile -Path "c:\temp\MyDoc.txt" -Folder "Shared Documents" -Values @{Modified="1/1/2016"} Get-ChildItem -Path .\Desktop\TestFolder\ | ForEach-Object { Add-PnPFile -Path $_.FullName -Folder "Shared Documents" } Get-PnPFolderItem -FolderSiteRelativeUrl "SitePages" -ItemType File Get-PnPListItem -List "Site Pages"

Other Interesting PnP Commands Submit-PnpSearchQuery –Query "*Test*" Add-PnPNavigationNode -Title "Contoso" -Url "http://microsoft.com" -Location "QuickLaunch" Get-PnPProvisioningTemplate -Out C:\temp\prov.xml

Links Azure AD Reference https://docs.microsoft.com/en-us/powershell/azure/active- directory/overview?view=azureadps-2.0 https://docs.microsoft.com/en-us/powershell/azure/active- directory/importing-data?view=azureadps-2.0 PnP Reference https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/add- pnpapp?view=sharepoint-ps