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
1
vote
1 answer

NET USE command doesn't authenticate when credentials are passed as parameters

I'm trying to connect to a remote WebDAV server by mapping it as a drive using NET USE command. NET USE * /user: Executing this command gives the following error: System error 1244 has occurred. The operation being…
Nikhil
  • 6,493
  • 10
  • 31
  • 68
1
vote
0 answers

Azure storage forgetting password after reboot

I'm connecting a Azure store to Windows 10 computer with the following commmands cmdkey /add:acc_name.file.core.windows.net /user:AZURE\acc_name /pass:acc_store_key net use z: \\acc_name.file.core.windows.net\resource /u:AZURE\acc_name…
Otto Sandström
  • 725
  • 5
  • 12
1
vote
2 answers

How is Net Use different from PUSHD and the Windows Explorer?

Intermittently I'm finding that net use doesn't feel like seeing the server in front of it. The following commmand works: pushd \\place\otherplace\1.2.0\ Windows explorer also consistently brings me where I want to go. For some reason, though, the…
SeanVDH
  • 866
  • 1
  • 10
  • 28
1
vote
2 answers

NET USE multiple servers copy files

I want to copy specific file from one machine to 5 other machines, so I have server list file contains the ip addresses of each machine like: 10.10.1.3 10.10.1.4 10.10.1.5 10.10.1.6 10.10.1.7 in my batch file: SET File=C:\Files\servers.txt SET…
user3132295
  • 288
  • 4
  • 23
1
vote
1 answer

Mapping Window Drives Python: How to handle when the Win cmd Line needs input

Good Afternoon, I used a version of this method to map a dozen drive letters: # Drive letter: M # Shared drive path: \\shared\folder # Username: user123 # Password: password import subprocess # Disconnect anything on M subprocess.call(r'net use *…
1
vote
0 answers

Batch file user account infos using findstr

I want to write a batch file that saves specific user account information's by using the windows command "net user account /domain". Problem is when I use the findstr the output is not written into the file: set userlist = user1 user2 user3 for %x…
Nero
  • 37
  • 1
  • 5
1
vote
3 answers

"net use" for Azure File Services fails depending on OS type

Anyone know why the below "net use" command gets varied results depending on the machine OS even though I am logged on as an admin in all cases? Fails or works based on the OS within PowerShell or Cmd whether the shell is run as Administrator or…
Dave
  • 1,822
  • 2
  • 27
  • 36
1
vote
1 answer

Using the "net use" command in a loop

I am writing a simple python script that connects to several remote Windows machines, read the content of a remote folder on these machine, and then zip and copy all files that have been modified after a given date. The problem is that after it…
user3722440
  • 243
  • 1
  • 6
  • 14
1
vote
1 answer

How do I enumerate web folders in C# that are not mapped to network drives (like "net use")

From the command line, one can call net use without any parameters and obtain a list of computer connections on the local computer. This provides a listing of mapped network drives, as well as network connections to local network shares and web…
Elan
  • 6,084
  • 12
  • 64
  • 84
1
vote
2 answers

Windows net use line break

i would like to fetch only the lines from windows net use cmd wich are relevant for me. if UNC path is to long net use does a line break my code: output = subprocess.Popen('net use', stdout=subprocess.PIPE).communicate() valid_lines = [ line.strip()…
manga
  • 105
  • 1
  • 8
1
vote
2 answers

Using 'net use' through PowerShell exhibits different behaviour when done through cmd on a Windows Server 2012 instance

I have a cloud service with the following line of code in startup.cmd: net use n: \\.file.core.windows.net\scorm /u: This successfully creates the mapped drive to point to the Azure File Services…
Jay
  • 3,012
  • 14
  • 48
  • 99
1
vote
2 answers

Mapping an Azure File Service CloudFileShare as a virtual directory on each instance of a cloud service

I have an azure cloud service which I am attempting to upgrade for high availability and I have subscribed to the Microsoft Azure File Service preview which has been enabled in the preview portal. I have created a new storage account and can see the…
Jay
  • 3,012
  • 14
  • 48
  • 99
1
vote
2 answers

Batch | Net use Password

Sorry for my bad English, but if you can help my it will be great. I have couple of file system over my network and every night I need to take one file from another file system to mine. for that to happen i'm using a Batch script how mapping me the…
1
vote
1 answer

clearcase: shared dynamic views in windows

Clearcase in unix allows 'export views', which non-clearcase users can mount via nfs. Can a similar feat be achieved with the windows version? I want to use windows filesharing on a dynamic view, so that the MVFS will be mounted on one system, and…
jarondl
  • 1,593
  • 4
  • 18
  • 27
1
vote
1 answer

Create a batch sript that uses findstr and variables to map drive

So I am trying to create batch script that does a findstr of two variables. I am reading from a specific file where I need the variables from. The variables I need are NetPath= NetPathmed= And my goal is to use the two variables to do a network…
1 2
3
8 9