{"id":780,"date":"2022-04-30T19:58:35","date_gmt":"2022-04-30T19:58:35","guid":{"rendered":"https:\/\/www.spktechfit.com\/?p=780"},"modified":"2022-04-30T19:58:35","modified_gmt":"2022-04-30T19:58:35","slug":"2-managing-services-with-powershell","status":"publish","type":"post","link":"https:\/\/www.spktechfit.com\/?p=780","title":{"rendered":"2. Managing Services with PowerShell"},"content":{"rendered":"<h2>Foundation of Administration with PowerShell<\/h2>\n<p>PowerShell uses the verb-noun system.<\/p>\n<p>Verb examples<\/p>\n<ul>\n<li>Get<\/li>\n<li>Set<\/li>\n<li>Move<\/li>\n<li>Copy<\/li>\n<li>Start<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Connecting PowerShell to Manage Cloud Services<\/h2>\n<p>You first have to install the modules for the commands to manage the cloud services.<\/p>\n<p><b>To search and see if you have the commands:<\/b><\/p>\n<p>Searching for Microsoft Online 365 commands-<\/p>\n<p>Get-command -noun *msol*<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>\u00a0MSonline management<\/h2>\n<pre>#---------------------------------------------------------------------------#\r\n\r\n#Install the module\r\nInstall-module msonline\r\n\r\n#Connect to M365\r\n\u00a0Connect-MsolService\r\n\r\n\u00a0#Create an M365 user\r\n\u00a0New-MsolUser -UserPrincipalName paddy@spktechfit.com -DisplayName \"Paddy Keenaghan\" -FirstName Paddy -LastName Keenaghan -Department BossMan\r\n\r\n\u00a0#Create a group\r\n\u00a0New-MsolGroup -DisplayName \"TheKings\" -Description \"My Test Group\"\r\n\r\n\u00a0#To create a M365 group you need to use Exchange Online<\/pre>\n<p>&nbsp;<\/p>\n<h2>Exchane Online Mgmt<\/h2>\n<pre>#------------------------------------------------------------#\r\n\r\n\u00a0#Install the module\r\n\u00a0Install-module -Name ExchangeOnlineManagement -RequiredVersion 1.0.1\r\n\r\n#Import the module\r\n Import-Module ExchangeOnlineManagement\r\n\r\n\u00a0\u00a0#Connect to EOL\r\n\u00a0Connect-ExchangeOnline\r\n\r\n\u00a0#Create an M365 group (in Powershell these groups are called \"Unified\"\r\n\u00a0New-UnifiedGroup -DisplayName \"TheBosses\" -EmailAddresses theboss@spktechfit.com -AccessType Private\r\n\r\n#Get list of groups\r\n Get-UnifiedGroup\r\n\r\n\r\n\r\n#------------------------------------------------------------#\r\n\r\n\r\n<\/pre>\n<h2>Manage Teams<\/h2>\n<pre>\r\n#------------------------------------------------------------#\r\n\r\n#Install TEams Module\r\n Install-Module -name MicrosoftTeams\r\n\r\n#Connect to Teams\r\n Connect-MicrosoftTeams\r\n\r\n#List Teams\r\n Get-Team\r\n\r\n#------------------------------------------------------------#<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Foundation of Administration with PowerShell PowerShell uses the verb-noun system. Verb examples Get Set Move Copy Start &nbsp; &nbsp; Connecting PowerShell to Manage Cloud Services You first have to install the modules for the commands to manage the cloud services. To search and see if you have the commands: Searching for Microsoft Online 365 commands- [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[13,3],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/780"}],"collection":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=780"}],"version-history":[{"count":2,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/780\/revisions"}],"predecessor-version":[{"id":782,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/780\/revisions\/782"}],"wp:attachment":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}