摘要
本文說明的 Microsoft System Center 2012 R2 組態管理員的累積的更新 2 (CU2) 中所修正的 Windows PowerShell 問題。其他 CU2 的修正程式是以 System Center 2012 R2 組態管理員的累積更新 2所述。
修正的問題
Windows PowerShell
-
匯出 CMApplication指令程式會取代檔案中所指定-路徑參數,不需確認提示。
注意安裝這個更新之後,系統會提示您覆寫現存的檔案。可以隱藏這項提示,是使用-強制參數。 -
嘗試檢視發佈點的屬性由使用類似下列的例外狀況的新增 CMSecondarySite指令程式結果建立次要站台上︰
System.ArgumentOutOfRangeException
值的 ' 1/1/1900年 12:00:00 AM' 不是有效值 'Value'。'Value' 應該 'MinDate' 和 'MaxDate' 之間。
參數名稱︰ 值
注意如果此指令程式之前用來建立發佈點,且該發佈點現在會顯示這些徵狀,您必須重新建立 [顯示內容的發佈點。 -
當您搭配-SiteSystemServerName參數一起使用時,就會失敗集 CMSystemHealthValidatorPointComponent指令程式。此外,您會收到類似下列的錯誤訊息:
集 CMSystemHealthValidatorPointComponent:,沒有物件會對應到指定的參數。
-
設定 CMSite指令程式可能會傳回類似下列的錯誤訊息︰
警告︰ 無法取得 BGB 連接埠執行個體中,這個站台不是 SP1 站台或某些 DB 資料損毀。
集 CMSite︰ 無法驗證的輸入參數。無法繼續。
-
不正確,新增 CMClientSetting指令程式可讓您建立"預設"類型的用戶端設定。
-
移除 CMDeploymentType cmdlet 會傳回Null而不是錯誤狀況時指定的部署類型名稱不存在。
-
在多個案例中,新增 CMTaskSequence指令程式失敗。
-
新增 CMSoftwareUpdatePoint指令程式建立的軟體更新點會出現在系統管理員主控台,但無法與 WSUS 同步處理。
-
新增 CMDistributionPoint指令程式可讓您搭配-ValidateContentSchedule參數一起使用時,才建立 HTTPS 的發佈點。
注意這個更新會新增一個額外的參數-EnableSSL,以便進行 SSL 模式的控制項傳遞給-ClientConnectionType參數的值不受影響。 -
新增 CMGlobalCondition指令程式不正確會需要使用-WhereClause參數。
-
安裝 CMClient指令程式無法運作是不使用-DeviceID參數。
-
因為預期的內容存在上發佈點使用與 Windows 存放區、 蘋果儲存區或 Google 播放應用程式時,就會失敗開始 CMApplicationDeployment指令程式。
-
匯出 CMDriverPackage指令程式失敗時使用,使用下列參數︰
-
名稱
-
-ID
-
-InputObject
此外,您會收到類似下列的錯誤訊息︰
匯出-CMDriverPackage︰ 值不可為 null。
參數名稱︰ parameterName
-
-
您無法藉由使用 Windows PowerShell 設定複製到發佈點上封裝共用此套件中的內容的 [封裝] 屬性。
-
您無法使用組 CMPackage指令程式,來移除封裝共用資源的名稱。
注意-ShareType參數會被移除。
若要啟用或停用共用,請使用新的-ShareContent < bool >參數。 -
-DeployPurpose參數定義成需要時,就會失敗開始 CMPackageDeployment指令程式。此外,您會收到類似下列的錯誤訊息︰
開始 CMPackageDeployment︰ 參數集使用無法解析指定已命名參數。
注意對於裝置程式的部署,您必須指定-DeviceProgram參數。
對於標準的程式的部署,您必須指定-StandardProgram參數。 -
當您指定做為輸入的每日的維護窗口時,[新增 CMMaintenanceWindow指令程式將會失敗-排程參數。此外,您會收到類似下列的錯誤訊息︰
新 CMMaintenanceWindow︰ 操作不正確,因為物件的目前狀態。
-
取得 CMUserDataAndProfileConfigurationItemXmlDefinition指令程式不會傳回資料。
-
設定 CMClientSetting指令程式遞給-MaxTransferRateOffSchedule參數的值不正確。
-
設定 CMClientSetting指令程式並不會驗證輸入傳遞至任何下列參數︰
-
-PortalUrl
-
-優先順序
-
-設定
-
-ForceRebootPeriod
-
-
設定 CMSoftwareMeteringRule指令程式不使用-NewProductName參數。此外,您會收到類似下列的錯誤訊息︰
集 CMSoftwareMeteringRule︰ 無法解析參數集,使用指定的具名的參數。
-
從可用清單-LanguageSelection參數的多個語言遺漏組 CMSoftwareUpdateAutoDeploymentRule指令程式。
注意您安裝此更新之後,語言的清單是移除做為參數,並給 cmdlet 內部驗證。 -
移除 CMApplicationRevisionHistory指令程式,並還原 CMApplicationRevisionHistory指令程式無法運作,當您與識別碼參數搭配使用。
-
取得 CMAccessLicense指令程式需要-授權而不會傳回所有授權,當您使用不具任何參數的參數。
-
開始 CMContentDistribution指令程式和遠端 CMContentDistribution cmdlet 會傳回不正確的警告訊息。
-
-InputObject參數搭配組 CMProgram指令程式會預期 SMS_Package,而不是 SMS_Program 的執行個體。
注意修改標準的程式,必須指定-StandardProgram參數。
修改裝置程式,您必須指定-DeviceProgram參數 -
設定 CMPowerControl指令程式並不會驗證-PowerControlType參數。
-
設定 CMDeviceOwnership指令程式並不會驗證-OwnershipType參數。
-
不正確,組 CMTrustedRootCertificateProfileConfigurationItem指令程式會定義-DesiredConfigurationDigestPath參數為選擇性。
-
取得 CMAssetIntelligenceSynchronizationPoint cmdlet 會傳回一個 Null 物件。這會防止其使用做為其他的指令程式的輸出。
-
匯入 CMBaseline指令程式及匯入 CMConfigurationItem指令程式被遺漏-強制參數,以隱藏內容的簽章的安全性警示。
-
您檢視的發佈點的內容時,系統管理員主控台會出現 「 引數超出範圍 」 例外狀況。這是由使用新增 CMDistributionPoint指令程式和-EnableMulticast參數的發佈點。
-
開始 CMPackageDeployment指令程式可防止沒有來源檔案時要部署封裝。
-
當您使用與裝置的程式時,就會失敗開始 CMPackageDeployment指令程式。
-
設定 CMDistributionPoint cmdlet 會傳回"KeyNotFoundException 訊息當您使用與-AddBoundaryGroup參數或-RemoveBoundaryGroup參數。
-
當您使用與-DeploymentTypeName參數或-DeploymentTypeID參數時,移除 CMDeploymentType cmdlet 會傳回"NullReferenceException"訊息。
-
當您遷移集合時,新增 CMMigrationJob指令程式就會失敗。
開始 CMDistributionPointUpgrade 指令程式
當您使用開始 CMDistributionPointUpgrade指令程式來升級的 Microsoft System Center 2012 R2 組態管理員 sms 發佈點的共用的發佈點時,此指令程式將會失敗。如果參考-sitecode參數中的次要站台,就會發生這個問題。如需有關這個問題的詳細資訊,請參閱System Center 2012 R2 組態管理員中的開始 CMDistributionPointUpgrade 指令程式失敗。
其他變更
-
-OnFastNetworkMode參數加入新增 CMDeploymentType指令程式,一起用於-AppV5xInstaller參數集。
-
允許的最大執行的時間 (分鐘)︰無法定義設定,當您使用的SetByNamePropertyDeepLinkInstaller參數集集合 CMDeploymentType指令程式。
-
下列的 cmdlet 支援設定其他的圖像內容︰
-
設定 CMOperatingSystemImage,
-
設定-CMOperatingSystemInstaller
-
設定 CMBootImage
-
-
設定 CMDriverPackage指令程式會新增更多的參數,若要設定驅動程式套件內容。
-
多個Get-以及移除- cmdlet 現在支援萬用字元,在 [查詢參數。這包括下列的指令程式︰
-
取得 CMAccount
-
取得 CMActiveDirectoryForest
-
取得 CMActiveDirectorySite
-
取得 CMAdministrativeUser
-
取得 CMAlert
-
取得 CMAlertSubscription
-
取得 CMAntimalwarePolicy
-
取得 CMApplication
-
取得 CMApplicationCatalogWebServicePoint
-
取得 CMApplicationCatalogWebsitePoint
-
取得 CMAppVVirtualEnvironment
-
取得 CMAssetIntelligenceCatalogItem
-
取得 CMAutomaticAmtProvisioningStatus
-
取得 CMBaseline
-
取得 CMBaselineXmlDefinition
-
取得 CMBoundary
-
取得 CMBoundaryGroup
-
取得 CMCategory
-
取得 CMClientAuthCertificateProfileConfigurationItem
-
取得 CMClientSetting
-
取得 CMCloudDistributionPoint
-
取得 CMComponentStatusSetting
-
取得 CMConfigurationItem
-
取得 CMConfigurationItemHistory
-
取得 CMConfigurationItemXmlDefinition
-
取得 CMDeployment
-
取得 CMDeploymentStatus
-
取得 CMDevice
-
取得 CMDeviceCollection
-
取得 CMDistributionPoint
-
取得 CMDistributionPointGroup
-
取得 CMDriver
-
取得 CMDriverPackage
-
取得 CMEndpointProtectionPoint
-
取得 CMEnrollmentPoint
-
取得 CMEnrollmentProxyPoint
-
取得 CMFallbackStatusPoint
-
取得 CMGlobalCondition
-
取得 CMHardwareRequirement
-
取得 CMInitialModifiableSecuredCategory
-
取得 CMIPSubnet
-
取得 CMManagementPoint
-
取得 CMManagementPointComponent
-
取得 CMMigrationCollection
-
取得 CMOperatingSystemImage
-
取得 CMOperatingSystemImageUpdateSchedule
-
取得 CMOperatingSystemInstaller
-
取得 CMPackage
-
取得 CMProgram
-
取得 CMRemoteConnectionProfileConfigurationItem
-
取得 CMRemoteConnectionProfileConfigurationItemXmlDefinition
-
取得 CMReportingServicePoint
-
取得 CMSecurityRole
-
取得 CMSecurityScope
-
取得 CMSite
-
取得 CMSitesystemServer
-
取得 CMSoftwareInventory
-
取得 CMSoftwareMeteringRule
-
取得 CMsoftwareUpdate
-
取得 CMSoftwareUpdateDeploymentPackage
-
取得 CMSoftwareUpdateGroup
-
取得 CMSoftwareUpdateLicnese
-
取得 CMSoftwareUpdatePoint
-
取得 CMStateMigrationPoint
-
取得 CMStatusMessageQuery
-
取得 CMStatusSummarizer
-
取得 CMSystemHealthValidatorPoint
-
取得 CMTaskSequence
-
取得 CMTrustedRootCertificateProfileConfigurationItem
-
取得 CMUser
-
取得 CMUserCollectoin
-
取得 CMUserDataAndProfileConfigurationItem
-
取得 CMUserDataAndProfileConfigurationItemXmlDefinition
-
取得 CMUserDeviceAffinity
-
取得 CMVpnProfileConfigurationItem
-
取得 CMVpnProfileConfigurationItem
-
取得 CMWindowsFirewallPolicy
-
取得 CMWinPEOptionalComponentInfo
-
取得 CMWirelessProfileConfigurationItem
-
移除 CMAccount
-
移除 CMAlertSubscription
-
移除 CMAmtProvisioningDataBase
-
移除 CMApplication
-
移除 CMApplicationCatalogWebServicePoint
-
移除 CMApplicationCatalogWebSitePoint
-
移除 CMAppVVirtualEnvironment
-
移除 CMAssetIntelligenceSynchronizationPoint
-
移除 CMBoundaryGroup
-
移除 CMClientSetting
-
移除 CMConfigurationItem
-
移除 CMDevice
-
移除 CMDeviceCollectoin
-
移除 CMDistributionPoint
-
移除 CMDriver
-
移除 CMEndpointProtectionPoint
-
移除 CMEnrollmentPoint
-
移除 CMEnrollmentProxyPoint
-
移除 CMFallbackStatusPoint
-
移除 CMGlobalCondition
-
移除 CMManagementPoint
-
移除 CMOperatingSystemImage
-
移除 CMOperatingSystemInstaller
-
移除 CMProgram
-
移除 CMReportingServicePoint
-
移除 CMSecurityRole
-
移除 CMSecurityScope
-
移除 CMSoftwareMeteringRule
-
移除 CMSoftwareUpdateDeploymentPackage
-
移除 CMSoftwareUpdatePoint
-
移除 CMStateMigrationPoint
-
移除 CMStatusMessageQuery
-
移除 CMSystemHealthValidatorPoint
-
移除 CMUser
-
移除 CMUserCollection
-
移除 DistributionPointGroup
-
移除 OutOfBandServicePoint
-
-
設定 CMClientSetting指令程式支援新的參數,根據用戶端的設定種類。當您變更相同名稱的設定,則必須使用這些參數。
-
-CloudServicesSettings
-
-EndpointProtectionSettings
-
-RemoteToolsSettings
-
-PowerManagementSettings
-
-StateMessageSettings
-
-UserDeviceAffinitySettings
-
-BitsSettings
-
-ClientPolicySettings
-
-ComplianceSettings
-
-ComputerAgentSettings
-
-ComputerRestartSettings
-
-MeteredNetworkSettings
-
-EnrollmentSettings
-
-HardwareInventorySettings
-
-NetworkAccessProtectionSettings
-
-SoftwareDeploymentSettings
-
-SoftwareMeteringSettings
-
-SoftwareUpdatesSettings
-
-SoftwareInventorySettings
-
-
取得 CMDeviceCollectionVariable指令程式現在可以讓您顯示特定的集合中的所有變數。
已知的問題
-
新增 CMMigrationJob cmdlet 會傳回當巢狀的集合-MigrationCollection參數來貼上時,類似下列的錯誤︰
新 CMMigrationJob︰ 選取至少一個的集合,以繼續。
-
某些指令程式可能會傳回配額違規情形,當您使用大型結果集 (通常是數個數千個物件)。若要避免這個問題,請變更查詢是用來傳回較少的結果。
-
如預期般-CertificateExpirationTimeUtc參數搭配使用時,設定 CMDistributionPoint指令程式並不會更新憑證到期的值。
-
由於基礎 Windows PowerShell 架構程式碼所使用的多個指令程式的其他變更,某些指令程式將不再接受為某些輸入參數的陣列。用於取得說明 <cmdlet_name>驗證指定的指令程式的語法和輸入型別。