If in my system thr is more than one Local Area Connection like Local Area Connection2, Local Area Connection3, etc like that i need to change only any one that name. How it can be done using vbscript???
For single connection i hav done it.
Const NETWORK_CONNECTIONS = &H31&
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(NETWORK_CONNECTIONS)
Set colItems = objFolder.Items
For Each objItem in colItems
If objItem.Name = "Local Area Connection" Then
objItem.Name = "Office Connection"
End If
Next
how to do if thr is more than one?? I need not to change all the name only the perticular connection alone.