Skip to content

xComputer JoinDomain fails when server is already in domain #68

@nilsvbconxion

Description

@nilsvbconxion

Resource fails with fatal error if the computer already is in the domain.
The test should pick this up, which now it doesn't and hence throws a fatal exception when attempting to join the domain again.

Error:
Cannot add computer 'x' to domain 'y' because it is already in that domain.
+ CategoryInfo : InvalidOperation: (x:) [], CimException
+ FullyQualifiedErrorId : AddComputerToSameDomain,Microsoft.PowerShell.Commands.AddComputerCommand
+ PSComputerName : localhost

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug.in progressThe issue is being actively worked on by someone.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions