Three read-only PowerShell exporters for Microsoft 365 and Windows Server admins
I have published three short PowerShell scripts that read inventory data and write a CSV on your own machine. They change nothing. You then load the CSV into a free browser tool that runs locally and uploads nothing. Repository: Cloudek-Hosting/cloudek-scripts (MIT licence). What they do Script What it reads Where the CSV goes export-m365-licence-inventory.ps1 User, enabled state, last successful…
Three PowerShell scripts, created by Cloudek-Hosting, enable Microsoft 365 and Windows Server administrators to gather inventory data without making any changes to the systems. These scripts do not assign or remove licenses, nor do they alter server settings. The certificate script specifically reads metadata, ensuring that no private keys are exposed or accessed.
The Microsoft 365 script imports user information, such as user principal names and sign-in times, from Microsoft Graph. This data is then compiled into a CSV file, which can be loaded into a local browser tool for analysis. The script requires three delegated Graph scopes: User.Read.All, AuditLog.Read.All, and LicenseAssignment.Read.All. These scopes allow the script to access sign-in activity, although it may have a 24-hour delay in updating.
Administrators should review the scripts before running them to ensure they understand the data being collected. The scripts are available on the Cloudek-Hosting repository under the MIT licence. It is recommended to test these scripts in a non-production environment first, as they have not been extensively tested in real-world scenarios.
The certificate inventory script analyzes certificates from the local machine store and outputs a CSV file containing certificate labels, subjects, issuers, and expiry dates. This script also emphasizes the importance of protecting the output file, as it contains personal data. If any issues are discovered, users are encouraged to open an issue on the repository or seek a written review from the developers. Additional free tools can be found at cloudekhosting.com/tools.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
This story
This is one outlet's version. Read the fullest account.