Questions tagged [net-use]
39 questions
2
votes
1 answer
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, script works fine and able to map a network drive.…

Pydev
- 43
- 1
- 3
2
votes
1 answer
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\Shared\DirB // target shared folder
Internally,…

w128
- 255
- 2
- 5
- 10
2
votes
2 answers
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 lpt ports. Our normal setup to allow network…

jdelliott
- 31
- 1
- 3
2
votes
4 answers
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 network shares, but I managed to connect to the…

Chielt
- 153
- 1
- 2
- 7
2
votes
1 answer
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 information because Guest Mode is enabled which will…

bschaffer13
- 23
- 2
2
votes
3 answers
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 connections to the drive, it will prompt:
There…

MattUebel
- 927
- 4
- 13
- 32
1
vote
0 answers
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 server admins are not desktop admins and visa…

user2752794
- 11
- 3
1
vote
5 answers
How to connect to a remote server using "net use" with different port other than 445
The code I am using
net use K: \\\C$\Share /user:\ ''
K: is the mounted drive
Share is the folder name in server that is shared with userName and password
There error I get is
System error 5 has…

Vikram Shetty
- 127
- 1
- 1
- 5
1
vote
7 answers
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 user account the net use command gives system…

rboorgapally
- 233
- 2
- 5
- 18
1
vote
0 answers
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. There is no trust established between the two…

gravyface
- 13,957
- 19
- 68
- 100
1
vote
1 answer
Windows "net use" command throwing error, "System error 1909 has occurred"
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 also.
C:\>net use z: \\uwhc-sas2\SASHIMC…

JustBeingHelpful
- 1,964
- 7
- 37
- 53
1
vote
0 answers
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 mapping, the script still does not show the drive…

PaulH
- 181
- 1
- 3
- 8
1
vote
1 answer
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 domain account
Trying to map the share in…

MartinSGill
- 204
- 1
- 3
- 6
1
vote
1 answer
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 network share fine, but then the next batch that…
user35952
0
votes
1 answer
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, it will ask for my credentials.
What I found is…

AZ.
- 101
- 3