Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

摘要

本文說明在適用于 Microsoft System Center 2012 R2 Configuration Manager 的累積更新 2 (CU2) 中修正的Windows PowerShell問題。 其他 CU2 修正在 System Center 2012 R2 Configuration Manager 的累積更新2 中說明。

已修正的問題

Windows PowerShell

  • Export-CMApplication Cmdlet 會取代 -Path 參數中指定的檔案,而不會提示您確認。

    注意 安裝此更新之後,系統會提示您覆寫現有的檔案。 您可以使用 -Force 參數隱藏此提示。

  • 嘗試檢視使用New-CMSecondarySite Cmdlet 建立的次要網站上通訊點屬性時,會產生類似下列情況的例外狀況:

    System.ArgumentOutOfRangeException
    Value of '1/1/1900 12:00:00 AM' 是不正確'Value'。 「值」應該在「MinDate」和「MaxDate」之間。
    參數名稱:值



    注意:如果此 Cmdlet 先前曾用來建立通訊點,而該發佈點現在會顯示這些症狀,您必須重新建立發佈點,才能顯示內容。

  • 當您搭配 -SiteSystemServerName 參數使用時,Set-CMSystemHealthValidatorPointComponent Cmdlet 會失敗。 此外,您會收到類似下列的錯誤訊息:

    Set-CMSystemHealthValidatorPointComponent:沒有物件對應到指定的參數。


  • Set-CMSite Cmdlet 可能會傳回類似以下的不正確訊息:

    警告:無法取得 BGB 埠實例,此網站為 NOT SP1 網站或部分 DB 資料損毀。
    Set-CMSite:輸入參數驗證失敗。 無法繼續。


  • New-CMClientSetting Cmdlet 不正確地讓您建立「預設」類型的用戶端設定。

  • 當指定的部署類型名稱不存在時,Remove-CMDeploymentType Cmdlet 會傳回 Null ,而非錯誤條件。

  • 在多個案例中,New-CMTaskSequence Cmdlet 會失敗。

  • Add-CMSoftwareUpdatePoint Cmdlet 會建立出現在系統管理員主機上但無法與 WSUS 同步處理的軟體更新點。

  • 只有當您搭配 -ValidateContentSchedule 參數使用時,Add-CMDistributionPoint Cmdlet 才能建立 HTTPS 分配點。

    注意:此更新新增了額外的參數 -EnableSSL,以允許控制 SSL 模式,而不受傳遞至 -ClientConnectionType 參數的值之外。

  • New-CMGlobalCondition Cmdlet 不正確地需要使用 -WhereClause 參數。

  • 不使用 -DeviceID 參數,Install-CMClient Cmdlet 就無法運作。

  • 當Start-CMApplicationDeployment Cmdlet 與 Windows Microsoft Store、Apple Microsoft Store 或Google Play應用程式搭配使用時會失敗,因為預期內容存在於發佈點上。

  • Export-CMDriverPackage Cmdlet 無法搭配下列參數使用:

    • -名稱

    • -ID

    • -InputObject

    此外,您會收到類似以下的錯誤訊息:

    Export-CMDriverPackage:值不能是 Null。

    參數名稱: parameterName


  • 您無法使用Windows PowerShell,將此套件中的內容複寫到通訊點套件屬性上的套件共用。

  • 您無法使用Set-CMPackage Cmdlet 移除套件共用的名稱。

    注意:已移除 -ShareType 參數。

    若要啟用或停用共用,請使用新的 -ShareContent <布林>參數。

  • 當 -DeployPurpose 參數定義為 [必要] 時,Start-CMPackageDeployment Cmdlet 會失敗。 此外,您會收到類似以下的錯誤訊息:

    Start-CMPackageDeployment:無法使用指定的具名參數解決參數集。



    注意:對於裝置程式部署,您必須指定 -DeviceProgram 參數。

    針對標準程式部署,您必須指定 -StandardProgram 參數。

  • 當您將每日維護視窗指定為 -Schedule 參數的輸入時,New-CMMaintenanceWindow Cmdlet 會失敗。 此外,您會收到類似以下的錯誤訊息:

    New-CMMaintenanceWindow:由於物件目前的狀態,操作無效。


  • Get-CMUserDataAndProfileConfigurationItemXmlDefinition Cmdlet 不會傳回資料。

  • Set-CMClientSetting Cmdlet 會將不正確的值傳遞至 -MaxTransferRateOffSchedule 參數。

  • Set-CMClientSetting Cmdlet 不會驗證傳遞至下列任一參數的輸入:

    • -PortalUrl

    • -優先順序

    • -設定

    • -ForceRebootPeriod


  • Set-CMSoftwareMeteringRule Cmdlet 不會使用 -NewProductName 參數。 此外,您會收到類似以下的錯誤訊息:

    Set-CMSoftwareMeteringRule:無法使用指定的具名參數來解決參數集。


  • 在 -LanguageSelection 參數可用的清單中,Set-CMSoftwareUpdateAutoDeploymentRule Cmdlet 缺少多種語言。

    注意 安裝此更新之後,語言清單會以參數的形式移除,並在內部驗證為 Cmdlet。

  • 當您將 Remove-CMApplicationRevisionHistory Cmdlet 和 Restore-CMApplicationRevisionHistory Cmdlet 與 -ID 參數搭配使用時,它們無法運作。

  • Get-CMAccessLicense Cmdlet 需要 -License 參數,而非在您使用時傳回所有授權而不使用任何參數。

  • Start-CMContentDistribution Cmdlet 和 Remote-CMContentDistribution Cmdlet 會傳回不正確的警告訊息。

  • Set-CMProgram Cmdlet 與 -InputObject 參數預期會出現 SMS_Package 而非SMS_Program。

    注意:若要修改標準程式,必須指定 -StandardProgram 參數。

    若要修改裝置程式,必須指定 -DeviceProgram 參數

  • Set-CMPowerControl Cmdlet 無法驗證 -PowerControlType 參數。

  • Set-CMDeviceOwnership Cmdlet 無法驗證 -OwnershipType 參數。

  • Set-CMTrustedRootCertificateProfileConfigurationItem Cmdlet 不正確地將 -DesiredConfigurationDigestPath 參數定義為選用。

  • Get-CMAssetIntelligenceSynchronizationPoint Cmdlet 會傳回 Null 物件。 這可防止它做為其他 Cmdlet 的輸入。

  • Import-CMBaseline Cmdlet 和 Import-CMConfigurationItem Cmdlet 缺少 -Force 參數以隱藏內容簽名的安全性警訊。

  • 當您檢視通訊點的屬性時,系統管理員主控台會出現「超出範圍的引數」例外狀況。 使用 Add-CMDistributionPoint Cmdlet 和 -EnableMulticast 參數建立的分配點會發生這種情況。

  • Start-CMPackageDeployment Cmdlet 可防止在沒有任何來源檔案時部署套件。

  • 當您將Start-CMPackageDeployment Cmdlet 與裝置程式搭配使用時會失敗。

  • 當您搭配 -AddBoundaryGroup 參數或 -RemoveBoundaryGroup 參數使用 KeyNotFoundException 訊息時,Set-CMDistributionPoint Cmdlet 會傳回「KeyNotFoundException 訊息。

  • 當您將 Remove-CMDeploymentType Cmdlet 與 -DeploymentTypeName 參數或 -DeploymentTypeID 參數搭配使用時,會傳回「NullReferenceException」訊息。

  • 當您移轉集合時,New-CMMigrationJob Cmdlet 會失敗。

Start-CMDistributionPointUpgrade Cmdlet

當您使用Start-CMDistributionPointUpgrade Cmdlet 將共用發佈點升級至 Microsoft System Center 2012 R2 Configuration Manager發佈點時,Cmdlet 會失敗。 如果在 -sitecode 參數中參照次要網站,就會發生此問題。 如需此問題的詳細資訊,請參閱System Center 2012 R2 Configuration Manager 中的 Start-CMDistributionPointUpgrade Cmdlet 失敗

其他變更

  • -OnFastNetworkMode 參數會新增至 Add-CMDeploymentType Cmdlet,以便與 -AppV5xInstaller 參數集搭配使用。

  • ) 允許的執行時間上限 (分鐘:當您使用 SetByNamePropertyDeepLinkInstaller 參數集做為 Set-CMDeploymentType Cmdlet 時,無法定義此設定。

  • 下列 Cmdlet 支援設定其他影像屬性:

    • Set-CMOperatingSystemImage,

    • Set-CMOperatingSystemInstaller

    • Set-CMBootImage


  • Set-CMDriverPackage Cmdlet 會新增更多參數來設定驅動程式套件屬性。

  • 多個 Get-and Remove Cmdlet 現在支援查詢參數中的萬用字元。 這包括下列 Cmdlet:

    • Get-CMAccount

    • Get-CMActiveDirectoryForest

    • Get-CMActiveDirectorySite

    • Get-CMAdministrativeUser

    • Get-CMAlert

    • Get-CMAlertSubscription

    • Get-CMAntimalwarePolicy

    • Get-CMApplication

    • Get-CMApplicationCatalogWebServicePoint

    • Get-CMApplicationCatalogWebsitePoint

    • Get-CMAppVVirtualEnvironment

    • Get-CMAssetIntelligenceCatalogItem

    • Get-CMAutomaticAmtProvisioningStatus

    • Get-CMBaseline

    • Get-CMBaselineXmlDefinition

    • Get-CMBoundary

    • Get-CMBoundaryGroup

    • Get-CMCategory

    • Get-CMClientAuthCertificateProfileConfigurationItem

    • Get-CMClientSetting

    • Get-CMCloudDistributionPoint

    • Get-CMComponentStatusSetting

    • Get-CMConfigurationItem

    • Get-CMConfigurationItemHistory

    • Get-CMConfigurationItemXmlDefinition

    • Get-CMDeployment

    • Get-CMDeploymentStatus

    • Get-CMDevice

    • Get-CMDeviceCollection

    • Get-CMDistributionPoint

    • Get-CMDistributionPointGroup

    • Get-CMDriver

    • Get-CMDriverPackage

    • Get-CMEndpointProtectionPoint

    • Get-CMEnrollmentPoint

    • Get-CMEnrollmentProxyPoint

    • Get-CMFallbackStatusPoint

    • Get-CMGlobalCondition

    • Get-CMHardwareRequirement

    • Get-CMInitialModifiableSecuredCategory

    • Get-CMIPSubnet

    • Get-CMManagementPoint

    • Get-CMManagementPointComponent

    • Get-CMMigrationCollection

    • Get-CMOperatingSystemImage

    • Get-CMOperatingSystemImageUpdateSchedule

    • Get-CMOperatingSystemInstaller

    • Get-CMPackage

    • Get-CMProgram

    • Get-CMRemoteConnectionProfileConfigurationItem

    • Get-CMRemoteConnectionProfileConfigurationItemXmlDefinition

    • Get-CMReportingServicePoint

    • Get-CMSecurityRole

    • Get-CMSecurityScope

    • Get-CMSite

    • Get-CMSitesystemServer

    • Get-CMSoftwareInventory

    • Get-CMSoftwareMeteringRule

    • Get-CMsoftwareUpdate

    • Get-CMSoftwareUpdateDeploymentPackage

    • Get-CMSoftwareUpdateGroup

    • Get-CMSoftwareUpdateLicnese

    • Get-CMSoftwareUpdatePoint

    • Get-CMStateMigrationPoint

    • Get-CMStatusMessageQuery

    • Get-CMStatusSummarizer

    • Get-CMSystemHealthValidatorPoint

    • Get-CMTaskSequence

    • Get-CMTrustedRootCertificateProfileConfigurationItem

    • Get-CMUser

    • Get-CMUserCollectoin

    • Get-CMUserDataAndProfileConfigurationItem

    • Get-CMUserDataAndProfileConfigurationItemXmlDefinition

    • Get-CMUserDeviceAffinity

    • Get-CMVpnProfileConfigurationItem

    • Get-CMVpnProfileConfigurationItem

    • Get-CMWindowsFirewallPolicy

    • Get-CMWinPEOptionalComponentInfo

    • Get-CMWirelessProfileConfigurationItem

    • Remove-CMAccount

    • Remove-CMAlertSubscription

    • Remove-CMAmtProvisioningDataBase

    • Remove-CMApplication

    • Remove-CMApplicationCatalogWebServicePoint

    • Remove-CMApplicationCatalogWebSitePoint

    • Remove-CMAppVVirtualEnvironment

    • Remove-CMAssetIntelligenceSynchronizationPoint

    • Remove-CMBoundaryGroup

    • Remove-CMClientSetting

    • Remove-CMConfigurationItem

    • Remove-CMDevice

    • Remove-CMDeviceCollectoin

    • Remove-CMDistributionPoint

    • Remove-CMDriver

    • Remove-CMEndpointProtectionPoint

    • Remove-CMEnrollmentPoint

    • Remove-CMEnrollmentProxyPoint

    • Remove-CMFallbackStatusPoint

    • Remove-CMGlobalCondition

    • Remove-CMManagementPoint

    • Remove-CMOperatingSystemImage

    • Remove-CMOperatingSystemInstaller

    • Remove-CMProgram

    • Remove-CMReportingServicePoint

    • Remove-CMSecurityRole

    • Remove-CMSecurityScope

    • Remove-CMSoftwareMeteringRule

    • Remove-CMSoftwareUpdateDeploymentPackage

    • Remove-CMSoftwareUpdatePoint

    • Remove-CMStateMigrationPoint

    • Remove-CMStatusMessageQuery

    • Remove-CMSystemHealthValidatorPoint

    • Remove-CMUser

    • Remove-CMUserCollection

    • Remove-DistributionPointGroup

    • Remove-OutOfBandServicePoint


  • Set-CMClientSetting Cmdlet 支援根據用戶端設定類型的新參數。 當您變更相同名稱的設定時,必須使用這些參數。

    • -CloudServicesSettings

    • -EndpointProtectionSettings

    • -RemoteToolsSettings

    • -PowerManagementSettings

    • -StateMessageSettings

    • -UserDeviceAffinitySettings

    • -BitsSettings

    • -ClientPolicySettings

    • -ComplianceSettings

    • -ComputerAgentSettings

    • -ComputerRestartSettings

    • -MeteredNetworkSettings

    • -EnrollmentSettings

    • -HardwareInventorySettings

    • -NetworkAccessProtectionSettings

    • -SoftwareDeploymentSettings

    • -SoftwareMeteringSettings

    • -SoftwareUpdatesSettings

    • -SoftwareInventorySettings


  • Get-CMDeviceCollectionVariable Cmdlet 現在可讓您顯示特定集合中的所有變數。

已知問題

  • 當巢狀集合貼到 -MigrationCollection 參數時,New-CMMigrationJob Cmdlet 會傳回類似下列錯誤:

    New-CMMigrationJob:選取至少一個收藏以繼續。


  • 當您使用大型結果集時,某些 Cmdlet 可能會傳回配額違規 (通常數千個物件) 。 若要避免此問題,請變更用來傳回較少結果的查詢。

  • 當您將憑證到期值與 -CertificateExpirationTimeUtc 參數搭配使用時,Set-CMDistributionPoint Cmdlet 不會如預期般更新憑證到期值。

  • 由於多個 Cmdlet 使用的基礎Windows PowerShell架構程式碼有其他變更,某些 Cmdlet 將不再接受陣列做為特定參數的輸入。 使用 Get-help <Cmdlet_name> 來驗證指定 Cmdlet 的語法和輸入類型。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×