![](/img/trans.png)
[英]Pairing SCCM Boundary's and Boundary Groups in SCCM Using PowerShell
[英]SCCM Powershell edit TaskSequence settings using Set-CMTaskSequence
嘗試更改我的 TS 支持的操作系統以便在軟件中心隱藏/顯示它。
導入 ConfigurationManager.psd1 模塊並根據Set-CMTaskSequence的文檔,我應該能夠指定應該支持的操作系統:
如果我手動設置一個特定的操作系統,然后想撤消以下代碼,請將我的 TS 改回“在任何平台上運行” :
Set-CMTaskSequence -TaskSequenceId XYZ00023 -RunOnAnyPlatform
我當前嘗試設置指定操作系統的代碼出錯:
Set-CMTaskSequence -TaskSequenceId XYZ00023 -AddSupportedOperatingSystemPlatform (Get-CMSupportedPlatform | Where-Object {$_.CI_UniqueID -eq 'Windows/All_x64_Windows_8.1'})
它與我嘗試設置的操作系統無關,每次都會出現相同的錯誤。
任何人都嘗試並成功地使用 Powershell 更改了此值並且可以協助如何?
如果您使用-Verbose
,則會顯示一條警告: WARNING: Unsupported platform 'All x64 Windows 8.1 devices' for task sequence.
您應該使用用client
表示的操作系統:
$os = Get-CMSupportedPlatform -Fast | Where-Object { $_.CI_UniqueID -eq "Windows/All_x64_Windows_8.1_Client" }
Set-CMTaskSequence -TaskSequenceName "XYZ00023" -AddSupportedOperatingSystemPlatform $os -Verbose
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.