This article presents Powershell commands for SCCM that are useful for extracting information about machines or making changes on the fly. It is not exhaustive and will be completed over time. It is a collection of commands that can be found on different sites. This memo of Powershell commands for SCCM avoids searching everywhere for commands that are often used but sometimes forgotten.
Modifier les paramètres de déploiement d’application
Listed below are the commands commonly used to modify deployment settings. As a reminder, the full list is available on the Microsoft learn.
Pre-deploy software to the user’s primary device
Set-cmapplicationdeployment -applicationName "xxx" -CollectionName "xxx" -PreDeploy 1