随笔 - 911  文章 - 5  评论 - 94  阅读 - 243万

组策略--下发文件到计算机

计算机配置-首选项-Windows设置-文件

操作:替换   (注:如果选择为 更新 的话,如果目标文件已存在,则无法对其文件内容进行更新,只会更新文件属性)

源文件:\\win2012\mdt_test\a.txt   (注:mdt_test为共享文件夹,添加共享时赋予 Authenticated Users组 读取权限,其他权限不需要,赋予Domain Users组权限无效,因为此处针对的是 计算机账户)

目标文件:C:\mm\a.txt

常用选项卡-项目级别目标--新建项目--安全组--选择一个已有组(该组中包含需要应用该策略的计算机,如果计算机不在该组中,则其计算机不应用该策略)

 

操作区别:

Create

Copy a file (or multiple files in one folder) from a source location to a destination location if it does not already exist at the destination, and then configure the attributes of those files for computers or users.

Delete

Remove a file (or multiple files in one folder) for computers or users.

Replace

Delete a file (or multiple files in one folder), replace it with another file or files, and configure the attributes of those files for computers or users. The net result of the Replace action is to overwrite the files at the destination location. If the file does not exist at the destination, then the Replace action copies the file from the source location to the destination.

Update

Modify settings of an existing file (or multiple files in one folder) for computers or users. This action differs fromReplace in that it only updates file attributes defined within the preference item. All other file attributes remain as configured on the file. If the file does not exist, then the Update action copies the file from the source location to the destination.

 

详细参考:http://technet.microsoft.com/en-us/library/cc772536.aspx

posted on   momingliu11  阅读(3165)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示