Veritas Enterprise Vault™ PowerShell Cmdlets
New-EVFSAFolder
New-EVFSAFolder adds the specified folder as a File System Archiving target.
New-EVFSAFolder is provided by Symantec.EnterpriseVault.PowerShell.AdminAPI.dll, which is loaded by the Enterprise Vault Management Shell.
New-EVFSAFolder [-SiteId <String>] [-FileServer] <String> [-Volume] <String> [-FolderRelativePath] <String> [-Policy <String>] [-IgnoreVolumeRules [<SwitchParameter>]] [-DisableArchivingOnFolder [<SwitchParameter>]] [-DisableArchivingOnSubFolders [<SwitchParameter>]] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]
New-EVFSAFolder [-SiteId <String>] -Identifier <String> [-Policy <String>] [-IgnoreVolumeRules [<SwitchParameter>]] [-DisableArchivingOnFolder [<SwitchParameter>]] [-DisableArchivingOnSubFolders [<SwitchParameter>]] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]
Table: New-EVFSAFolder parameters
Parameter | Description |
---|---|
-SiteId (required) | The ID of the Enterprise Vault site in which the file server volume is configured. If you omit this parameter, New-EVFSAFolder uses the ID of the site of the Enterprise Vault server where the cmdlet is running. You can use Get-EVSite to obtain the site ID. |
-FileServer (required) | The fully-qualified DNS name, UNC name, alias name, or entry ID of the file server that hosts the folder. The name should be the same as the name that was used when you added the file server, or the name that the Administration Console displays. You can use Get-EVFSAFileServer to obtain the file server name. You can specify the UNC name with or without the \\ prefix and you can specify either the hostname or the alias as the UNC name. Parameter aliases: FileServerDNSName, FileServerName, FileServerId. |
-Identifier (required) | The path of the folder that you want to add, in the following format: \\file server name\volume name\folder relative path |
-Volume (required) | The name or the entry ID of the file server volume that hosts the folder. Parameter aliases: VolumeId, VolumeName |
-FolderRelativePath (required) | The relative path of the folder that you want to add. Parameter alias: FolderName |
-Policy | The name or the entry ID of the folder policy that Enterprise Vault should use to archive items from the folder. You are prompted for confirmation if the specified folder is on an EMC Celerra/VNX file server and the policy has the setting enabled.Parameter aliases: PolicyId, PolicyName |
-IgnoreVolumeRules | Specifies that Enterprise Vault should ignore volume policy rules when it archives the folder. This option is not available if you have not specified a folder policy. |
-DisableArchivingOnFolder | Disables File System Archiving on the specified folder. |
-DisableArchivingOnSubFolders | Disables File System Archiving on the subfolders of the specified folder. |
-Confirm | Prompts you for confirmation before running the cmdlet. You can use this to suppress the confirmation prompt that appears when this cmdlet is run for a folder on an EMC Celerra/VNX file server. To suppress the prompt, type -Confirm:$false. |
-WhatIf | Shows what would happen if the cmdlet runs. The cmdlet is not actually run. |
New-EVFSAFolder \\abc volume1 folder1
or
New-EVFSAFolder -FileServer \\abc -Volume volume1 -FolderRelativePath folder1
or
New-EVFSAFolder -FileServerName \\abc -VolumeName volume1 -FolderRelativePath folder1
or
New-EVFSAFolder -Identifier \\abc\volume1\folder1
or
New-EVFSAFolder -FolderPath \\abc\volume1\folder1
Enables File System Archiving on the folder 'folder1' on the file server volume 'volume1' that is configured on the file server with the UNC name '\\abc'. The cmdlet uses the volume policy when it archives from this folder.
New-EVFSAFolder abc.example.com volume1 folder1 -Policy 'office files'
or
New-EVFSAFolder -FileServer abc.example.com -Volume volume1 -FolderRelativePath folder1 -Policy 'office files'
or
New-EVFSAFolder -FileServerDNSName abc.example.com -VolumeName volume1 -FolderRelativePath folder1 -PolicyName 'office files'
or
New-EVFSAFolder -FolderPath \\abc.example.com\volume1\folder1
Enables File System Archiving on the folder 'folder1' on the file server volume 'volume1' that is configured on the file server with the fully-qualified domain name 'abc.example.com'. The cmdlet uses the folder policy named 'office files' when it archives this folder.
New-EVFSAFolder '123...example.com' '456...example.com' folder1 -Policy '789...example.com' - DisableArchivingOnFolder -DisableArchivingOnSubFolders
or
New-EVFSAFolder -FileServer '123...example.com' -Volume '456...example.com' -FolderRelativePath folder1 -Policy '789...example.com' -DisableArchivingOnFolder -DisableArchivingOnSubFolders
or
New-EVFSAFolder -FileServerId '123...example.com' -VolumeId '456...example.com' -FolderRelativePath folder1 -PolicyId '789...example.com' -DisableArchivingOnFolder -DisableArchivingOnSubFolders
Enables File System Archiving on the folder 'folder1' on the file server volume with the entry ID '456...example.com' that is configured on the file server with the entry ID '123...example.com'. The cmdlet uses the folder policy with the entry ID '789...example.com' and disables archiving from the folder and subfolders.
The New-EVFSAFolder properties that are available are listed in the following table:
Table: New-EVFSAFolder properties
Name | Type | Description |
---|---|---|
FolderPath |
String |
The full path of the folder that is enabled for File System Archiving. The path is in the format \\file server name\volume name\folder relative path. |
FolderName | String | The relative path of the folder. |
FolderPolicyName | String | The name of the folder policy that Enterprise Vault uses to archive items from the folder. |
VolumePolicyName | String | The name of the volume policy that Enterprise Vault uses to archive items from the volume. |
IgnoreVolumeRules | String | Specifies that Enterprise Vault should ignore volume policy rules when it archives items from the folder. |
ArchivingEnabledOnFolder | Boolean | Specifies whether File System Archiving is enabled on the folder. |
ArchivingEnabledOnSubfolders | Boolean | Specifies whether File System Archiving is enabled on the subfolders of the folder. |
FileServerName | String | The fully-qualified DNS name of the file server that hosts the folder. |
FileServerId | String | The ID of the file server that hosts the folder. |
VolumeName | String | The name of the volume that hosts the folder. |
VolumeId | String | The ID of the volume that hosts the folder. |
FolderId | String | The ID of the folder. |
FolderPolicyId | String | The ID of the folder policy that Enterprise Vault uses to archive items from the folder. |
VolumePolicyId | String | The ID of the volume policy that Enterprise Vault uses to archive items from the volume. |
See Get-EVFSAFolder.
See Remove-EVFSAFolder.
See Set-EVFSAFolder.