Great to know. Disconnect Mappings. Back to Networks Forum. Start or search. Start New Discussion. Create a new discussion If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Track this discussion and email me when there are updates.
Reset Post Submit Post. RemoveNetworkDrive "V:" objNetwork. RemoveNetworkDrive "O:". MapNetworkDrive "X:","home" objNetwork. I think the problem might be when script tries to map a share too quickly after deletion. Try to add some pause between deleting and mapping, like few seconds, to make sure all network connections were closed. Now most point to a DFS share but some of the old mappings were not going away.
Question, how to you add a pause that does not require user inputs? What happens if you just use the Net Use command to delete the drives? Either stick it in a batch file and call the batch file from your vbscript or just call Net.
Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings. The real problem with this approach is that many system users that either do transactions on mapped network drive while logged on or trigger any activity on mapped network drives and subsequently log off are unable to see the mapped network drives.
We need to know what is the best way to permanently map network drives without having a dependency for an interactive user to login. Also, if it has to be another script of windows service, how do we pass and encrypt passwords to make it secure. You can try to map the drive when the computer startup. Create a Scheduled Task to run a map. Office Office Exchange Server. Not an IT pro?
0コメント