Exclude files from layers (Advanced feature) 编辑

You can exclude specific files and folders from a composited layer to prevent files from persisting on a user’s desktop. For example, you can exclude antivirus software files and folders that should not persist for a desktop from one login to the next.

The exclusions you define are applied to a composited layer, once that is part of a published image. This feature is not enforced on a packaging machine, only on a published image where the layers have been composited. That means that you define the exclusions while creating the layer, include the layer in the image template, and then publish the image.

Limitation

Excluded files and folders on elastic layers are not processed. Exclusions can only be processed when present in the image.

Specify files and folders to exclude

In the C:\Program Files\Unidesk\Uniservice\UserExclusions\ folder, create one or more .txt files that specify paths to be excluded.

All valid paths to files and directories are excluded and then read from the image. All changes to those files and directories on the writable layer no longer persist.

If one of the files you create contains an invalid path, processing of that file stops and moves to the next .txt file within the \UserExclusions folder.

You can also use a * character to wildcard one directory for exclusion. For example, C:\Users\*\AppData\Local\Temp\, where * indicates any user name. In this case, any user name that matches the rest of the path fits the exclusion rule, allowing the administrator to skip the user’s \Temp directory for all users who use that image.

For each exclusion rule, you can only wildcard one directory (use one *) in a single path. You cannot exclude multiple directories with one *. For example, using the rule C:\Top\*\Bottom\ excludes the files in directories C:\Top\First\Bottom\, C:\Top\Second\Bottom\, and so on. But files in the directory C:\Top\First\Second\Bottom\ are not excluded, because there are two directories between \Top\ and \Bottom\ rather than one.

There is no limit to the number of exclusion rules you can set containing a wildcard (*).

Examples

Exclude a file:

c:\test\test.txt
<!--NeedCopy-->

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:73 次

字数:3441

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文