Hot answers tagged

6

To remove a connection to a PC where it was made to access a folder and the User was cached (ie remains active) must be rigorously used the following procedure (step-by-step): access the folder with User / Password 2 Close all windows explorer of the machine 3 Open the command prompt 4 Execute the command Net use * /del *** Should be done in ...


5

Two things: the password should precede the username, and the username should include the users domain name. NET USE * <link> <password> /USER:<userdomain>\<user>


4

I use bogus credentials to really disable access. net use * /d /y net use "\\10.0.0.5\c$" "badpassword" /user:"baduser" net use * /d /y that seems to overwrite the old credentials and forces explorer to attempt to use the new bad credentials.


3

You should be running the service as a specific user account, and that user account should have permissions to access the share. Putting a username and password in like that is a pretty awful way of working. Not only for security, but also for portability and management.


3

It turns out windows had cached credentials for this location. Go to Control Panel > Credentials Manager Under Windows Credentials Remove the account that has cached credentials to the network share. Try and remap drive now. Failing that you can try: net stop workstation /y net start workstation


3

The error 1219 says that you cannot open multiple sessions to a server, not connections. The number of connections is nearly unlimited by default (65532) A session is a successfully authenticated combination of username/password from user(session) to a server, independently from the host (or the ressource you want to use, eg. network mapping, rpc, printer ...


3

I ran into the same problem and got it resolved. To put simply, there are several common causes of the issue. dav response namespace issue connection issue I explained this problem in details on my blog : Why Digest Authentication Fails in Windows 7 Mini-redirector JUN 2ND, 2014 Here is the problem: you have a WebDAV server, it works with ...


3

There isn't built-in functionality to do what you're looking for. The elevated context's "mappings" are separate from the limited-user context, as you're seeing. You could write a script to perform the NET USE as both the limited and elevated contexts and concatenate the results, but there's no single API or command-line tool that I'm aware of that does what ...


3

Let's step through this bit by bit: The account was likely locked in AD the first time. Most lockout policies only lock an account for 15-30 minutes to stop brute-forces. You must have mistyped the password a couple of times or had failed logins with that account elsewhere to cause this. When you tried 30 minutes later, the account was automatically ...


3

As documented by Microsoft: For example, for the following IPv6 address: 2001:4898:9:3:c069:aa97:fe76:2449 an example for a share might be the following: \\2001-4898-9-3-c069-aa97-fe76-2449.ipv6-literal.net\share For more, see: How do I create a UNC to an IPv6 address? Also note that, strangely enough, Microsoft doesn't actually own that domain name, and ...


2

You need to convert the IPv6 address to an IPv6 literal address. This website will do the conversion http://ipv6-literal.com/ and the website below is my source if you need more details. http://social.technet.microsoft.com/Forums/windowsserver/en-US/d61f8efe-c9a7-4fd7-a7e9-f936c2154c54/net-command-with-ipv6-address?forum=winserverManagement The command ...


2

Using FQDN, hostname and IP address, you can have three connections with different credentials to the same server. E.g.: net use \\pc1.domain.net\Shared\DirA /user:user_of_DirA@domain.net pwd1 net use \\pc1\Shared\DirB /user:user_of_DirB@domain.net pwd2 net use \\1.1.1.1\Shared\DirC /user:user_of_DirC@domain.net pwd3 (I've always entered password as the ...


2

For BACKUP statements SQL Server will use the service account under which the database engine service is running as the security context for interaction with the operating system. Therefore you would need to grant the SQL Server service account access to the share. There's no way around this other than your xp_cmdshell hack. For example: If the SQL ...


2

If I look the user on the primary DC it says the account has been locked Someone (or something) has locked out the account, usually by entering an incorrect password too many times in a row. You can change your account lockout policies/thresholds, and/or troubleshoot the issue, in order to ultimately fix the root cause, in which case, Microsoft makes some ...


2

There is a kb on microsoft.com that says if there is a child directory in the url such as https://www.example.com/webdav that is a webdav but the parent is not a webdav win7 and win server 08 will try to authenticate against the parent that is NOT a webdav. the fix is here: http://support.microsoft.com/kb/2560598 I confirmed that it does work as intended ...


2

When mapped from NT Authority\System the drive will show as disconnected, but it should work: Map a network drive to be used by a service NOTE: The newly created mapped drive will now appear for ALL users of this system but they will see it displayed as "Disconnected Network Drive (Z:)". Do not let the name fool you. It may claim to be disconnected ...


2

Don't do this. Please, just don't. Set up a proper VPN that your clients can connect to. Once they do that, they'll be able to connect to the share in the same manner as if they were connected to the local network.


2

If you have control of the remote server and it is a windows server, then try running the following from an elevated (run as administrator) command prompt on the remote server: netsh a s a state off Do not leave it in this state as it will turn off the firewall completely to allow you to test. Then try your net use command again on the client. If this ...


1

It may have something to do with SID compression on Windows 2012 servers in connection with older NASes - but if thats what hurts you depends on your particular configuration. I stumbled upon it after specific update was installed on DCs (2012R2), after which I couldn't access SMB shares on older Thecus NAS. There was no kerberos authentication (checked with ...


1

I tried the same on a number of occasions. I actually never made it work using a completely anonymous connection but just supplying any user / pass combination seems to work out with shares that are configured the way yours are.


1

Doesn't seem to be a Linux issue, seems to be Windows 10 as I have the same issue. The fix I have researched seems to be this... example... net use z: //192.168.02/tftp \root: 192.168.0.2 /root password I have not tried this will be attempting it at work tomorrow.


1

I did find out the answer - took me a bit to realize it. The standard users do not have access to make changes to the hardware. Due to their being a physical LPT port on the computer, and it being enabled in the BIOS, that is why I was getting the error I was getting. When I tried lpt2 or lpt3, I did not get the error. So, disabling the lpt port in the ...


1

Terminal server maps/sets the default client printers from the desktop it connects from as default in user session. To make this work You need to make sure that on the terminal server only the printer driver is installed. Install both 32 and 64 bit version. No need to map. Make sure that the terminal server settings allow printer mapping. leave checkbox ...


1

You could, of course, remove your connection by doing net use \\somemachine\someshare /d But you probably want to re-connect eventually too. Furthermore, if you have cached credentials to the network share, then when you re-establish the connection you may find yourself fighting one of these errors: System error 1272 has occurred. You can't access ...


1

In Windows 10 (Powershell 5+) you can now also use Remove-SmbMapping. Remove-SmbMapping -RemotePath \\somecomputeronmynetwork\somelocation$ Also check out Get-Command *Smb*.


1

I have also discovered from @rocketsarefast's answer that Windows will clear the old network credentials when there is a new login attempt. However, his net use "\\10.0.0.5\c$" "badpassword" /user:"baduser" command is way too slow, especially when the client has to wait up to several seconds for the server to respond with a rejection, which is terrible and ...


Only top voted, non community-wiki answers of a minimum length are eligible