# DownloadFiles **EventNames:** - DownloadFiles_Restrictions - DownloadFiles_Pre - DownloadFiles_Post **Parameters** | Type | Name | Description | |---------------------------------------------------|------------|----------------------------------------------------------------------------------------------------------------------| | [File[]](inv:powervault#code_reference/objects/file) | files | The files which should get / are downloaded. | | bool | successful | **Post**:
The information whether the Web Service call was successful or not is only available in *Post* events. | **Examples:**\ DownloadFiles_Restrictions: ```powershell Register-VaultEvent -EventName DownloadFiles_Restrictions -Action 'RestrictDownloadFiles' function RestrictDownloadFiles($files) { #Write event code here } ``` DownloadFiles_Pre: ```powershell Register-VaultEvent -EventName DownloadFiles_Pre -Action 'PreDownloadFiles' function PreDownloadFiles($files) { #Write event code here } ``` DownloadFiles_Post: ```powershell Register-VaultEvent -EventName DownloadFiles_Post -Action 'PostDownloadFiles' function PostDownloadFiles($files, $successful) { #Write event code here } ```