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

本文介绍在Windows系统中如何使用配置策略进行文件操作,包括创建、删除、替换和更新等动作的区别,并提供了具体的操作实例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

计算机配置-首选项-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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值