--- title: "Configuring a OneDrive scan using the CLI" slug: "configuring-a-onedrive-scan-using-the-cli" updated: 2026-09-08T21:45:37Z published: 2026-09-08T21:45:37Z canonical: "docs.trellix.com/configuring-a-onedrive-scan-using-the-cli" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Configuring a OneDrive scan using the CLI Configure and start a continuous OneDrive scan using the CLI. ### Prerequisites - Administrator access to the File Protect appliance. - A OneDrive storage. To configure a scan for OneDrive storage: 1. Enable the CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Create a OneDrive scan. ``` hostname (config) # fmps scan create from share ``` MyOneDriveStorage is the OneDrive storage on which the scan will run. The scan ID is displayed. ``` configured ``` 3. Save your changes. ``` hostname (config) # write memory ``` **To start a scan from an existing scan:** 1. Enable the CLI configuration mode: 2. ``` hostname > enable hostname # configure terminal ``` 3. Start a OneDrive continuous scan from an existing scan. ``` hostname (config) # fmps scan start continuous ``` ** is the ID of the existing scan. 4. Save your changes. hostname (config) # **write memory** :