dsccommunity / dsccommunity/NetworkingDsc

xIPAddress: get-netipaddress erroraction stop

Open
#283 4 comments 0 reactions 1 assignee View on GitHub

@PlagueHO is already working on this.

Since Nov 15, 2017.

bug help wanted
Dominant language
PowerShell
Stars
235
Forks
93
PR merge metrics
No merged PRs in 30d

Description

xipaddress will not assign a new ipv6 ip where dhcp is enabled. Error action is set to stop. If set to silentlycontinue the test-targetresource takes 30 seconds to complete.

$GetNetIPAddressSplat = @{
InterfaceAlias = $InterfaceAlias
AddressFamily = $AddressFamily
ErrorAction = 'Stop'
}
$currentIPs = @(Get-NetIPAddress @GetNetIPAddressSplat)

PowerShell DSC resource MSFT_xIPAddress failed to execute Set-TargetResource functionality with error message: The
running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: No
matching MSFT_NetIPAddress objects found by CIM query for instances of the ROOT/StandardCimv2/MSFT_NetIPAddress class
on the CIM server: SELECT * FROM MSFT_NetIPAddress WHERE ((InterfaceAlias LIKE 'Ethernet 2')) AND ((AddressFamily =
23)). Verify query parameters and retry.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
+ PSComputerName : localhost

Windows 2012 R2
xnetworking 5.2.0.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.