正确认识 Source 参数
2016-04-06 21:31
253 查看
正确认识 Source 参数
Enable-WindowsOptionalFeatureEnables a feature in a Windows image.
语法
Enable-WindowsOptionalFeature [-All] [-LimitAccess] [-LogLevel <LogLevel>] [-LogPath <String>] [-NoRestart] [-PackageName <String>] [-ScratchDirectory <String>] [-Source <String[]>] [-SystemDrive <String>] [-WindowsDirectory <String>] -FeatureName <String[]> -Online [<CommonParameters>] Enable-WindowsOptionalFeature [-All] [-LimitAccess] [-LogLevel <LogLevel>] [-LogPath <String>] [-NoRestart] [-PackageName <String>] [-ScratchDirectory <String>] [-Source <String[]>] [-SystemDrive <String>] [-WindowsDirectory <String>] -FeatureName <String[]> -Path <String> [<CommonParameters>] …
…
-Source <String[]>
Specifies the location of the files that are required to restore a feature that has been removed from the image. You can specify the Windows directory of a mounted image or a running Windows installation that is shared on the network. If you specify multiple Source arguments, the files are gathered from the first location where they are found and the rest of the locations are ignored. Separate feature names with a comma.
一直错误地认为 Source 只支持一个目录,还纳闷一个目录为啥要用数组呢?
原来是支持多个目录的;
如果在多个目录下有同名的文件,只使用第一个目录中的,其余的忽略。
而不是只认第一个目录,其余的忽略。
唉!
多个目录用逗号分隔。
相关文章推荐
- 在线绘图
- 针对近期实习笔试题的看法
- php 数组NULL元素的批量处理
- 写一个js向左滑动删除 交互特效的插件——Html5 touchmove
- onSaveInstanceState和onRestoreInstanceState触发的时机
- CodeForces 614A . Link/Cut Tree【坑精度!!!】
- 3.27 三二 A CodeForces 635A 中提琴 暴力
- 学习进度表
- 什么是XAML?
- Xen-Server 6.5 在虚拟机中创建虚拟机模板
- CodeForces 6C Alice, Bob and Chocolate
- python中__init__.py文件的作用
- eclipse远程连接hadoop单机模式出现的问题
- [sql]MySQL数据备份小结
- Maven项目管理(一) IntelliJ Idea+Maven环境搭建与基于命令行的基本使用
- LeetCode--sort-list
- AlertDialog弹出对话框条件不成立不消失
- 添加约束及打印五角星及查询
- CentOS下添加sudo用户
- HDU2039