'C# call to WNetEnumResource stopped working in Windows 10.0.10586 and newer

C# call to WNetEnumResource stopped working in Windows 10.0.10586 and newer. I see that this is due to SMB V1 is disabled. This causes computer broswer service to not run.

And we dont want to enable SMB v1 any more for many reasons.

How to come out of this problem?

we need an alternative if WNetEnumResource no more working as we need to gather all the domains and Shares and printer information.

What is the alternative to computer browser service

Your inputs are highly appreciated



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source