dave123456789
IS-IT--Management
I have implemented a drive mapping script as follows:
' Drive mappings for migrated NCR USers
If InStr(strGroup, lcase("cn=migrated_users_NCR")) Then
objNetwork.RemoveNetworkDrive "p:"
objNetwork.RemoveNetworkDrive "g:"
objNetwork.RemoveNetworkDrive "n:"
objNetwork.RemoveNetworkDrive "s:"
objNetwork.MapNetworkDrive "g:", "\\server\groups"
objNetwork.MapNetworkDrive "n:", "\\server\NCR\MailArchive\" & strUserName
objNetwork.MapNetworkDrive "s:", "\\server\NCR\Software-N-Templates"
objNetwork.MapNetworkDrive "p:", "\\server\NCR\Public"
End If
since applying this script at logon, i noticed that if a drive was mapped MANUALLY using the Reconnect at logon option prior to running the above script, the NEW drive mapping does not take effect, it seems that the Reconnect at logon option is overriding my script. The only solution at this time is to have my clients Disconnect manually, then log off/on again to receive the new mapping.
My question is : Is there a command that i can include in the above script that will force a disconnect?
Regards,
Dave
' Drive mappings for migrated NCR USers
If InStr(strGroup, lcase("cn=migrated_users_NCR")) Then
objNetwork.RemoveNetworkDrive "p:"
objNetwork.RemoveNetworkDrive "g:"
objNetwork.RemoveNetworkDrive "n:"
objNetwork.RemoveNetworkDrive "s:"
objNetwork.MapNetworkDrive "g:", "\\server\groups"
objNetwork.MapNetworkDrive "n:", "\\server\NCR\MailArchive\" & strUserName
objNetwork.MapNetworkDrive "s:", "\\server\NCR\Software-N-Templates"
objNetwork.MapNetworkDrive "p:", "\\server\NCR\Public"
End If
since applying this script at logon, i noticed that if a drive was mapped MANUALLY using the Reconnect at logon option prior to running the above script, the NEW drive mapping does not take effect, it seems that the Reconnect at logon option is overriding my script. The only solution at this time is to have my clients Disconnect manually, then log off/on again to receive the new mapping.
My question is : Is there a command that i can include in the above script that will force a disconnect?
Regards,
Dave