Questions tagged [net-use]
The net-use tag has no usage guidance.
39
questions
3
votes
1
answer
4k
views
Getting error 1219 while there are no other sessions
PC's in our organisation run Windows 10 Pro and are sometimes shared between users (local accounts, no domain and AD).
I have written a batch script that users execute when mounting our network ...
5
votes
3
answers
16k
views
Is it possible to use IPv6 to connect to a remote share using 'net use'?
One can use either UNC or IPv4 address to connect to a shared folder on a remote machine using net use, e.g.:
net use \\remotePC\SharedFolder // valid
net use \\111.122.1.1\SharedFolder // valid
...
4
votes
1
answer
2k
views
net use fails with system error 67 with FQDN
I search for help with a confusing error with Windows 7 mounting a
network fileshare.
The problem is that on machine A a mount with the FQDN fails (net use
system error 67) while the same command ...
0
votes
2
answers
3k
views
Powershell / Command prompt cannot switch to mapped drive when running as another use
in my powershell prompt, logged into a Windows 10 PC as Domain\UserA i can run the net use command to see my shared drives
net use
lists
+--------+-------+----------------+---------------------------+
...
2
votes
2
answers
8k
views
net use - error code 1219
I am trying to understand what causes the error code 1219 (multiple connections to server by same user).
The background of my question, we are currently installing a machine at a customer, where our ...
0
votes
1
answer
410
views
No internet IP routing on Windows 10 client connected to LT2P/IPsec VPN on Windows 2019 server
I have set up a VPN from a Windows 10 client to a Windows 2019 server. After connecting using rasdial <VPN NAME> <USER NAME> <PASSWORD> I sucessfully issue a net use <DriveLetter&...
2
votes
4
answers
14k
views
Connecting to network printer(s) using net use
I was asked to add pinters to all users on a terminal server. There is a VPN connection between the terminal server and the network where the printer is installed.
I do not have much experience with ...
72
votes
11
answers
370k
views
How do I remove login credentials for a network location in Win7?
I just tried to access a folder like so:
\\somecomputeronmynetwork\somelocation$
When going to this location I'm prompted for a user name and password.
I put one in, and it let me in fine.
Now I ...
1
vote
5
answers
33k
views
How to connect to a remote server using "net use" with different port other than 445
The code I am using
net use K: \\<ServerName>\C$\Share /user:<domain>\<userName> '<password>'
K: is the mounted drive
Share is the folder name in server that is shared ...
7
votes
1
answer
11k
views
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 * <domain> /user:<username> <password>
Executing this command gives the ...
7
votes
3
answers
14k
views
Windows 10 PE Unable to map network drive anonymously
I'm trying to set up a imaging environment. The idea is to use DISM to apply WIM images (Windows 10 Pro) over the network.
I am able to boot into Windows 10 PE. I have network connectivity via DHCP. ...
8
votes
1
answer
17k
views
"Multiple connections to a server or shared resource by the same user" when there are no connections
Related to: The Network folder specified is currently mapped using a different user name and password
However, I am not currently connected to the network location already.
I if type net use I get ...
1
vote
0
answers
324
views
How to use commandline tools (psexec, netuse) that require credentials without exposing them plain text in the logs?
First of all, here are my limitations:
I'm running PSExec and Netuse from a batch file.
I need to run as a different user than the currently logged in one. We have a strict permission scheme where ...
6
votes
1
answer
19k
views
Correct way to access a network share in a Windows service
I have a Windows service which requires on-demand access to a remote CIFS share. Whenever it needs to access the share, it first tries to 'mount' it with provided credentials,
NET USE \\host\share ...
8
votes
7
answers
40k
views
Windows 7, HTTPS WebDav: Asks for password twice and fails. Any workarounds?
I have a Dav server running with PHP SabreDav (code.google.com/p/sabredav/wiki/Windows) on Cherokee at an HTTPS secured URL. It's set to use https, and uses Digest Authentication. I can log in with ...
0
votes
1
answer
227
views
SSIS 2014 - map NFS
We are migrating SSIS from SQL 2008 to SQL2014.
Old OS: WINDOWS 2008 R2 SP1
New OS: WINDOWS 2012 R2
I use the Execute Process Task to map an NFS share to a drive.
Executable: C:\Windows\System32\...
1
vote
7
answers
42k
views
net use command - system error 5 while mapping a network drive
I got a system error 5 while mapping a network drive of a server to my local machine using the net use command.
This error doesn't occur when I use Administrator account of the server. When I use my ...
2
votes
1
answer
1k
views
How to execute a powershell script from a remote application as a specific user
I have an application which can execute a powershell script on remote windows machine. I am trying to map a network drive using a powershell script. When the same script executed at the endpoint, ...
2
votes
3
answers
9k
views
How to work with batch script dialog?
I am working on a batch script to remap a network drive in windows xp. I have found it to work out well for the most part with:
net use G: /delete
net use G: \\file\share
However, if there are any ...
1
vote
0
answers
604
views
Specify DNS/Domain Controller when authenticating against a different domain
Client has two domains residing on the same subnet/physical network. Essentially there's just a POP3 mail server (OLDSERVER) and one of the old DCs (OLDDC) on life support to keep OLDSERVER happy. ...
0
votes
1
answer
752
views
List mapped zombie drives in powershell
I'm writing a little powershell script for some basic logs that have to be generated. Right now I'm stuck with logging mapped network drives:
$colDrives = Get-WmiObject Win32_MappedLogicalDisk -...
-2
votes
1
answer
214
views
Mapping a drive from Windows on a remote Mac via SMB [closed]
I have a Mac Mini in one of our offices that is used as a file server locally. I would like for it to serve the files to remote clients as well.
I have File Sharing enabled and Windows Sharing on in ...
3
votes
1
answer
4k
views
NET USE - How to get list of all shares (elevated, non-elevated)
The command:
NET USE
Will display open connections by any process of current user. But, if command prompt (cmd.exe, or any shell) is non-elevated, it would display only connections opened by non-...
3
votes
3
answers
6k
views
Is there an alternative to xp_cmdshell and net use for backing up MSSQL to UNC as a different user
Is there an alternative to xp_cmdshell and net use for backing up MSSQL to a UNC with a different user?
I'm now using
EXEC xp_cmdshell 'net use \\SERVER\SHARE Password /USER:DOMAIN\USER /...
0
votes
1
answer
3k
views
Windows Server 2008 R2 - Net use error 1326
am experiencing a problem with my system. Here's what happens.
I have two servers running Windows Server 2008 R2 that act as primary and secondary domain controllers. I have a NAS which is part of ...
2
votes
1
answer
5k
views
Is it possible to have simultaneous 'net use' connections established to two shared folders on the same remote machine (avoiding error 1219)?
I'm working on a code that could copy files between two arbitrary network file shares, i.e.:
copy files from \\pc1.domain.net\Shared\DirA // source shared folder
to \\pc2.domain.net\...
2
votes
2
answers
4k
views
Permissions issue directing domain networked printer to LPT1
We have an old FoxPro 2.6 application, that cannot print to a networked printer. Knows nothing about domains, etc, and uses it's own built-in drivers instead of Windows drivers, and can only print to ...
7
votes
2
answers
26k
views
Use NET USE to mount a network drive as read only
I'm using the following code to mount a network drive in a script that configures desktop icons and favorites by copying them when the user logs into windows.
NET USE W: \\Server\Files\IT\auto /user:"...
0
votes
0
answers
696
views
SMB share client side connection (Win7 with net use) is very slow
I have a SMB share on a CentOS server. Windows 7 based clients connect to the server via OpenVPN. Then net use is used to init the share.
On some clients (not all) I am experiencing very long ...
1
vote
1
answer
40k
views
Windows "net use" command throwing error, "System error 1909 has occurred" [duplicate]
What is the likely cause of this, if the command is run on Windows Server 2008? It appears that this account is an administrator on this box. I'm running the Windows command line as an administrator ...
1
vote
0
answers
3k
views
wmic shows network drives as used that have been unmapped
I have a script running on Windows 7 Professional SP1 x64 that maps the first available network drive to a network resource, uses it, and then deletes the mapping.
Unfortunately, after deleting the ...
1
vote
1
answer
4k
views
Confused about net use local admin behavior for remote administrative shares
I have a windows 2008 R2 server I'm trying to access remotely, specifically I'm trying to use the c$ admin share.
The server is on a domain
My user is in the server's local admin group
My user is a ...
4
votes
1
answer
326
views
Stale directory contents and "net use"
I have two Windows Server 2008 SP2 machines. Occasionally I see that when I open a file share with net use, the contents are stale. The scenario is:
net use Z: \\192.168.0.100\c$
Add a file to a ...
0
votes
1
answer
16k
views
Terminal Server: how to map network drive for all users?
I'm using Windows Server 2008 as a Terminal Server. How can I map a network drive for all users? Should I use a logon script and net use command? Where should I put it?
0
votes
3
answers
5k
views
map a drive through NET USE command [duplicate]
Possible Duplicate:
Useful Command-line Commands on Windows
we need to mape a network folder on 2008server and client is XP; we want to use the command line on windows XP
2
votes
1
answer
794
views
How to check which user a share was mapped as
I am using net use to map shares on a windows machine to Red Hat Linux using Likewise CIFS. I was wondering if there is a way to check which user a particular share was mapped as. I desire this ...
3
votes
3
answers
7k
views
Windows 7 logon script net use fails
Our network PCs currently consists of Windows XP Professional on a mixed 2008/2003 domain, with exception to one machine, which is a new Windows 7 PC we have bought for testing before we deploy the ...
0
votes
1
answer
2k
views
Remote location's status "Disconnected", how to keep it connected (OK)? [net-use-command]
I have an script that keeps running, under some scenarios, it needs to contact a server (\\us-sign). From time to time, if this server remains uncontacted for a while, the next time my script needs it,...
1
vote
1
answer
3k
views
net use can't connect to share again when nobody is logged in
I have several batch programs that run from the windows scheduler. When there is no user logged into the server after a restart (at the login screen,) the first batch program to run connects to the ...