Hi, @Frank Vanhoorne
Thanks very much for your feedback. We're glad that the problem is solved now. Here's a short summary for the problem, we believe this will help other users to search for useful information more quickly.
Problem/Symptom:
Use powershell to delete a certain OS requirement (Windows 7) on a deployment type.
Solution/Workaround:
$CMApplication = ConvertTo-CMApplication -InputObject (Get-CMApplication -Name "MyAppName")
$DT = $CMApplication.DeploymentTypes[0]
$Requirement = $DT.requirements[0]
$Requirement.Expression.Operands.Remove("Windows/All_x64_Windows_7_Client")
$Requirement.Expression.Operands.Remove("Windows/All_x86_Windows_7_Client")
$Application = ConvertFrom-CMApplication -Application $CMApplication
$Application.Put()
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.