Skip to content

Addressing Computer Membership Unknown Issues with Remote Computer#2229

Merged
dpaulson45 merged 1 commit into
mainfrom
dpaul-HcAdModule
Nov 26, 2024
Merged

Addressing Computer Membership Unknown Issues with Remote Computer#2229
dpaulson45 merged 1 commit into
mainfrom
dpaul-HcAdModule

Conversation

@dpaulson45
Copy link
Copy Markdown
Member

Issue:
Getting a lot of results for Unknown - Wasn't able to get the Computer Membership information. This appears to be due to remote execution of the AD Module cmdlets. Trying a different approach to see if they work or not.

Reason:
AD Module cmdlets don't work inside Invoke-Command

Fix:
Moved the Get-ADPrincipalGroupMembership and Get-ADComputer outside of the Invoke-ScriptBlockHandler to see if that works. This should resolve the issues but going to leave them open to verify.

#2128
#2221
#2110

Validation:
Lab tested

AD Module cmdlets don't work inside Invoke-Command
@dpaulson45
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants