正确认识 Source 参数
- 正确认识 Source 参数 推荐度:
- 相关推荐
正确认识 Source 参数
正确认识 Source 参数
Enable-WindowsOptionalFeature
Enables 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服务器端API原理及示例(接口开发)
- 俞敏洪在北京大学2008年开学典礼上的演讲辞
- React:Component组件
- 专业人士解释杜邦分析法(二)
- Revit二次开发入门相关安装和配置
- [日记] 招行的服务就是不错。。。。
- void指针(void *)是什么?如何使用它
- ADFS 概念与基本开发介绍 (1)
- 如何自学Python爬虫,python爬虫快速入门教程
- 下列c语言表达式能正确表达ch是空格或者回车的是,c语言上机选择题题及答案...
- 2018.3版本 CLion的激活码
- html5 调用手机摄像头详解
- 微信小程序多个倒计时
- JAVA Integer取值范围问题
- CListCtrl基本用法
- AnacondaConda创建环境时报错的解决方案
- 统计学,机器学习,深度学习,数据挖掘的联系