dsccommunity / dsccommunity/NetworkingDsc
xIPAddress: get-netipaddress erroraction stop
@PlagueHO is already working on this.
Since Nov 15, 2017.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.