https://github.com/thedxt/microsoft-365
scripts related to Microsoft 365
https://github.com/thedxt/microsoft-365
powershell
Last synced: 8 months ago
JSON representation
scripts related to Microsoft 365
- Host: GitHub
- URL: https://github.com/thedxt/microsoft-365
- Owner: thedxt
- Created: 2023-11-19T19:47:23.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-25T17:08:21.000Z (about 2 years ago)
- Last Synced: 2025-06-04T11:35:00.142Z (8 months ago)
- Topics: powershell
- Language: PowerShell
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Microsoft 365
scripts related to Microsoft 365
## LIC-Swap-MS-Graph.ps1
PowerShell script that swaps Microsoft 365 licences using Microsoft Graph.
* Change `remove_LIC` and `add_LIC` varriable to what you need.
* Finds all the users that have the `remove_LIC` SKU.
* For-each loop of the results and removes the license and outputs the license removed and the UPN of the user it was removed from. Then it adds the `add_LIC` SKU to the user and outputs the license added and the UPN of the user it was added to.
[More detailed documentation](https://thedxt.ca/2023/11/swap-365-licenses-with-ms-graph/)
Prerequisites
* MS Graph PowerShell Module needs to be installed