Questions tagged [net-use]

Net-use connects or disconnects a computer or a shared drive and controls net connections.

Net-use connects or disconnects a computer or a shared drive and controls net connections.

121 questions
0
votes
1 answer

Windows batch file to connect to share and execute app

I have a batch file running on Windows 7 x86. I am trying to script a connection to a share and then once that is done to execute an app. net use \\appserver001\mycompany.ptshare\OPS /user:geek xyz!@# /persistent:yes echo %errorlevel% if errorlevel…
sinDizzy
  • 1,300
  • 7
  • 28
  • 60
0
votes
1 answer

Net use: File copy works with drive letter, fails with UNC path

I am trying to copy a file to a network location with a batch file: net use F: \\my\destination\folder /user:myuser password copy C:\Users\myUser\Desktop\toCopy.txt F: Works like a charm. However, when I leave out the drive letter, I get an "Access…
Tim
  • 3,910
  • 8
  • 45
  • 80
0
votes
1 answer

Calling net use works manually but not in Batch file

Calling net use F: \\my\destination\folder /user:myuser password works fine. When in a Batch file, it says "System error 86" ( = wrong password) How can this be ? Is the batch file somehow encoded differently ?
Tim
  • 3,910
  • 8
  • 45
  • 80
0
votes
2 answers

net use delete in batch if drive exists

i would like setup script which can connect network drive like this: net use v: /delete || EXIT /B 1 net use v: "\\vmware-hostservername\share Folder" I need to cover two scenario. Run test after restarting of PC (no disc v: available) run test…
Tomas Kubes
  • 23,880
  • 18
  • 111
  • 148
0
votes
0 answers

Impossible to remove a persistent network drive mapping when logged on disconnected

Initial situation in Windows 7 (apparently the same in 8.1 and 10): Create a persistent (!) network drive mapping (a.k.a. "Reconnect at logon"). Now physically disconnect from the network folder (unplug the cable or shut down the target system) Log…
CodeX
  • 717
  • 7
  • 23
0
votes
1 answer

PowerShell Double Hop Issue

I’m trying to run a PowerShell script on SYSTEM1, which executes robocopy on SYSTEM2, copying files to SYSTEM3,4,5,etc. SYSTEM1 and SYSTEM2 are on the same domain, but SYSTEM2 is not behind a firewall (hence the need to run robocopy from SYSTEM2 and…
blashmet
  • 249
  • 1
  • 4
  • 15
0
votes
0 answers

Batch file: map a FTP server

I want to add a a network location / map a drive to my ftp server. I know how to do this manually but i would like to have it in a batch file. im guessing its along the lines of: "net use x: \[server IP]\ /username:[username] /Password:[password]…
Rardo
  • 24
  • 1
  • 7
0
votes
1 answer

Net Use command fails when running a batch file as an Administrator

I am trying to map a drive with an elevated batch file but any attempt to use the Net Use command fails. The error is always: "The system cannot find the drive specified." I am using the following code: Net Use w: "\Server\Folder" It works fine…
0
votes
0 answers

Win8.1 Net Use Succeeds, Mapped Drive Fails

A client has a nas box (nas01) and a batch script to connect three drives to it at startup. net use h: \\nas01\home\Foo /user:Foo bar net use m: \\nas01\music /user:Foo bar net use p: \\nas01\media /user:Foo bar From windows Explorer clicking…
Flugan
  • 33
  • 3
0
votes
1 answer

sharepoint mount as drive within service

in our Scenario we have a SharePoint-site that should be mounted as a drive on Windows Server 2012, so that an application (ABC) which runs as a windows-Service can access some files. The mapping to the drive is executed by this Service (ABC) by…
Peter
  • 60
  • 4
0
votes
0 answers

net use command not working in batch

I tried to connect to my nas via net use. net use \\192.168.0.xxx\Ben /user:DATASERVER\Ben Password But it didnt do the command, and in cmd it works fine. What I do wrong?
Ben
  • 1
0
votes
1 answer

passing password using process builder not working for "net use" command

I am trying to run the "net use" command by invoking it using process builder. As I pass the password to the OutputStream using PrintWriter it fails with the following error : System error 1219 has occurred. Multiple connections to a server or…
Anuj
  • 1
  • 3
0
votes
1 answer

PHP shell_exec Net Use Output

I have the following php command: $shellOutput = shell_exec('net use'); I receive the following output: Status Local Remote Network OK S: \\srv\dataS Microsoft Windows Network When I run net use in a cmd window I…
Anthony S
  • 65
  • 11
0
votes
1 answer

Batch file to overwrite file on multiple clients - trying to simplify

Trying to simply this .bat file I have. I have a .bat file on multiple clients that the users run from a shortcut that performs a certain task. On certain days I need to modify the .bat file on all of the remote clients. I would like to just modify…
Docjay
  • 123
  • 3
  • 14
0
votes
1 answer

'Remote' access via net-use on W7 Home Premium, password required?

I'm trying to use the net use command to connect to my other laptop, but I'm running into problems. The other computer is also used by other family members, and so it doesn't have a password on it. net use \\LAPTOP-NAME * /user:user It then asks…
user3280504
1 2 3
8 9