Set-CMDeploymentType
更改 Configuration Manager 应用程序的部署类型。
语法
Set-CMDeploymentType
-InputObject <IResultObject>
[-PassThru]
[-Priority <PriorityChangeType>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
-ApplicationName <String>
[-ClearRequirements]
[-ContentLocation <String>]
-DeploymentTypeName <String>
[-DetectDeploymentTypeByCustomScript]
[-EnableBranchCache <Boolean>]
[-EnableContentLocationFallback <Boolean>]
[-EstimatedInstallationTimeMins <Int32>]
[-Force32BitDetectionScript <Boolean>]
[-Force32BitInstaller <Boolean>]
[-InstallationBehaviorType <InstallationBehaviorType>]
[-InstallationProgram <String>]
[-InstallationProgramVisibility <UserInteractionMode>]
[-InstallationStartIn <String>]
[-Language <String[]>]
[-LogonRequirementType <LogonRequirementType>]
[-MaximumAllowedRunTimeMins <Int32>]
[-MsiOrScriptInstaller]
[-NewDeploymentTypeName <String>]
[-OnSlowNetworkMode <ContentHandlingMode>]
[-PassThru]
[-PersistContentInClientCache <Boolean>]
[-ProductCode <String>]
[-RebootBehavior <RebootBehavior>]
[-RemoveRequirement <Rule[]>]
[-RequireUserInteraction <Boolean>]
[-ScriptContent <String>]
[-ScriptType <ScriptLanguage>]
[-SourceUpdateProductCode <String>]
[-UninstallProgram <String>]
[-UninstallStartIn <String>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
-ApplicationName <String>
[-ClearRequirements]
[-ContentLocation <String>]
-DeploymentTypeName <String>
[-Language <String[]>]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoveRequirement <Rule[]>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
-ApplicationName <String>
[-ClearRequirements]
[-ContentLocation <String>]
-DeploymentTypeName <String>
[-EnableBranchCache <Boolean>]
[-EnableContentLocationFallback <Boolean>]
[-Language <String[]>]
[-MaximumAllowedRunTimeMins <Int32>]
[-NewDeploymentTypeName <String>]
[-OnSlowNetworkMode <ContentHandlingMode>]
[-PassThru]
[-PersistContentInClientCache <Boolean>]
[-RemoveRequirement <Rule[]>]
[-TriggerVpn <Boolean>]
[-Windows8AppInstaller]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
-ApplicationName <String>
[-AppV5xInstaller]
[-ClearRequirements]
-DeploymentTypeName <String>
[-EnableContentLocationFallback <Boolean>]
[-EnablePeerToPeerContentDistribution <Boolean>]
[-Language <String[]>]
[-NewDeploymentTypeName <String>]
[-OnFastNetworkMode <OnFastNetworkMode>]
[-OnSlowNetworkMode <ContentHandlingMode>]
[-PassThru]
[-PersistContentInClientCache <Boolean>]
[-RemoveRequirement <Rule[]>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
-ApplicationName <String>
[-AppVInstaller]
[-ClearRequirements]
-DeploymentTypeName <String>
[-EnableContentLocationFallback <Boolean>]
[-EnablePeerToPeerContentDistribution <Boolean>]
[-Language <String[]>]
[-LoadContentIntoAppVCacheBeforeLaunch <Boolean>]
[-NewDeploymentTypeName <String>]
[-OnFastNetworkMode <OnFastNetworkMode>]
[-OnSlowNetworkMode <ContentHandlingMode>]
[-PassThru]
[-PersistContentInClientCache <Boolean>]
[-RemoveRequirement <Rule[]>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
-ApplicationName <String>
[-ClearRequirements]
[-ContentLocation <String>]
-DeploymentTypeName <String>
[-InstallationProgram <String>]
[-Language <String[]>]
[-MacInstaller]
[-MacRebootBehavior <MacRebootBehavior>]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoveRequirement <Rule[]>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
-ApplicationName <String>
[-ClearRequirements]
[-ContentLocation <String>]
-DeploymentTypeName <String>
[-EnableUserUninstall <Boolean>]
[-Language <String[]>]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoveRequirement <Rule[]>]
[-WindowsMobileInstaller]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
-ApplicationName <String>
[-ApplicationNameInWindowsStore <String>]
[-ClearRequirements]
-DeploymentTypeName <String>
[-Language <String[]>]
[-MaximumAllowedRunTimeMins <Int32>]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoteComputerName <String>]
[-RemoveRequirement <Rule[]>]
[-WindowsStoreInstaller]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
-ApplicationName <String>
[-ClearRequirements]
-DeploymentTypeName <String>
[-Language <String[]>]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoveRequirement <Rule[]>]
[-WebAppInstaller]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
-ApplicationName <String>
[-ClearRequirements]
[-ContentLocation <String>]
-DeploymentTypeName <String>
[-InstallationCommandLine <String>]
-Language <String[]>
[-MobileMsiInstaller]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoveRequirement <Rule[]>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
[-ClearRequirements]
[-ContentLocation <String>]
-InputObject <IResultObject>
[-InstallationCommandLine <String>]
-Language <String[]>
[-MobileMsiInstaller]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoveRequirement <Rule[]>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
[-ClearRequirements]
[-ContentLocation <String>]
[-DetectDeploymentTypeByCustomScript]
[-EnableBranchCache <Boolean>]
[-EnableContentLocationFallback <Boolean>]
[-EstimatedInstallationTimeMins <Int32>]
[-Force32BitDetectionScript <Boolean>]
[-Force32BitInstaller <Boolean>]
-InputObject <IResultObject>
[-InstallationBehaviorType <InstallationBehaviorType>]
[-InstallationProgram <String>]
[-InstallationProgramVisibility <UserInteractionMode>]
[-InstallationStartIn <String>]
[-Language <String[]>]
[-LogonRequirementType <LogonRequirementType>]
[-MaximumAllowedRunTimeMins <Int32>]
[-MsiOrScriptInstaller]
[-NewDeploymentTypeName <String>]
[-OnSlowNetworkMode <ContentHandlingMode>]
[-PassThru]
[-PersistContentInClientCache <Boolean>]
[-ProductCode <String>]
[-RebootBehavior <RebootBehavior>]
[-RemoveRequirement <Rule[]>]
[-RequireUserInteraction <Boolean>]
[-ScriptContent <String>]
[-ScriptType <ScriptLanguage>]
[-SourceUpdateProductCode <String>]
[-UninstallProgram <String>]
[-UninstallStartIn <String>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
[-ClearRequirements]
[-ContentLocation <String>]
-InputObject <IResultObject>
[-Language <String[]>]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoveRequirement <Rule[]>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
[-ClearRequirements]
[-ContentLocation <String>]
[-EnableBranchCache <Boolean>]
[-EnableContentLocationFallback <Boolean>]
-InputObject <IResultObject>
[-Language <String[]>]
[-MaximumAllowedRunTimeMins <Int32>]
[-NewDeploymentTypeName <String>]
[-OnSlowNetworkMode <ContentHandlingMode>]
[-PassThru]
[-PersistContentInClientCache <Boolean>]
[-RemoveRequirement <Rule[]>]
[-TriggerVpn <Boolean>]
[-Windows8AppInstaller]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
[-AppV5xInstaller]
[-ClearRequirements]
[-EnableContentLocationFallback <Boolean>]
[-EnablePeerToPeerContentDistribution <Boolean>]
-InputObject <IResultObject>
[-Language <String[]>]
[-NewDeploymentTypeName <String>]
[-OnFastNetworkMode <OnFastNetworkMode>]
[-OnSlowNetworkMode <ContentHandlingMode>]
[-PassThru]
[-PersistContentInClientCache <Boolean>]
[-RemoveRequirement <Rule[]>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
[-AppVInstaller]
[-ClearRequirements]
[-EnableContentLocationFallback <Boolean>]
[-EnablePeerToPeerContentDistribution <Boolean>]
-InputObject <IResultObject>
[-Language <String[]>]
[-LoadContentIntoAppVCacheBeforeLaunch <Boolean>]
[-NewDeploymentTypeName <String>]
[-OnFastNetworkMode <OnFastNetworkMode>]
[-OnSlowNetworkMode <ContentHandlingMode>]
[-PassThru]
[-PersistContentInClientCache <Boolean>]
[-RemoveRequirement <Rule[]>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
[-ClearRequirements]
[-ContentLocation <String>]
-InputObject <IResultObject>
[-InstallationProgram <String>]
[-Language <String[]>]
[-MacInstaller]
[-MacRebootBehavior <MacRebootBehavior>]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoveRequirement <Rule[]>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
[-ClearRequirements]
[-ContentLocation <String>]
[-EnableUserUninstall <Boolean>]
-InputObject <IResultObject>
[-Language <String[]>]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoveRequirement <Rule[]>]
[-WindowsMobileInstaller]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
[-ApplicationNameInWindowsStore <String>]
[-ClearRequirements]
-InputObject <IResultObject>
[-Language <String[]>]
[-MaximumAllowedRunTimeMins <Int32>]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoteComputerName <String>]
[-RemoveRequirement <Rule[]>]
[-WindowsStoreInstaller]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
[-ClearRequirements]
-InputObject <IResultObject>
[-Language <String[]>]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoveRequirement <Rule[]>]
[-WebAppInstaller]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
-ApplicationName <String>
[-ClearRequirements]
[-ContentLocation <String>]
-DeploymentTypeName <String>
[-Language <String[]>]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoveRequirement <Rule[]>]
[-WindowsPhoneStoreInstaller]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
[-AddRequirement <Rule[]>]
[-AdministratorComment <String>]
[-ClearRequirements]
[-ContentLocation <String>]
-InputObject <IResultObject>
[-Language <String[]>]
[-NewDeploymentTypeName <String>]
[-PassThru]
[-RemoveRequirement <Rule[]>]
[-WindowsPhoneStoreInstaller]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
-ApplicationName <String>
-DeploymentTypeName <String>
[-PassThru]
[-Priority <PriorityChangeType>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMDeploymentType
-ApplicationName <String>
-DeploymentTypeId <Int32>
[-PassThru]
[-Priority <PriorityChangeType>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Set-CMDeploymentType cmdlet 更改 Configuration Manager 中应用程序的部署类型。 部署类型是应用程序的一部分,用于定义该应用程序在设备上安装的方式。
还可以使用此 cmdlet 更改部署类型的依赖项的优先级。 Configuration Manager 在安装部署类型之前,会按优先级顺序评估和安装部署类型的依赖项。
有关详细信息,请参阅 应用程序管理简介 - 部署类型。
注意
从 Configuration Manager 站点驱动器运行 Configuration Manager cmdlet,例如 PS XYZ:\>
。 有关详细信息,请参阅 入门。
示例
示例 1:提高部署应用程序的优先级
此命令为名为“2 - 子级”的应用程序配置名为 Configuration Manager 控制台 - Windows Installer (Native) 的部署类型,并增加该应用程序的优先级。
Set-CMDeploymentType -ApplicationName "2 - Child" -DeploymentTypeName "Configuration Manager Console - Windows Installer (Native)" -Priority Increase
参数
-AddRequirement
为此部署类型添加一系列要求。
类型: | Rule[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-AdministratorComment
指定部署类型的说明。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ApplicationName
指定包含部署类型的部署应用程序的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ApplicationNameInWindowsStore
指定 Windows 应用商店中应用程序的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-AppV5xInstaller
指示部署类型从 Application Virtualization (App-V) 5.0 .appv 包文件检测应用程序信息和部署类型。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-AppVInstaller
指示部署类型从 App-V .appv 包文件检测应用程序信息和部署类型。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ClearRequirements
指示此 cmdlet 清除部署类型要求。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Confirm
提示你在运行 cmdlet 之前进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | False |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ContentLocation
指定内容的路径。 站点系统服务器需要读取内容文件的权限。
类型: | String |
别名: | InstallationFileLocation |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DeploymentTypeId
指定部署类型的类型 ID。
类型: | Int32 |
别名: | CIId, CI_ID, Id |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-DeploymentTypeName
指定部署类型的名称。
类型: | String |
别名: | LocalizedDisplayName, Name |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-DetectDeploymentTypeByCustomScript
指示部署类型使用自定义脚本来检测是否存在此部署类型。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DisableWildcardHandling
此参数将通配符视为文本字符值。 不能将其与 ForceWildcardHandling 组合使用。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EnableBranchCache
指示允许使用 Windows BranchCache 的客户端从本地分发点下载内容。 从基于云的分发点下载的内容始终可以由使用 Windows BranchCache 的客户端共享。
类型: | Boolean |
别名: | AllowClientsToShareContentOnSameSubnet |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EnableContentLocationFallback
指示是否允许客户端对内容使用回退源位置。
类型: | Boolean |
别名: | AllowClientsToUseFallbackSourceLocationForContent |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EnablePeerToPeerContentDistribution
指示客户端是否可以将内容分发给其他客户端。
类型: | Boolean |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EnableUserUninstall
指示是否启用用户卸载。
类型: | Boolean |
别名: | AllowUserToUninstall, AllowsUsersToUninstallThisContent |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EstimatedInstallationTimeMins
指定估计的安装时间(以分钟为单位)。
类型: | Int32 |
别名: | EstimatedInstallationTimeMinutes |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Force32BitDetectionScript
指示是否在 64 位客户端上以 32 位进程的形式运行脚本。
类型: | Boolean |
别名: | RunScriptAs32BitProcessOn64BitClient |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Force32BitInstaller
指示是否在 64 位客户端上以 32 位进程的形式运行安装程序。
类型: | Boolean |
别名: | RunInstallationAndUninstallProgramAs32BitProcessOn64BitClient |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ForceWildcardHandling
此参数处理通配符,并可能导致意外行为, (不建议) 。 不能将其与 DisableWildcardHandling 组合使用。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
指定 Configuration Manager 的部署类型对象。 若要获取部署类型对象,请使用 Get-CMDeploymentType cmdlet。
类型: | IResultObject |
别名: | DeploymentType |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-InstallationBehaviorType
指定部署类型的安装行为。
类型: | InstallationBehaviorType |
接受的值: | InstallForUser, InstallForSystem, InstallForSystemIfResourceIsDeviceOtherwiseInstallForUser |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InstallationCommandLine
指定用于安装应用程序的命令行。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InstallationProgram
指定 Windows 安装程序的命令行。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InstallationProgramVisibility
指定部署类型在客户端设备上运行的模式。
类型: | UserInteractionMode |
接受的值: | Normal, Minimized, Maximized, Hidden |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InstallationStartIn
指定包含部署类型的安装程序的文件夹。 此文件夹可以是客户端上的绝对路径,也可以是包含安装文件的分发点文件夹的路径。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Language
指定部署类型支持的语言数组。
类型: | String[] |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-LoadContentIntoAppVCacheBeforeLaunch
指示在部署应用程序时是否将内容加载到 AppV 缓存中。
类型: | Boolean |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-LogonRequirementType
指定部署类型的登录要求。
类型: | LogonRequirementType |
接受的值: | OnlyWhenUserLoggedOn, WhereOrNotUserLoggedOn, WhetherOrNotUserLoggedOn, OnlyWhenNoUserLoggedOn |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-MacInstaller
指示部署类型从使用 CMAppUtil 工具创建的 macOS 安装程序 (.cmmac) 文件检测应用程序信息和部署类型。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-MacRebootBehavior
指定运行 macOS 的计算机的重新启动行为。
类型: | MacRebootBehavior |
接受的值: | NoAction, ForceReboot |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-MaximumAllowedRunTimeMins
指定最大运行时间(分钟)。
类型: | Int32 |
别名: | MaximumAllowedRunTimeMinutes |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-MobileMsiInstaller
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-MsiOrScriptInstaller
指示部署使用脚本安装程序。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-NewDeploymentTypeName
指定新部署类型的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-OnFastNetworkMode
指定快速网络上部署类型的安装行为。
类型: | OnFastNetworkMode |
接受的值: | RunLocal, RunFromNetwork, DownloadContentForStreaming |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-OnSlowNetworkMode
指定慢速网络上部署类型的安装行为。
类型: | ContentHandlingMode |
接受的值: | DoNothing, Download, DownloadContentForStreaming |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-PassThru
返回当前工作对象。 默认情况下,此 cmdlet 不会生成任何输出。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-PersistContentInClientCache
指示部署类型是否无限期地将内容保存在客户端计算机上的缓存中。
类型: | Boolean |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Priority
指定部署类型的优先级的更改。
类型: | PriorityChangeType |
接受的值: | Increase, Decrease |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ProductCode
指定部署类型的检测方法中的产品代码。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-RebootBehavior
指定客户端计算机的重新启动行为。
类型: | RebootBehavior |
接受的值: | BasedOnExitCode, NoAction, ProgramReboot, ForceReboot |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-RemoteComputerName
指定远程计算机名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-RemoveRequirement
从此部署类型中删除现有安装要求。
类型: | Rule[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-RequireUserInteraction
指示用户是否可以与部署类型安装交互以配置安装选项。
类型: | Boolean |
别名: | RequiresUserInteraction |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ScriptContent
指定用于检测部署类型的脚本。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ScriptType
指定要用于检测部署类型的脚本语言。
类型: | ScriptLanguage |
接受的值: | PowerShell, VBScript, JavaScript |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-SourceUpdateProductCode
指定用于启用安装源管理的 Windows Installer 产品代码。 Windows 源管理允许从可用分发点上的内容源文件自动更新或修复由此部署类型表示的 MSI。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-TriggerVpn
指示自动使用虚拟专用网络 (VPN) 连接。
类型: | Boolean |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-UninstallProgram
指定卸载程序的名称及其所需的任何参数。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-UninstallStartIn
指定包含部署类型的卸载程序的文件夹。 此文件夹可以是客户端上的绝对路径,也可以是相对于包含包的分发点文件夹的路径。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-WebAppInstaller
指示此 cmdlet 使用 Web 应用程序安装程序进行部署。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示在 cmdlet 运行时发生的情况。 cmdlet 不会运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | False |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Windows8AppInstaller
指示部署类型检测 Windows 应用包 (.appx) 文件中的应用程序信息和部署类型。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-WindowsMobileInstaller
类型: | SwitchParameter |
别名: | WMInstaller |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-WindowsPhoneStoreInstaller
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-WindowsStoreInstaller
类型: | SwitchParameter |
别名: | DeepLinkInstaller |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
输入
Microsoft.ConfigurationManagement.ManagementProvider.IResultObject
输出
IResultObject
备注
若要在部署类型上配置返回代码,请使用 Add-CMDeploymentTypeReturnCode cmdlet。