MicrosoftDocs / SCCMdocs

Configuration Manager documentation public repo
https://docs.microsoft.com/sccm/
Creative Commons Attribution 4.0 International
251 stars 361 forks source link

Create an Advertisement and Correct RemoteClientFlags #870

Closed KrenidaN closed 6 years ago

KrenidaN commented 6 years ago

Documentation is very good and does help out a lot, but on the topic of Creating an Advertisement in the Example section, one of the C# lines is:

newAdvertisement["AdvertFlags"].IntegerValue = newAdvertisementFlags;

I can see where the newAdvertisementFlags variable stems from and how it is passed, but I cannot find any reference to how to actually set this variable. What should be set and what is mandatory to be set? How do I go about doing this?

Any info and/or guidance will be helpful.

Thanks in advance


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ramseygr commented 6 years ago

here's the enum for advertisement flags:

https://github.com/MicrosoftDocs/SCCMdocs/blob/master/sccm/develop/reference/core/servers/configure/sms_advertisement-server-wmi-class.md

aczechowski commented 6 years ago

Thanks @KrenidaN for the feedback, and thank you @ramseygr for the reference. The URL for the published article is https://docs.microsoft.com/sccm/develop/reference/core/servers/configure/sms_advertisement-server-wmi-class. @KrenidaN does this answer your question?

KrenidaN commented 6 years ago

Not completely, as I have already read that article. As far as I understood, I only have to "pipe" all the settings I require to the newAdvertisement["AdvertFlags"].IntegerValue like so:

newAdvertisement["AdvertFlags"].IntegerValue = newAdvertisement["AdvertFlags"].IntegerValue | NO_DISPLAY;

where NO_DISPLAY variable is converted to integer and so on for all the settings.

Please correct me if I'm wrong.

aczechowski commented 6 years ago

Thanks for taking the time to share this with the Configuration Manager documentation team. I’m sorry that you’re having problems, and I want to make sure it gets to the right people that can help. There are a couple of options available to provide the best level of support for this:

I'm closing this issue as there's nothing actionable for docs at this time.