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>]
Description
Set-CMDeploymentType Cmdlet 會變更 Configuration Manager 中應用程式的部署類型。 部署類型是應用程式的一部分,可定義該應用程式在裝置上的安裝方式。
您也可以使用此 Cmdlet 來變更部署類型相依性的優先順序。 Configuration Manager 會先依優先順序評估並安裝部署類型的相依性,再安裝部署類型。
如需詳細資訊, 請參閱應用程式管理簡介 - 部署類型。
注意事項
從 Configuration Manager 月臺磁碟驅動器執行 Configuration Manager Cmdlet,例如 PS XYZ:\>
。 如需詳細資訊,請 參閱開始使用。
範例
範例 1:增加部署應用程式的優先順序
此命令會針對名為 2 - Child 的應用程式設定名為 Configuration Manager 控制台 - Windows Installer (原生) 的部署類型,並增加該應用程式的優先順序。
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
指定部署類型的類型識別碼。
類型: | 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 Installer 的命令行。
類型: | 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
表示部署類型會從 macOS 安裝程式 (.cmmac) 檔案偵測應用程式資訊和部署類型,該檔案是使用 CMAppUtil 工具所建立。
類型: | 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。