Skip to content

Computer Membership Fix update#2243

Merged
dpaulson45 merged 4 commits into
mainfrom
dpaul-ADModule
Dec 5, 2024
Merged

Computer Membership Fix update#2243
dpaulson45 merged 4 commits into
mainfrom
dpaul-ADModule

Conversation

@dpaulson45
Copy link
Copy Markdown
Member

Issue:
After the refactoring of Computer Memberships in PR #2229, we got more information about what is failing in customer's environment.
 
Reason:
Some computers didn't have the Active Directory PowerShell Module installed on the computer running the Health Checker, making this known and that it should be installed. The second is issue with Get-ADPrincipalGroupMembership stating it can't be run because the user isn't authenticated. Created some fallback logic to try to use Get-ADObject instead.

Fix:
Callout that we don't have Active Directory Module installed and that we should have it installed in order to properly check this feature.

Have fallback logic to run Get-ADObject instead for the MemberOf for the computer.

Resolved #2242
Resolved #2239

Validation:
Lab tested/Pester tested/Pending customer confirmation

@dpaulson45 dpaulson45 added Issue Health Checker Do not merge Do not merge yet as work is still in progress or waiting for other PR to be merged first labels Dec 4, 2024
@dpaulson45 dpaulson45 requested a review from a team as a code owner December 4, 2024 23:30
@lusassl-msft
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

lusassl-msft
lusassl-msft previously approved these changes Dec 5, 2024
Get-ADObject by default only searches the current domain when using Identity.
Need to adjust to use the Filter and the GC port to find the objects we want.
@dpaulson45
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dpaulson45 dpaulson45 merged commit 5058ec6 into main Dec 5, 2024
@dpaulson45 dpaulson45 deleted the dpaul-ADModule branch December 5, 2024 17:27
@dpaulson45 dpaulson45 removed the Do not merge Do not merge yet as work is still in progress or waiting for other PR to be merged first label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants