netbios

How to avoid 12 seconds delay when disonnecting from share in Windows 7?

两盒软妹~` 提交于 2020-01-14 09:11:15
问题 I'm making some utils that uses NetUseAdd and NetUseDel functions to connect/disconnect to share. In Windows 7 I noticed that between calling NetUseDel and real disconnnection passes nearly 12 seconds. I made some investigations and found that net use \server /del also disonnects only after 12 seconds. Here's little script and Wireshark output, corresponding to run of script: net use \\server "" /user:"" net use \\server /delete http://i.stack.imgur.com/5CyCw.png Setting last tree connect smb

Netbios support in .NET?

不打扰是莪最后的温柔 提交于 2020-01-06 05:49:10
问题 Does MS support Netbios in .NET or not? How can I use it? 回答1: Afaik only thru PInvoke snippet here: http://www.pinvoke.net/default.aspx/kernel32/NetBIOS.html 回答2: Sometime back I had added to pinvoke.net Win 7 VB structure needed. I've now put my entire VB 2010 NetBIOS library for Win7 at http://www.coderbliss.com/2014/10/24/windows-7-netbios-library-in-visual-basic/ 来源: https://stackoverflow.com/questions/6248606/netbios-support-in-net

Communication with the underlying transaction manager has failed.MSDTC

百般思念 提交于 2019-12-19 12:04:14
问题 I ve two systems one is windows 7 Enterprise in which my application is installed and I've Windows server 2008 R Sp1 machine where database is intsllaed. Getting below error when accessing database ommunication with the underlying transaction manager has failed. The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the

Communication with the underlying transaction manager has failed.MSDTC

僤鯓⒐⒋嵵緔 提交于 2019-12-19 12:03:03
问题 I ve two systems one is windows 7 Enterprise in which my application is installed and I've Windows server 2008 R Sp1 machine where database is intsllaed. Getting below error when accessing database ommunication with the underlying transaction manager has failed. The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the

encode Netbios name python

情到浓时终转凉″ 提交于 2019-12-14 03:44:15
问题 I would like to encode "ITSATEST" to it's netbios name value in python; The occurence table and explication are here: http://support.microsoft.com/kb/194203 I dont know how this could be done easily in python, someone can give me a hand ? Thanks ! 回答1: You can map each nibble of the original string, taking its numerical value and offsetting from 'A': encoded_name = ''.join([chr((ord(c)>>4) + ord('A')) + chr((ord(c)&0xF) + ord('A')) for c in original_name]) 回答2: Take a look at RFC 1001, which

encode Netbios name python

試著忘記壹切 提交于 2019-12-06 15:41:24
I would like to encode "ITSATEST" to it's netbios name value in python; The occurence table and explication are here: http://support.microsoft.com/kb/194203 I dont know how this could be done easily in python, someone can give me a hand ? Thanks ! You can map each nibble of the original string, taking its numerical value and offsetting from 'A': encoded_name = ''.join([chr((ord(c)>>4) + ord('A')) + chr((ord(c)&0xF) + ord('A')) for c in original_name]) Take a look at RFC 1001 , which defines the encoding. In section 14.1 "FIRST LEVEL ENCODING" is the algorithm for the encoding, which you could

Translating NETBIOS domain into a FQDN (Fully Qualified Domain Name)

与世无争的帅哥 提交于 2019-12-06 04:04:22
问题 In short - How do I translate a NETBIOS domain to a FQDN ? Details: Assuming I'm in domain A and I have user credentials for domain B which has a trust relationship with domain A (I can authenticate the credentials). How do I get domain B's FQDN when all I have are the credentials of some authenticated user from that domain, including the netbios domain name? I'm coding in C# but a COM/WMI/Win32 solution would be welcomed as well. 回答1: This probably isn't optimal, but it look like you could

Ip address to NetBIOS/FQDN name in Java/Android

自闭症网瘾萝莉.ら 提交于 2019-12-03 15:17:58
问题 given the ip address of a computer on the same network of my Android device, i have to find its NetBIOS/FQDN name ... is there any "clean" solution to accomplish this with the Android SDK and generally speaking in java ? Obviously InetAddress.get*HostName does not return the NetBIOS name :) 回答1: You can use JCIFS open source library. InetAddress addr = NbtAddress.getByName( "hostname" ).getInetAddress(); works both ways, ip address to hostname and vice versa. 回答2: Actually, the code provided

Ip address to NetBIOS/FQDN name in Java/Android

可紊 提交于 2019-12-03 05:10:53
given the ip address of a computer on the same network of my Android device, i have to find its NetBIOS/FQDN name ... is there any "clean" solution to accomplish this with the Android SDK and generally speaking in java ? Obviously InetAddress.get*HostName does not return the NetBIOS name :) Tom You can use JCIFS open source library. InetAddress addr = NbtAddress.getByName( "hostname" ).getInetAddress(); works both ways, ip address to hostname and vice versa. Actually, the code provided by Tom does not work, this code works for me (with JCIFS lib.) NbtAddress[] nbts = NbtAddress.getAllByAddress

How do I get the NetBIOS name of a machine from IP in C#?

孤街醉人 提交于 2019-11-30 12:50:33
Given the IP address of a machine how do I get its NetBIOS name programmatically in C#? I know I can get it from the command line through "nbtstat -A ', but I'm looking for a better solution. Carlos Gutiérrez Check Using the Socket class to request the NetBios name of a device over UDP (scroll down). EDIT Community has edited the URL due to 404 on original page, and changed link to pull from web.archive.org You could use winapi gethostbyaddr with type AF_NETBIOS . 来源: https://stackoverflow.com/questions/2174834/how-do-i-get-the-netbios-name-of-a-machine-from-ip-in-c