Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type site returned by Get-CMSite is not correct #70

Open
PAcoH2 opened this issue Jan 18, 2021 · 1 comment
Open

Type site returned by Get-CMSite is not correct #70

PAcoH2 opened this issue Jan 18, 2021 · 1 comment
Labels
CAS Related to central admin site hierarchy help wanted Extra attention is needed

Comments

@PAcoH2
Copy link

PAcoH2 commented Jan 18, 2021

https://docs.microsoft.com/en-us/mem/configmgr/develop/reference/core/servers/configure/sms_site-server-wmi-class?redirectedfrom=MSDN

Type 3 not exists in SMS_Site Server WMI Class:
Value | Site type
1 | SECONDARY
2 | PRIMARY
4 | CAS

Line 2268. In CAS environment the summary report show:

Site Name Site Code Release Version Version Build
System.Object[] System.Object[] xxxx System.Object[] System.Object[]

PS xxx:> Get-CMSite | Select SiteName,Type

SiteName Type
Central Site - 4
Secondary Site - 1
Secondary Site - 1
Secondary Site - 1
Secondary Site - 1
Secondary Site - 1
Secondary Site - 1
Secondary Site - 1
Primary Site - 2
Primary Site - 2
Primary Site - 2

@ChadSimmons
Copy link
Contributor

@PAcoH2 thanks for the report. Issue #44 is all about reporting in an environment with a CAS. Since this scenario is somewhat rare these days it's harder to develop for and test against. I've put hours into it and have a little bit to show for the progress at this gist. Run it and see if you have any better results. I know that code is not complete and will cause issues with duplicating objects, but it is a start. Hopefully you will have time to invest in improving the code for the CAS scenario.

@paulwetter paulwetter added CAS Related to central admin site hierarchy help wanted Extra attention is needed labels Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CAS Related to central admin site hierarchy help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants