As my employer is a Microsoft Cloud Service Provider, we want to monitor the total storage available and the total storage used by all of the tenants we manage under CSP, including storage used by Sharepoint and Teams. This called for a script!
I slimmed down the resulting script to work for just a single tenant that you can use to generate an XLSX report of which of your sites / teams are nearing their assigned storage quota. You can either build your own alerting around this to raise site quota’s before your users upload too much data, or you can use it to buy additional storage from Microsoft before your tenant reaches the maximum quota 🙂
handle the new tile / prompt that appears in IE login mode where Microsoft no longer always redirects to the portal
Progress bar color is now a configurable option (cloud/non cloud)
alphabetic ordering of configs (cloud only)
Fixed auto update loop issue where auto update would break itself for subsequent updates.
When restarting self (switching auth mode or auto updating) properly hide the console if this was set
Important Auto Update Instructions
If you were using Auto-Update, DO NOT do so for this version. Use the MSI to replace the old version (see last fixed issue).
New Azure AD Signin experience
As some may have read, Microsoft is previewing a potentially disruptive change without advance notice. My tenants don’t yet display the new behavior so I cannot test if OnedriveMapper will be affected. I haven’t heard of any issues yet 🙂
The ‘old’ Onedrive for Business client (groove.exe) is notoriously bad at synchronizing Sharepoint Online Libraries. If you want to block Onedrive from syncing Sharepoint Online libraries, just run the following command:
As, generally, we want to know what goes on in our environment, I like to enable Auditing wherever I can. Sharepoint is a more and more important resource where we store our data. Auditing can be very useful if files dissapear, auditors need specific information, or worse, cryptolockers rename all your files.
At OGD we sometimes have to deal with users that got infected with CryptoLockers and have both automated and controlled systems in place to prevent damage or restore data to any fileshares. An infection on Sharepoint Online or Onedrive has not yet happened, but eventually it of course will and I like to fix things before they break.
As Sharepoint Online and Onedrive for Business natively use versioning on files, you basically have no real risk of losing data to Cryptolockers, your RPO (Restore Point Objective) is 0. However, restoring the previous versions of files is quite a lot of work if done manually, so your RTO (Restore Time Objective) could be weeks or more.
Unless of course, you use Powershell. I’ve written a script that will restore the most current previous version of any file in a given Document Library.