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

netbios: disabled adapters #434

Closed
NEllis280 opened this issue Dec 13, 2019 · 4 comments · Fixed by #479
Closed

netbios: disabled adapters #434

NEllis280 opened this issue Dec 13, 2019 · 4 comments · Fixed by #479
Labels
help wanted The issue is up for grabs for anyone in the community. needs investigation The issue needs to be investigated by the maintainers or/and the community.

Comments

@NEllis280
Copy link

Details of the scenario you tried and the problem that is occurring

Disabling netbios generates an error if the adapter is disabled. Test-DSCConfiguration determines the status appropriately, but Start-DSCConfiguration errors out when the adapter is disabled.

Verbose logs showing the problem

From output when running start-dscConfiguration
PowerShell DSC resource MSFT_NetBios failed to execute Set-TargetResource functionality with error message: System.InvalidOperationException: An error result
of '84' was returned when attemting to set NetBIOS configuration to 'Disable'.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
+ PSComputerName : localhost

From Event Log:
Log Name: Microsoft-Windows-DSC/Operational
Source: Microsoft-Windows-DSC
Date: 12/13/2019 12:13:57 PM
Event ID: 4250
Task Category: None
Level: Error
Keywords:
User: SYSTEM
Computer: Obfuscated.contoso.com
Description:
Job {16931954-1DE5-11EA-80D1-00155D741A0B} :
Message System.InvalidOperationException: An error result of '84' was returned when attemting to set NetBIOS configuration to 'Disable'.
HResult -2146233087
StackTrack at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
at Microsoft.PowerShell.DesiredStateConfiguration.Internal.ResourceProviderAdapter.ExecuteCommand(PowerShell powerShell, ResourceModuleInfo resInfo, String operationCmd, List1 acceptedProperties, CimInstance nonResourcePropeties, CimInstance resourceConfiguration, LCMDebugMode debugMode, PSInvocationSettings pSInvocationSettings, UInt32& resultStatusHandle, Collection1& result, ErrorRecord& errorRecord, PSModuleInfo localRunSpaceModuleInfo)

The DSC configuration that is used to reproduce the issue (as detailed as possible)

Configuration Test
{
    [CmdletBinding()]
    Import-DSCResource -ModuleName NetworkingDsc -ModuleVersion 7.4.0.0

    NetBios Test
    {
        InterfaceAlias = 'SampleAlias'
        Setting        = 'Disable'
    }
}

The operating system the target node is running

Server 2012 R2 Datacenter 64-bit
WindowsBuildLabEx: 9600.19538.amd64fre.winblue_ltsb_escrow.191014-1700
OsLanguage: en-US
OsMuiLanguages: {en-US}

Version and build of PowerShell the target node is running

Powershell 5.1

Version of the DSC module that was used ('dev' if using current dev branch)

ModuleVersion 7.4.0.0

@NEllis280
Copy link
Author

We did some more testing and it appears that the issue stems from the adapter not having an IP, rather than a simple enabled/disabled state.

@PlagueHO PlagueHO added help wanted The issue is up for grabs for anyone in the community. needs investigation The issue needs to be investigated by the maintainers or/and the community. labels Jan 19, 2020
@PlagueHO
Copy link
Member

Hi @NEllis280 - sorry about the delay in looking into this. Do you mean that if the adapter does not have an IP address assigned then disabling the NetBios fails with the error shown?

@NEllis280
Copy link
Author

That's correct.

@SDedik
Copy link

SDedik commented Dec 18, 2020

Just stumbled upon this issue in my environment. It pleases me that PR for this has already been submitted and the process is active. Looking forward to see a new version of the module!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted The issue is up for grabs for anyone in the community. needs investigation The issue needs to be investigated by the maintainers or/and the community.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants