A small Windows helper for keeping an rclone SharePoint mount working.
It refreshes expired SharePoint session cookies from an already signed-in browser profile, updates the matching rclone remote, and can start the mount again when needed.
rclone mounts that rely on SharePoint WebDAV cookies can stop working once those cookies expire.
This project automates the annoying part: refreshing the cookies and getting the mount back up without manually editing rclone.conf.
- Refreshes SharePoint cookies only when needed
- Updates the correct
rcloneremote automatically - Creates a backup before changing
rclone.conf - Can start or recover an
rclonemount - Works with Chrome, Chromium, and Edge on Windows
- Windows
- Python 3.10 or newer
rclone- Chrome, Chromium, or Edge
- A browser profile that is already signed in to the SharePoint site you want to use
Install the Python dependencies:
python -m pip install -r requirements.txtRun the launcher:
.\Start-RcloneSharePointMount.ps1Use a specific remote:
.\Start-RcloneSharePointMount.ps1 -RemoteName MySharePointPreview what would happen without changing anything:
.\Start-RcloneSharePointMount.ps1 -DryRunForce a refresh:
.\Start-RcloneSharePointMount.ps1 -ForceRefreshThis helper expects an existing rclone WebDAV remote that points to a SharePoint document library.
Example:
[NHLStenden]
type = webdav
url = https://newuniversity-my.sharepoint.com/personal/martin_bosgra_nhlstenden_com/Documents
vendor = otherContributions are welcome! Please fork the repository and submit pull requests.
This project is licensed under the MIT License.
NHL Stenden: For providing the foundational code and utilities. Martin Bosgra: Author and primary maintainer of the project.