--- title: "Example A. Copying a Report to Network Shares" description: "Consider the following scenario: your backup administrators want to obtain a weekly report with the list of protected VMs in your virtual environment." canonical: "https://helpcenter.veeam.com/docs/one/userguide/script_example_a.html" breadcrumb: "User Guide > Appendices > Scheduling Script Examples > Example A. Copying a Report to Network Shares" dateModified: "2026-10-23" --- # Example A. Copying a Report to Network Shares Consider the following scenario: your backup administrators want to obtain a weekly report with the list of protected VMs in your virtual environment. To deliver the **Protected VMs** report to backup administrators on a weekly basis, you can take the following steps: 1. [Save the Protected VMs report with the necessary parameters](script_example_a.md#step1). 2. [Create a script that will copy the report to network shares of backup administrators](script_example_a.md#step2). 3. [Set the necessary schedule for the report and specify the post-delivery script](script_example_a.md#step3). ## Step 1. Save Protected VMs Report {#step1} Save the **Protected VMs** report with the necessary parameters as described in [Saving Reports](save_reports.md). ## Step 2. Create Script {#step2} When you schedule a report delivery to a folder or a network share, Veeam ONE Web Client saves the generated report to a target location by the following path: `\reporting-task-for-ssrs-report-\` The sample script must perform the following operations after the report is created: 1. Access the target report location: `C:\reports\reporting-task-for-ssrs-report-\` 2. Copy the report from the target location to network shares: - `\\andy\shared\backups\reports\` - `\\brian\shared\backups\reports\` - `\\chris\shared\backups\reports\` 3. Remove the report from the target location and delete the target directory. An example of the script is provided below: ``` ::Changing directory to the target report location cd reporting-task-for-ssrs-report* set RD=%cd% ::Copying the report from the target location to admins` shares xcopy Protected*.* \\andy\shared\backups\reports\*.* /y xcopy Protected*.* \\brian\shared\backups\reports\*.* /y xcopy Protected*.* \\chris\shared\backups\reports\*.* /y ::Removing the target report location cd ..\ rd %RD% /s/q ``` Save the script as a Windows batch file on the machine where Veeam ONE Server is installed. To follow this example, save the script with the `postdelivery.bat` name to the `C:\reports\` directory. ## Step 3. Configure Scheduling Settings {#step3} Before scheduling report delivery, make sure that: - The account under which the *Veeam ONE Reporter Server* service runs has appropriate write permissions on the destination network shares. - Object properties data collection task that gathers data from virtual infrastructure and Veeam Backup & Replication servers completes before the scheduled report generation time. Configure scheduling settings for the saved report as follows: 1. Open Veeam ONE Web Client. 2. Open the **Saved Reports** section. 3. On the saved report or report folder, right-click the necessary folder and select **Schedule** in the context menu. 4. In the **Report Scheduling Settings** window, click **Add**. Veeam ONE Web Client will launch the **Add Schedule** wizard. 5. In the **Add Schedule** window, configure automatic delivery settings as follows: 1. At the **Schedule** step of the wizard, create a schedule according to which the report should be generated. To follow this example, schedule the report to run on a weekly basis. [![Configure Report Schedule](images/script_example_schedule.png "Configure Report Schedule")](images/script_example_schedule.png){.toggle scale=75} 2. At the **Delivery** step of the wizard, select only the **Save to a folder** check box. 3. At the **Target Folder** step of the wizard, specify target folder details. In the **Path** field, enter the path to the folder where the generated report will be stored. 4. In the **Script Options** step, specify the location of the script file in the **Path to the script file** field. To follow this example, enter `C:\reports` in the **Path** field and enter `C:\reports\postdelivery.bat` in the **Path to the script file** field. [![Configure Report Schedule](images/script_example_advanced_scheduling.png "Configure Report Schedule")](images/script_example_advanced_scheduling.png){.toggle scale=75} 6. Save the scheduling settings. ## Expected Result The report will be generated and copied in accordance with the specified schedule. At the specified schedule time, Veeam ONE Web Client will automatically generate the report. After the report is created, Veeam ONE Web Client will trigger the script that will copy the report to network shares.