-
Notifications
You must be signed in to change notification settings - Fork 90
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
xNetBIOS: InterfaceAlias not working properly #315
Comments
Hi @aalmeida89 - it looks like a change was made in the last release that broke this. I'll get this fixed ASAP. It should still work fine in 5.4.0.0. Thanks for raising this. |
Thanks a lot =). |
xNetBios: Fix issue with InterfaceAlias matching on Adapter description - Fixes #315
Fix available in 5.7.0.0 (not 5.6.0.0 as stated in the changelog !) |
@johlju - any thoughts on what we should do here? Fix the changelog? |
You could fix the change log in this repo, but don't think we can (read have time) to resolve the release notes in PowerShell Gallery. I have no permission there. |
Thanks @johlju - I think you're right and going back and changing past packages is a no-no in general. So I'll just submit a PR to correct the CHANGELOG.MD. |
Correction to CHANGELOG.MD - Fixes #315
I'm having a problem enabling netBIOS. My file is like it:
xNetBIOS EnableNetBIOS
{
InterfaceAlias = 'ethernet0'
Setting = 'Enable'
}
When I use InterfaceAlias as "Ethernet0" it returns the error: System.InvalidOperationException: Interface 'ethernet0' was not found.
To find InterfaceAlias, I am doing the PS query:
Get-NetIPAddress | where IPAddress -eq "..." | fl interfaceAlias
and it returns:
interfaceAlias : Ethernet0
I am using the correct name.
When I query "Get-NetAdapter | fl Name,InterfaceDescription" it returns:
Name : Ethernet0
InterfaceDescription : Intel(R) 82574L Gigabit Network Connection
Then Im trying
xNetBIOS EnableNetBIOS
{
InterfaceAlias = 'Intel(R) 82574L Gigabit Network Connection'
Setting = 'Enable'
}
and it changes well. I think InterfaceAlias is not suppose to be it. Going further in my investigation I opened the file "MSFT_xNetBIOS.psm1" and go to "function Test-TargetResource" (line 190) to find what it is doing. At line 208 have it:
$netAdapter = Get-CimInstance
-ClassName Win32_NetworkAdapter
-Filter ('Name="{0}"' -f $InterfaceAlias)
then I query "Get-CimInstance -ClassName Win32_NetworkAdapter | select name" and none of them is "Ethernet0", so looking for "ethernet0" I found it at NetConnectionID:
NetConnectionID : Ethernet0
query: Get-CimInstance -ClassName Win32_NetworkAdapter | select NetConnectionID
All my nodes are running Powershell 5.1 and i'm using xNetworking 5.5.0 (master branch I guess)
PS
Major Minor Build Revision
5 1 14393 693
xNetworking
Version Name
5.5.0.0 xNetworking
The text was updated successfully, but these errors were encountered: