• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Clatent

Technology | Fitness | Food

  • About
  • Resources
  • Contact

PowerShell

365Automatedlab V2.4.0 Released!

January 20, 2024 by ClaytonT Leave a Comment

Sorry I haven’t posted much, things have been a bit hectic, and I wish I could say a lot of behind the scene things for 365Automatedlab were because of it, but sadly it isn’t. Overall things are good, and glad to put out v2.4.0 which I’ve added a function to delete all “deleted” SharePoint sites the recycle bin. The reason for it is you can’t mass delete SharePoint sites from the GUI and sometimes you create SharePoint sites that aren’t in your Excel workbook and this just makes it easier.

Also wanted to post that in a few weeks, I’ll be speaking about 365AutomatedLab virtually and once I have all the info, I’ll post it up! Anything in particular you want to see?

PowerShell Gallery: 365AutomatedLab
GitHub: 365AutomatedLab

Have a great day!

Tagged With: 365, 365AutomatedLab, Automation, PowerShell, Sharepoint

365Automatedlab V2.3.0 Released!

December 30, 2023 by ClaytonT Leave a Comment

I had planned to publish an update sooner, but things got a bit crazy. Then I started prepping for my first PowerShell talk and ended up finding things to clean up and improve. I didn’t get much done on my presentation, but at least the module will run better. Hope you enjoy and please leave any feedback!

New Features

Export-CT365ProdUserToExcel

  • Default now includes Developer License
    • Use -NoLicense to remove

Export-CT365ProdTeamsToExcel

  • Exports Channel Type now
  • Exports Channel Descriptions now

Fixes

  • Updated function name for New-CT365DataEnvironment within ps1 file
  • Updated headers in New-CT365DataEnvironment to include Sites and Channels description.
  • Updated formatting of README

PowerShell Gallery: https://www.powershellgallery.com/packages/365AutomatedLab/2.3.0
GitHub: https://github.com/DevClate/365AutomatedLab

Tagged With: 365, 365AutomatedLab, Automation, Entra, PowerShell, Sharepoint, Teams

365Automatedlab V2.2.0 Released!

December 18, 2023 by ClaytonT Leave a Comment

Happy to announce the release of V2.2.0. Going forward I’ll post release updates here as well as on GitHub.

New Features:
New-CT365Teams: Updated to include Teams, Channels, and their owners. Currently it is set for the same owner for all, but will be updating it in the future. If you would like to see that sooner than later, please open an issue on GitHub.

Verify-CT365TeamsCreation: this is a private function to confirm that the Teams team was created successfully.

Breaking Changes:
None – There are no breaking changes in this update

How to use:

New-CT365Teams -FilePath “C:\Scripts\TeamsData.xlsx” -AdminUrl “testenv.sharepoint.com” -DefaultOwnerUPN “admin@testenv.com

This will create all Teams, Teams’ Channels, and set the owner to admin@testenv.com in the TeamsData.xlsx file under the worksheet name “Teams”. You can add more channels if needed if you follow the template and increase the channel number. For example, to add a Third channel, you would add 3 new columns, the first Channel3Name, the second Channel3Description, and the third Channel3Type with there correct value.

How to install:

# Run first if you need to set Execution Policy
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

# Install 365AutomatedLab
Install-Module -Name 365AutomatedLab -Scope CurrentUser

Check out the GitHub Repo: 365AutomatedLab

If you have any questions, concerns, or feature requests, feel free to reach out to me and/or create a GitHub issue. I’m always looking for feedback on how I can improve this module to make it even more useful for you.

Tagged With: 365, 365AutomatedLab, 365Groups, Automation, PowerShell, Sharepoint, Teams

Thank you

November 6, 2023 by ClaytonT Leave a Comment

I just wanted to say thank you everyone for your support with 365AutomatedLab! This has been a side project for me that I’ve enjoyed doing and glad others are getting the benefits that I have from it. I’ve never been great with celebrating wins, but it really is cool to already have 50+ stars on GitHub for this project. The module is still in it’s early days and can’t wait to see what it turns into as I have a lot of ideas for it, just need to find the time to do it! Again, thank you all for your support and input on this project!

GitHub – 365AutomatedLab

PowerShell Gallery – 365AutomatedLab

Tagged With: 365, 365AutomatedLab, Automation, PowerShell

365AutomatedLab Update: Now Supports MacOS

October 23, 2023 by ClaytonT Leave a Comment

You read that write v0.1.4 now supports MacOs! As long as you are using PowerShell 7.x you are good to go. Also in v0.1.4, you are now able to export your users from your main tenant into a worksheet that is easily imported into your dev tenant. You will only have to add the licensing(Please let me know if you want me to default the developer licenses). I’ve cleaned up some of the documentation and help as well. I’m really excited about this release and can’t wait to add more features! Let me know what you would like to see next.

For easy installation:

Install-Module -Name 365AutomatedLab

As always any PR, Issue, or question is always welcome. Have a great day!

Detailed Changelog:
https://github.com/DevClate/365AutomatedLab/blob/main/CHANGELOG.md

GitHub:
https://github.com/DevClate/365AutomatedLab

PowerShell Gallery:
https://www.powershellgallery.com/packages/365Automatedlab/0.1.4

Tagged With: 365, 365AutomatedLab, Automation, MacOS, Module Monday, PowerShell

Getting Started with 365AutomatedLab Part 3

October 11, 2023 by ClaytonT Leave a Comment

Adding/Removing a User from Groups by User Role

I have to say that this function is one of my favorites. The reason why is how many companies can use only dynamic groups for adding users to their required groups? Using this function, you can create any job role name, then add the groups that job role requires. If you need help mass created groups check out Creating Groups with Excel. It can become the source of truth for standard groups per job role so you are only updating one location. Please test on your dev tenant first, but with most of the other cmdlets in this module they can be used in production, after proper testing.

Adding a User to Groups by User Role

The quickest way to add groups to a user is to use the 365DataEnvironment Excel file in the LabSources folder. I’ll show you that now, and how to customize it for your environment.

New-CT365GroupByUserRole -FilePath "C:\\365AutomatedLab\\LabSources\\365DataEnvironment.xlsx" -UserEmail mwhite@yourdomain.onmicrosoft.com -Domain yourdomain.onmicrosoft.com -UserRole NY-IT

This one line of PowerShell will add Mary White to all the groups associated with the user role “NY-IT,” which are “IT 365 Group, IT, IT NY, Printer – NY – 1, and Printer – NY – 2.”

FilePath: Is the location of the Excel workbook

UserEmail: The full email of the user you want to add groups to

Domain: The domain of your tenant

UserRole: This be the name of the worksheet for that user role.

If you want to create your own user roles, all you have to do is create a new worksheet and label it with the user role you want. Then you will need 4 columns which will be “DisplayName, PrimarySMTP, Description, and Type.” For type, the 4 different options are “365Group, 365MailEnabledSecurity, 365Distribution, and 365Security” depending on which groups you want to add them to. See image below for the template:

You can create as many user roles as you want. I used NY-IT naming convention as an example, but you can use whichever you want, as I know there are too many variations on how companies handle this and didn’t want to do a validateset on it.

That’s it, that is how you create the different job roles then how you add those groups to a user!

Removing a User from Groups by Job Role

I have a feeling after reading how to add, you already know how to remove groups from a user.

Remove-CT365GroupByUserRole -FilePath "C:\\365AutomatedLab\\LabSources\\365DataEnvironment.xlsx" -UserEmail mwhite@yourdomain.onmicrosoft.com -Domain yourdomain.onmicrosoft.com -UserRole NY-IT

Was I right? I really try to make these as simple as possible as I know we all are busy enough, and don’t want to make your life any busier.

Summary

You made it! Now you can easily add and remove user groups by job role with an Excel workbook. I know this is in 365AutomatedLab, but once you have tested, you could use this in production as it is great for onboarding and offboarding users.

As always please feel free to reach out if you have any questions, comments, concerns on this project or any others! If you can please star the GitHub repository as it will help others see it. Have a great day!

GitHub: https://github.com/DevClate/365AutomatedLab

Part 1 – Creating Users with Excel

Part 2 – Creating Groups with Excel

Tagged With: 365, 365AutomatedLab, AD, Automation, Excel, Groups, PowerShell

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Interim pages omitted …
  • Page 19
  • Go to Next Page »

Primary Sidebar

Clayton Tyger

Tech enthusiast dad who has lost 100lbs and now sometimes has crazy running/biking ideas. Read More…

Find Me On

  • Email
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter

Recent Posts

  • Learning ValidateSet in PowerShell: Valid Values Only
  • Teams Chat and PowerShell – How to add value!
  • EntraFIDOFinder: New Web UI and Over 70 New Authenticators
  • January 19, 2026 Updates to EntraFIDOFinder
  • v0.0.20 EntraFIDOFinder is out

Categories

  • 365
  • Active Directory
  • AI
  • AzureAD
  • BlueSky
  • Cim
  • Dashboards
  • Documentation
  • Entra
  • Get-WMI
  • Learning
  • Module Monday
  • Nutanix
  • One Liner Wednesday
  • Passwords
  • PDF
  • Planner
  • PowerShell
  • Read-Only Friday
  • Reporting
  • Security
  • Uncategorized
  • Windows
  • WSUS

© 2026 Clatent