I am using a powershell script to create an automation for node creation. I have found that when the discovery credential is WMI none of the interfaces are added, which is fine. However; when the discovery credential is SNMP all of the interfaces are added so I added the following code to remove the interfaces from autoimporting but it is not working all of the interfaces are still being added for SNMP discovered devices.
#$CorePluginConfiguration = $CorePluginTemp.DocumentElement
$InterfacesPluginConfigurationContext = ([xml]"
<InterfacesDiscoveryPluginContext xmlns='http://schemas.solarwinds.com/2008/Interfaces' xmlns:a='http://schemas.microsoft.com/2003/10/Serialization/Arrays'>
<AutoImportStatus>
</AutoImportStatus>
<AutoImportVirtualTypes>
</AutoImportVirtualTypes>
<AutoImportVlanPortTypes>
</AutoImportVlanPortTypes>
<UseDefaults>false</UseDefaults>
</InterfacesDiscoveryPluginContext>
").DocumentElement
$InterfacesPluginConfiguration = Invoke-SwisVerb $swis Orion.NPM.Interfaces CreateInterfacesPluginConfiguration @($InterfacesPluginConfigurationContext)
$StartDiscoveryContext = ([xml]"