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
2
votes
0 answers

Accessing a symlink via OpenSSH on Windows

I've installed OpenSSH server on Windows 10. I've set up authentication using the .ssh\authorized_keys file, which works well. I can now login from Linux/Windows/etc via ssh to Windows 10. The user I am logging in as has a symbolic link in their…
Giawa
  • 1,281
  • 1
  • 10
  • 21
2
votes
4 answers

Oracle 19c :: Failed to set ACL's for specified User

I'm trying to install a fresh new downloaded Oracle Database 19c on my Windows 10 Home and I receive the error: Failed to set ACL's for specified User. In the logs details I see mentioned updating registry key…
Francesco Mantovani
  • 10,216
  • 13
  • 73
  • 113
2
votes
1 answer

How to map network drive in SQL query without using XP_CMDSHELL

Looking to just map a network drive with a different AD account in a SQL query. XP_CMDSHELL is disabled in our environment. I could technically turn it on, then "net use" the drive, and turn it off again in a query, but was looking for a cleaner…
C-COOP
  • 123
  • 1
  • 3
  • 12
2
votes
0 answers

PHP - Correct path but broken image on mapped drive

I have this PHP code to access mapped drive Z: $mapped = "\\\\192.168.0.xxx\\Shared"; system('net use Z: "$mapped" @Password /user:Username /persistent:no'); Then I check if the photo exists on the mapped drive: $pic_path =…
Jorz
  • 358
  • 5
  • 22
2
votes
1 answer

PowerShell - net use doesn't work - issue with variables

I want to map a network resource remotely via net use. This is my PowerShell code: $user = Read-Host -Prompt "Enter Username" $pw = Read-Host -Prompt "Enter Password" -AsSecureString net use X: \\Server\dir1\dir2 /persistent:no /user:$user $pw It…
Aerondight
  • 127
  • 1
  • 1
  • 8
2
votes
1 answer

Return users mapped drive letter from network drive remote

I'm trying to find a way to retrieve the users mapped drive letter from a network drive. I've read a few posts here but they all seem to be around mapping/unmapping drives, whereas I simply need to know what drive the user has that network drive…
BuZZarD73
  • 23
  • 1
  • 3
2
votes
1 answer

Windows access denied error message on using net use

I am having following issue when I try to use net use using a batch file which is configured in Hudson. I added test user as administrator in remote Windows Server 2012 and also set the password. My batch script: net use p: /delete net use p:…
testprabhu
  • 63
  • 1
  • 8
2
votes
4 answers

'NET USE' works in CMD but not in batch

This command will work in CMD if I copy and paste it from my batch file to CMD. When I run my batch file, it tells me access is denied (System Error 5). Any idea what I need to do to fix this? NET USE * "\\server\folder\" "password"…
Hartley
  • 69
  • 1
  • 3
  • 13
2
votes
3 answers

Net use Command : Windows CE

I'm trying to send network credentials using Net Use command. This is what I have: @echo off net use \\\\ passw0rd /USER:domain.com\UserName PAUSE This automatically inserts the username and Domain but for some reason not…
Werner van den Heever
  • 745
  • 6
  • 17
  • 40
2
votes
0 answers

NET USE Error 1219 even though there are no existing connections

I'm trying to map a network drive of an SBS 2011 server. Even though there are no existing connections (net use returns an empty list, process explorer doesn't find any handles for connections to the server) I get 1219 error message. In order to map…
thisaintme
  • 53
  • 1
  • 7
2
votes
1 answer

How to execute "net use" command from Inno Setup installer on Windows 7?

I'm working on an Inno Setup installer, which calls net use to connect to a shared server. The installer can connect to the server, if it's running on Windows XP, but not on Windows 7. I think it's related to UAC as I type the same command, the…
xiaoheixiaojie
  • 145
  • 1
  • 2
  • 8
2
votes
1 answer

Enumerate through network connected paths in C#

I have several paths that I'm connected to through net use, but they are not listed on my system as a network drive since I'm connected to the using the following net use command: net use \\{server}\{environment} that is, I'm not listing them as an…
ocp1000
  • 571
  • 1
  • 5
  • 12
1
vote
1 answer

Equivalent of net use \\server_name\share_name /delete in PowerShell?

does anybody know the equivalent in PowerShell of the following windows command: net use \\server_name\share_name /delete I'd like to disconnect from the shares from powershell, included the ones that are not mapped as shared drives.
mic.sca
  • 1,688
  • 2
  • 18
  • 34
1
vote
1 answer

"NetUseAdd" in C# software works on one pc, but not another (Error 1232)

We have a software that connects to a cloud-drive. This software was already running for 2 years without problems on 2 different servers. On both server is running the exact same version of the software and both connect to the same drive with the…
SinseiJ
  • 25
  • 4
1
vote
1 answer

alternative for net use in Linux

I am currently working on file transferring system from one server to another one in Linux. I'm still a novice coder and new with Linux. I found that in Window we can actually use net use to connect a server to another server something like: net use…
1
2
3
8 9