Office365 user admin_w_powershell
-
Upload
thorbjorn-vaerp -
Category
Technology
-
view
184 -
download
0
Transcript of Office365 user admin_w_powershell
PowerPoint Presentation
Office365 User Admin with PowerShellThorbjrn VrpPrincipal Consultant, Point Taken, Norway
To add your image, first delete the place holder image as shown in the white box.Then insert your picture and scale it to be bigger than the size of the white box shown.Finally, right click on your image and select Send to back your image should now be framed correctly.2
O365 UserAdmin w PS>I love questions, raise a hand or tweet:@vaerpn #ESPC16 Email: [email protected]
Agenda#1 - Install some binaries
Agenda#1 - Install some binaries#2 - Load some modules
Agenda#1 - Install some binaries#2 - Load some modules#3 - Connect to Office 365
Agenda#1 - Install some binaries#2 - Load some modules#3 - Connect to Office 365#4 Use PowerShell wisely [aka copy with pride ]
Agenda
@vaerpn#ESPC16
#1 Install some binaries
9
#1 Install some binaries, MSOL Service Sign-In Assistant http://go.microsoft.com/fwlink/?LinkID=286152
This is version 7 X from 2014, Its the newest one as far as I know. TIP: Search MS Download and sort by date.10
#1 Install some binaries, MSOL Service Sign-In Assistant
#1 Azure AD PS Modulehttp://social.technet.microsoft.com/wiki/contents/articles/28552.microsoft-azure-active-directory-powershell-module-version-release-history.aspx
How can I determine what version of AADPowerShell I have? You can run the get-item cmdlet to check the version of the DLL files of the module that you have currently installed: (get-item C:\Windows\System32\WindowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automation.PSModule.dll).VersionInfo.FileVersion
12
#1 Azure AD PS Module
Determine13
#1 Azure AD PS Module
#1 Azure AD PS Module V2http://social.technet.microsoft.com/wiki/contents/articles/28552.microsoft-azure-active-directory-powershell-module-version-release-history.aspx
Released october 2016
How can I determine what version of AADPowerShell I have? You can run the get-item cmdlet to check the version of the DLL files of the module that you have currently installed: (get-item C:\Windows\System32\WindowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automation.PSModule.dll).VersionInfo.FileVersion
15
https://www.powershellgallery.com/packages/AzureADPreview/2.0.0.17
#1 Azure AD PS Module V2
How can I determine what version of AADPowerShell I have? You can run the get-item cmdlet to check the version of the DLL files of the module that you have currently installed: (get-item C:\Windows\System32\WindowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automation.PSModule.dll).VersionInfo.FileVersion
16
#1 Azure AD PS Module V2
17
#1 Azure AD PS Module V2
18
#1 Install SPO Management Shellhttps://www.microsoft.com/en-us/download/details.aspx?id=35588
#1 Install SPO Management Shell
#1 Install Skype for Business Online, Windows PowerShell Module
https://www.microsoft.com/en-us/download/details.aspx?id=39366
#1 Install Skype for Business Online, Windows PowerShell Module
#1 Install SharePointPnPPowerShellOnlinehttps://github.com/OfficeDev/PnP-PowerShell
DemoDemo @vaerpn#ESPC16
#2 - Load some modules
25
#2 - Load some modules
Run PS ISE as AdministratorCreate the ISE Profile
Create the ISE profileif (!(test-path $profile )) {new-item -type file -path $profile -force}
Import modules Set-ExecutionPolicy unrestricted (or remote signed)
26
#2 - Load some modules
Edit the PowerShell ISE Profile filePowershell_ise.exe $profile
Powershell_ise.exe $profile
27
#2 - Load some modules
Update the help files, get-help will install it at first run.Update-help periodically
28
#2 - Load some modules Connect to all
https://technet.microsoft.com/en-us/library/dn568015.aspxA lot of tips are available at TechNetOr in the Community
#2 Load some modules Verify Get-Module | Select-Object Name, Path | FL
DemoDemo @vaerpn#ESPC16
#3. Connect to Office365 MSOLService
#3. Connect to Office365 MSOLService
Log on with the global admin user
#3 - Connect to -> SPO
#3 Connect to -> Exchange
Remember to Disconnect!
#3 Connect to -> Skype
Same as Exchange with a twist#3 Connect to -> Security & Compliance Center
DemoDemo @vaerpn#ESPC16
#4 Use it
#4 Use it, execute and editYou must use PS ISE Admin elevated!Excel .csv or .XML files as input
#4 Use it -> MSDN PS community
https://msdn.microsoft.com/en-us/powershell/mt173057.aspx
#4 Use it -> SP Command Builder
https://www.microsoft.com/resources/TechNet/en-us/Office/media/WindowsPowerShell/WindowsPowerShellCommandBuilder.html
There are some getting started cmdlets for SPO here.42
#4 Use it ->Script Center
https://gallery.technet.microsoft.com/scriptcenter/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=Office365
https://dev.office.com/patterns-and-practiceshttps://github.com/OfficeDev/PnP-PowerShell#4 Use it -> Pattern & Pracices
#4 Use it ->the DisclaimerNo animals was harmed during the making of these scipts! Feel free to copy with pride any scripts you might find usefull, but its all at your own risk!
I encourage you to test thoroughly on a trial/dev O365 tenant.
Live Long and Prosper! @vaerpn
DemoDemo @vaerpn#ESPC16
WrapUp What we did#1 - Install some binaries#2 - Load some modules#3 - Connect to Office 365#4 Use PowerShell wisely [aka copy with pride ]
#1 - Install some binaries#2 - Load some modules#3 - Connect to Office 365#4 Use PowerShell wisely [aka copy with pride ]
WrapUp What we did
#1 - Install some binaries#2 - Load some modules#3 - Connect to Office 365#4 Use PowerShell wisely [aka copy with pride ]
WrapUp What we did
#1 - Install some binaries#2 - Load some modules#3 - Connect to Office 365#4 Use PowerShell wisely [aka copy with pride ]
WrapUp What we did
#1 - Install some binaries#2 - Load some modules#3 - Connect to Office 365#4 Use PowerShell wisely [aka copy with pride ]
WrapUp What we did
WrapUp What we REALLY did
Added Randy -and a heck lot of other users to the users.csv Excel file. Foreach object with PS we gave them UPN, License, Department ++ For Randy the Department=Kristiansand1
WrapUp What we REALLY did
Added Randy -and a heck lot of other users to users.csv file. Foreach object with PS we gave them UPN, License, Department ++ For Randy the Department=KristiansandWe added Randy -and selected other users to the Exchange Security Enabled Distribution Group DonkeyKongsThe MailEnabled sec. group was allready nested in ESPC16-SPOSiteGroup12In Exchange Online we created a dynamic distribution rule with the email [email protected] , and the rule department=Kristiansand..
Q&A
Thorbjrn Vrp@vaerpn@vaerpn#ESPC16
Remember to visit the sponsors and rate this session