Questions tagged [drive-mapping]
40 questions
0
votes
1 answer
Apple Script Else/If
I'm currently trying to have drives be automatically mounted when I'm connected to my network. Only problem is that when I'm not connected to my network an error shows, while connected to the network no errors show. How would I disable this?
Here's…

Erich
- 3
- 4
0
votes
1 answer
Powershell - net use doesn't work with variables
I'm trying to get a script running that maps network drives at login. Generally, I use get-content with | convertfrom-stringdata to put my parameters (drive letter and path) in a hash.
My problem is the following:
net use /persistent:no $driveletter…

blaargh
- 33
- 1
- 10
0
votes
1 answer
Excel VBA - next aviable drive function
I have a sub that can map the shared c: drive of pc-s from an excel list, part of this script is a function that can return the next available drive. It works fine, but there are some small bugs that I would like to fix.
This function's job is to…

Divin3
- 538
- 5
- 12
- 27
0
votes
1 answer
Logon VBS to map drives via OU and group
I am trying to get the following logon script to work by calling sub routines that look up a user from the OU they are contained in. The drive mapping is then done within the sub routines based off of what group they are in. I want to avoid creating…

corp_IT_guy
- 1
- 1
0
votes
0 answers
ANT copy task slow when copying *FROM* a mapped drive
using the "modified" selector when copying
TO a mapped drive, to speed up the task. However, I have the reverse
situation - I'm building FROM a mapped drive, and copying the files to
a local directory if they've changed.
This operation is incredibly…

user3459266
- 1
- 3
0
votes
1 answer
net use with /savecred is not working in PowerShell remote
I am trying to permanently map a drive on XP computer (has instaled PS V2) over a PowerShell Remote session with a admin privileges.
I tried this advice: Net.exe use 'Error: A command was used with conflicting switches.' while using…

Dzidza
- 1
- 1
- 2
0
votes
1 answer
VBS- Login script to map drive with multiple NICs
I am trying to create a script to map drive at logon as per IP address or subnet. I was able to find one script which works well on single MIC, but thre are few machines who have 2 Nics, and it does not work with them.
Here is modified script.
set…

user2744072
- 1
- 3
0
votes
1 answer
Adding a mapped drive with WNetAddConnection2 is not accessible
I'm trying to map a drive using WNetAddCOnnection2 but there's something not quite right. The code that I am using from pinvoke.net and seems to work at first. If I am stepping through the code I get a 0 for a response and I am able to use…

palehorse
- 26,407
- 4
- 40
- 48
0
votes
1 answer
Why 'The local device name is already in use' in asp.net when mapping drive but OK with command line
In command line it works fine:
net USE T: \123.45.67.89\TEST mytestuser /user:MYTESTUSER
But using asp.net, with the following code, the Exception with the following error is always thrown: 'The local device name is already in use' when mapping…

beckyp
- 5
- 4
0
votes
1 answer
How to map local drive to a remote server using C#
I need to distribute a local msi installer to a number of remote servers.
I assume, that the way to do it is to map my local drive (on which the msi is located) to those remote servers and then copy this file from the mapped local drive onto a…

Eugene Goldberg
- 14,286
- 20
- 94
- 167