You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VERBOSE: [Server01]: LCM: [ End Resource ] [[NetAdapterName]NameToISCSI]
VERBOSE: [Server01]: LCM: [ Start Resource ] [[NetIPInterface]DisableDhcp]
VERBOSE: [Server01]: LCM: [ Start Test ] [[NetIPInterface]DisableDhcp]
VERBOSE: [Server01]: [[NetIPInterface]DisableDhcp] Test-TargetResource: Checking settings on net IP interface for alias 'iSCSI' and address family 'IPv4'.
VERBOSE: [Server01]: [[NetIPInterface]DisableDhcp] Get-NetworkIPInterface: Getting settings for net IP interface for alias 'iSCSI' and address family 'IPv4'.
VERBOSE: [Server01]: [[NetIPInterface]DisableDhcp] Test-TargetResource: The property 'AutomaticMetric' value 'Enabled' does not match the desired value 'Disabled'.
VERBOSE: [Server01]: LCM: [ End Test ] [[NetIPInterface]DisableDhcp] in 0.0160 seconds.
VERBOSE: [Server01]: LCM: [ Start Set ] [[NetIPInterface]DisableDhcp]
VERBOSE: [Server01]: [[NetIPInterface]DisableDhcp] Set-TargetResource: Applying settings to net IP interface for alias 'iSCSI' and address family 'IPv4'.
VERBOSE: [Server01]: [[NetIPInterface]DisableDhcp] Get-NetworkIPInterface: Getting settings for net IP interface for alias 'iSCSI' and address family 'IPv4'.
VERBOSE: [Server01]: [[NetIPInterface]DisableDhcp] Set-TargetResource: Setting Net IP interface for alias 'iSCSI' and address family 'IPv4' parameter 'AutomaticMetric' to 'Disabled'.
The parameter is incorrect.
+ CategoryInfo : InvalidArgument: (MSFT_NetIPInter...ystemName = ""):) [], CimException
+ FullyQualifiedErrorId : Windows System Error 87,Set-NetIPInterface
+ PSComputerName : localhost
VERBOSE: [Server01]: LCM: [ End Set ] [[NetIPInterface]DisableDhcp] in 0.5160 seconds.
The PowerShell DSC resource '[NetIPInterface]DisableDhcp' with SourceInfo 'C:\GitHub\WorkScripts\DSCiSCSIConfiguration.ps1::21::9::NetIPInterface' threw one or more non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel called
Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
VERBOSE: [Server01]: LCM: [ Start Resource ] [[IPAddress]NewIPv4Address]
Suggested solution to the issue
As you are ussing command Set-NetIPInterface when setting -AutomaticMetric to Disabled, there needs to be also specified parameter -InterfaceMetric.
I would like to have option in NetIPInterface to set InterfaceMetric directly. I will change this resource to set metric to 254 value when disabling auto metric, but its just my workaround.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
Version of the DSC module that was used ('dev' if using current dev branch)
Name : NetworkingDsc
Path : C:\Program Files\WindowsPowerShell\Modules\NetworkingDsc\7.1.0.0\NetworkingDsc.psd1
Description : Module with DSC Resources for Networking area
ModuleType : Manifest
Version : 7.1.0.0
The text was updated successfully, but these errors were encountered:
Details of the scenario you tried and the problem that is occurring
I needed to set metric of interface (not route) to highest value possible. So i needed to something like but in DSC.
Verbose logs showing the problem
Suggested solution to the issue
As you are ussing command Set-NetIPInterface when setting -AutomaticMetric to Disabled, there needs to be also specified parameter -InterfaceMetric.
I would like to have option in NetIPInterface to set InterfaceMetric directly. I will change this resource to set metric to 254 value when disabling auto metric, but its just my workaround.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
The text was updated successfully, but these errors were encountered: