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

How to improve read remote system files with high performance in python

I have written code for reading the remote system files that is working fine but it is taking much time to read remote files. I want to improve performance for reading. I have also used python Threading for reading the remote system files. that is…
Amit
  • 53
  • 1
  • 12
0
votes
1 answer

Batch to copy and replace a txt file from one server to another

I have two servers, server1 and server2 on same network but require username and password to be mapped. server1 has a text file as C:\Users\output.txt. I want to create and schedule a batch script on server1, which should copy and replace output.txt…
Sunny
  • 7,812
  • 10
  • 34
  • 48
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…
0
votes
1 answer

Unkown username or bad password error accessing shared drive from IIS

I am trying to read files from a shared drive. The share is password protected so I am first using a net use command to access the share and then reading the files. Here is the net use command I am using: net use "\server\share\folder name"…
ploni
  • 140
  • 2
  • 15
0
votes
1 answer

Mapping drive on a remote machine in powershell

I am working on a remote machine from my desktop and I have the following script : Invoke-Command -computername $name -authentification default -credential $creds1 -scriptblock {net use \share $password2 /user:otherdomain\otheruser} Then I…
mora
  • 23
  • 4
0
votes
2 answers

How do I disconnect form an existing connection to a network location in PowerShell?

I disconnect from ALL device in Powershell like this: Invoke-Expression -Command "net use * /delete /y" And I need to do it for particular devices instead of disconnecting from ALL. Question: How can I TEST if there is already a connection to a…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
0
votes
1 answer

Bat file - Net use from remote desktop not work well in some cases

I try to run .bat file from remote desktop. I do it by run the next command: net use m: \\the-ip-of-the-remote-computer mypassword /myuser // Execution works well then, I try to xcopy from the remote desktop to my computer. So I write this: net use…
Adam Sh
  • 8,137
  • 22
  • 60
  • 75
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…
0
votes
1 answer

Using xcopy to backup to networked hard drive?

I'm wanting to create a batch file that will back up my computer. This is what I have right now: @echo off :: variables net use U:\\...more stuff... set drive=U:\ set backupcmd=xcopy /s /c /d /e /i /r /y echo ### Backing up My…
Mlagma
  • 1,240
  • 2
  • 21
  • 49
0
votes
1 answer

how to silently unmap mapped network drives

I have a local running PHP script in which I do this exec('subst T: C:\\Development'); but in case T: is already mapped or subst' to some other location I want to unmap it first. so I do this exec('net use T: /DELETE /y'); exec('subst T: /D'); but…
mtijn
  • 3,610
  • 2
  • 33
  • 55
-1
votes
1 answer

Can't map a folder using "net use" command

I wanna map a folder that is shared on a local server. I can do it when I connect to the server like: \\192.168.xxx.xxx and just select the folder and map it. What I can't do is map the folder directly from powershell. I'm trying something like…
Oskar
  • 37
  • 1
  • 3
-1
votes
1 answer

How to access images or files from the network drive in PHP

I am trying to access image from network drive which is connected to my machine. But i am unable to access it using php. I mapped it using net use command still i am unable to accees it. Please help me out. if($fh=opendir('\\\\F:')) { while (false…
-1
votes
1 answer

How to mount an online git repo as permanent drive? (linux, ubunutu)

I want to do what I did on Windows with: net use N:"https://where.the.git.repo.is/" /P:Yes Does anyone know how? I am new to using linux, but I would like to access this repository as easily as on windows.
Henri
  • 205
  • 1
  • 9
-1
votes
1 answer

Java IO File not crreated without throwing exception

i have a problem with file cration in java. i found this question Java IO: file is not generated but that did not provide an answer. My tomcat webapp can create a file xml on remote folder(\myserver\myfolder) when is running on my dev enviroment.…
BohBah
  • 109
  • 1
  • 3
  • 11
-2
votes
1 answer

"net use" didn't work in Python 3 script

I want to access some files in my network drive. My network drive is called "networkfile". If I just run this on the Window command line, it is working: net use \networkfile\Programs. However, It didn't work when I put it in the Python script…
cs_wind
  • 25
  • 4
1 2 3
8
9