使用属性设置Veeam VSS作业选项

时间:2019-01-24 11:13:01

标签: powershell veeam

我正在尝试为Veeam作业设置VSS配置选项。我修改对象的属性,如下所示:

# Get the VBR Job
$jobname = "TestJob"
$VSSOptions = (Get-VBRJob -Name $jobname).VSSOptions

# Set the required property to false. This is a boolean type.
$VSSOptions.GuestProxyAutoDetect = $false
# SUCCESS. Property is set 'false' confirmed with $VSSOptions

# Set the VSS options on the job.
Get-VBRJob -Name $jobname | Set-VBRJobVssOptions -Options $VSSOptions

# Check the output.
Get-VBRJob -Name $jobname | Get-VBRJobObject | Select -First 1 | Get-VBRJobObjectVssOptions 

命令Set-VBRJobVssOptions不会显示错误消息,但是不会设置属性。它不起作用。

我想念什么?

0 个答案:

没有答案