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

xDNSServerAddress set-target resource compare is the wrong way around #96

Closed
DdenBraver opened this issue Feb 10, 2016 · 0 comments
Closed

Comments

@DdenBraver
Copy link

In the following example, the set-target resource will not make any changes if the DNS Value of the server is not filled in.

This can be resolved by comparing the other way around:

PS C:\Windows\system32> Compare-Object -ReferenceObject $currentAddress -DifferenceObject $Address -SyncWindow 0
InputObject  SideIndicator
-----------  -------------
192.168.10.1 =>          
PS C:\Windows\system32> (Compare-Object -ReferenceObject $currentAddress -DifferenceObject $Address -SyncWindow 0).length 
PS C:\Windows\system32> Compare-Object -ReferenceObject $Address -DifferenceObject $addressCompare -SyncWindow 0
 InputObject SideIndicator
 ----------- -------------
       False =>           
192.168.10.1 <=           
PS C:\Windows\system32> (Compare-Object -ReferenceObject $Address -DifferenceObject $addressCompare -SyncWindow 0).length
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant