Skip to main content

Microsoft OneDrive for Business: Notes

To get the latest version of OneDrive, check OneDrive release notes.

Back up your Documents, Pictures, and Desktop folders with OneDrive

File exceeds the maximum path length: Make sure the entire file path, including the file name, contains fewer than 260 characters. An example of a file path is:

C:\Users\<UserName>\Pictures\Saved\2017\December\Holiday\NewYears\Family…

To resolve this, shorten the name of your file or the name of subfolders in OneDrive, or select a sub-folder that's closer to the top-level folder.

OneDrive sync reports in the Apps Admin Center

Read https://docs.microsoft.com/en-us/onedrive/sync-health

Edit registry

# Run cmd as Administrator
REM Enable OneDrive
set TenantAssociationKey=Paste-your-Tenant-Association-Key-here
reg.exe add HKLM\SOFTWARE\Policies\Microsoft\OneDrive /v SyncAdminReports /t REG_SZ /d %TenantAssociationKey% /f

Popular posts from this blog

Powershell: Enable Firewall Log

We sometimes need to enable Windows firewall's log to troubleshoot. Here is how.

Powershell: head and tail command

Use head or tail to skim the first or last 5 lines.

MySQL: Notes

Ways to check MySQL version mysql --version mysql -V dpkg -l 'mysql-sever' mysql -u root -p How to check MySQL version: mysql --version Database folder On Microsoft Windows, by default, MySQL save databases in this folder: %ProgramData%\MySQL\MySQL Server 5.5\data Check databases' size SELECT table_schema AS "Database name", SUM(data_length + index_length) / 1024 / 1024 AS "Size (MB)" FROM information_schema.TABLES GROUP BY table_schema; Export database schema $ mysqldump -u root -p --no-data wordpress1001 > c:\backup\schema-wordpress1001.sql Enter password: **************** Create a dedicated user to backup databases Give credit to: http://www.fromdual.com/privileges-of-mysql-backup-user-for-mysqldump Create dedicated mysql user and grant privileges to run backup $ mysql -u root -p CREATE USER 'backupdb'@'localhost' IDENTIFIED BY 'passwordhere'; GRANT SELECT,SHOW VIEW,RELOAD,REPLICATION CLIENT...