I have used this script by Anders Olsson to Chang Network Provider order in Windows.. It works very well.
I would like to modify it to where "LanmanWorkstation" will be first and "NCredMgr" to be last. The once in between does not matter the order.
eg. "LanmanWorkstation, NetwareWorkstation, RDPNP, WebClient, NCredMgr"
Andres Olsson Script: (I am attaching it as well)
' ChangeProviderOrder.vbs, by Anders Olsson, Kentor Teknik AB, 2006-10-31
' Reads the "Network provider order" from the registry and reorders it putting
' the "Microsoft Windows Networking" provider on top.
' Example: Before - "NCredMgr,NetwareWorkstati
' would become "LanmanWorkstation,NCredMg
' running this script.
Set WshShell = WScript.CreateObject("WScr
' Read the reg value of the providers
strKey = WshShell.RegRead("HKLM\SYS
' Split the strings up using comma (ASCII #44) as the delimiter
arrProvs = Split(strKey, chr(44), -1, 1)
' If LanmanWorkstation is already first, we don't have to do anything
If arrProvs(0) = "LanmanWorkstation" Then
' "LanmanWorkstation" should always start the string
strNewProvs = "LanmanWorkstation"
' Loop through the old provider strings, and add them to the new string. Don't
' write LanmanWorkstation, since it's already written at the start of the string.
For Each strProv In arrProvs
Select Case strProv
Case Else strNewProvs = strNewProvs & "," & strProv
' Write the new string back to the registry