Answered by:
SMS_DeploymentType on SCCM

Question
-
Hi,
can i update the Priority field of the deployment type through SCCM 2012 WebApi
I have searched through SMS_deploymentType where the field is named PriorityInLatestApp how the class is or the entity seems to a read only and SMS_Application - DeploymentTypes does gave priority field, see below code
IResultObject deploymentTypeToModify =
_sccmConnectionManager.GetInstance(@"SMS_DeploymentType.CI_ID='" +
deploymentType.CiId.Trim() + "'");
deploymentTypeToModify.Get();
CustomLogger.Log.Info("Updating UpdateDeployment types priority");
deploymentTypeToModify["PriorityInLatestApp"].IntegerValue = deploymentType.Priority;
deploymentTypeToModify.Put();
deploymentTypeToModify.Get();
Michael Sethaba
- Moved by 宝宝徐 Thursday, October 27, 2016 2:01 AM
Wednesday, October 26, 2016 6:27 AM
Answers
-
I'd probably try them over here.
https://social.technet.microsoft.com/Forums/en-US/home?category=systemcenter2012configurationmanager
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Dave PatrickMVP Saturday, October 29, 2016 2:07 AM
- Marked as answer by Dave PatrickMVP Saturday, November 5, 2016 8:54 PM
Thursday, October 27, 2016 2:12 AM -
I was able to update the deployment priority through powershell scripting, it was something like this
Set-CMDeploymentType -ApplicationName {0} -DeploymentTypeName {1} -Priority {2}
https://technet.microsoft.com/en-us/library/jj822008(v=sc.20).aspx
Michael Sethaba
- Marked as answer by Dave PatrickMVP Tuesday, July 18, 2017 11:49 AM
Tuesday, July 18, 2017 8:08 AM
All replies
-
Hi Michael Sethaba,
Thank you for your post.
This forum is discuss Visual Studio Setup and installation.
As your issue is related to SCCM development, currently MSDN doesn't have a technical forum to support this, I help you move this case to Using Forums > Where is the Forum For…?
Thank you for your understanding.
Best Regards,
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.Thursday, October 27, 2016 2:00 AM -
I'd probably try them over here.
https://social.technet.microsoft.com/Forums/en-US/home?category=systemcenter2012configurationmanager
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Dave PatrickMVP Saturday, October 29, 2016 2:07 AM
- Marked as answer by Dave PatrickMVP Saturday, November 5, 2016 8:54 PM
Thursday, October 27, 2016 2:12 AM -
I was able to update the deployment priority through powershell scripting, it was something like this
Set-CMDeploymentType -ApplicationName {0} -DeploymentTypeName {1} -Priority {2}
https://technet.microsoft.com/en-us/library/jj822008(v=sc.20).aspx
Michael Sethaba
- Marked as answer by Dave PatrickMVP Tuesday, July 18, 2017 11:49 AM
Tuesday, July 18, 2017 8:08 AM