我正在使用PowerShell DSC Pull Server。
是否可以使用文件资源在每次修改时复制文件?
我已尝试以下操作:
但是没有运气:如果我修改了SourcePath中的文件,我期望目标文件也应该被更新。
File Test{
DestinationPath = "c:\yyy\test.txt"
SourcePath = "\\share\test.txt"
Ensure = "Present"
Type = "File"
Credential = $Credential
Checksum = "modifiedDate"
Force = $true}
但是没有运气:如果我修改了SourcePath中的文件,我期望目标文件也应该被更新。