I’ve seen a few examples of distributing a set of teams backgrounds to users in MEM, mostly they seemed a little overly complex, especially in targetting all local users and/or packaging the script into an application. I wanted to:
Deploy using MEM PS script in user context Avoid access controls on the storage location of the backgrounds Simplify the creation of required Azure resources Have a simple update procedure
Here’s my take, first autocreate a blob storage location using my template:
Note down the name you used for the storage account (which was the only parameter to the template), and use it to configure this PowerShell script:
Finally, deploy the script to a group of your users in MEM, in their own context:
max path length tool has been improved:
increased performance optionally, only process specific sites optionally, only process specific document libraries
For a recent customer case, we needed a meta-data export of ALL files in the entire O365 tenant, filenames, dates, modifications, sizes and unique ID’s.
It is tricky to actually get everything (Teams especially) and to handle any MFA you may (SHOULD!!) have configured on your admin accounts, but here you are:
Note that your admin account does have to have
permissions on all sources the script identifies.
A full overview of all Microsoft 365 (Business, F1, E3 and E5) plans and their features in a table for your convenience 🙂
Many Office 365 clients (and especially Excel) really don’t like long paths. The older the client, the worse the issues.
find files over a certain path length in Office 365, I wrote a script a while back. This required manual perusal of the results and manual correction of the issues.
The new version of my script now features fully automatic discovery, a flexible editor and automatic correction of paths based on what you entered into the editor.
Correcting path lengths in Sharepoint Online, Onedrive for Business and Microsoft Teams
You can get the PowerShell script / editor from my
git repository here.
Many thanks to
CTS in their help me designing and testing this script!
How to use
download the script and save it somewhere Copy the desired Sharepoint Library into a new Sharepoint Library and/or site Run the script only for that site or library by specifying the -specificSiteUrls or specificDocumentLibraries parameter do some corrections, commit them, check the results If satisfied, set permissions for your admin account on the actual production locations your wish to fix ( script for Onedrive Mass Permissions here) Ensure no users have open files in the library Remove any non-standard characters from folder names (see script source, example code at the top) Run
Please make sure you TEST this on a copy of your document library/sites before using the ‘commit’ option. Use at your own risk. I recommend turning on the Universal Audit log before usage.