r3dux.org

A number-pimping side project from the valleys in *NEW* upside-down flavour.

  • Home
  • ABOUT
  • OLD SITE
  • SEARCH
  • FEEDBACK

How To: Force Windows to Forget a Network Share Password

r3dux | July 29, 2009

When you connect to a NAS in Windows, it will often helpfully remember the username and password of the NAS account it got access through. Forever. So, if you want to log into the NAS as a different user, well – tough. Windows already has a working set of credentials, and by jingo it’s gonna use them. The fix? From the command prompt, enter:

net use * /delete /yes

This will get rid of all connected share credentials, however you may want to just get rid of the credentials for a specific share. If so, you can use:

net use \\YOUR-SHARE-LOCATION /delete /yes

For example, the get rid of the credentials for the “Code” share on my NAS:

net use \\ETHERNET_BD\Code /delete /yes

Now, to map the share to a drive and give it the credentials YOU want Windows to use, go with:

net use DRIVE-LETTER: \\YOUR-SHARE-LOCATION NAS-USER-PASSWORD /user:NAS-USER-NAME

So, if I wanted to map the Code share of my NAS to the Z: drive, and access it with a user called bob who has a password MyClevahPass123, I’d use:

net use Z: \\ETHERNET_BD\Code MyClevahPass123 /user:bob

Done & dusted.

Please Note: The credentials you supply must be the username/password of the user the SHARE knows to grant access to, not just your own Windows username/password. Just clarifying =D

No related posts.

Categories
Tech
Tags
Force, Forget, How-To, NAS, Password, Windows
Comments rss
Comments rss
Trackback
Trackback
Print This Post Print This Post

« How To: Fix Broken Sound in Totem on Jaunty 9.04 Interpol – Obstacle 1 »

4 Responses to “How To: Force Windows to Forget a Network Share Password”

  1. Hans Vereyken says:
    March 29, 2010 at 5:33 pm

    Thanks, this helped me setting up my FreeNAS.
    I have guest account enabled for some shares, other shares are private, but since windows stored the guest credentials I wasn’t able to login to the private ones, permission denied. This solved it :-)

    Reply
  2. James says:
    December 29, 2011 at 12:34 pm

    Hey.
    Looks great, exactly what I want. But doesn’t work for me
    I’m on a laptop running windows 7, wirelessly connected to a WAP, which is connected to a router, to which are connected other computers. No central server – small home network.
    Windows 7 explorer can see the target computer (\\HEN) but i tried logging in once and stupidly ticked remember credentials, not it wont let me in and I can’t change them. Think it doesn’t like my password on the networked computer being blank.
    But typing your commands into the prompt returns a message “The network connection could not be found. More help is available by typing NET HELPMSG 2250.” typing that simply returns the same message but without the “more help available” part.
    Doesnt matter if I start from C\Windows or C\James. Would I need to be in CMD as an admin? don’t really want to do that.

    Any ideas?

    Thanks,

    James

    Reply
    • r3dux says:
      December 29, 2011 at 1:27 pm

      That’s a nuisance. It looks like you can fix this up via the registry though (using regedit) – I don’t know how comfortable you are hacking around in the registry, but as long as backup the registry first and only change/delete the specified keys you should be fine:

      Option 1

      I had the same problem on a couple of my machines. Here is how I fixed my computer:

      I went into the registry and looked under:
      HKEY_USERS\..\Software\Microsoft\Windows NT\CurrentVersion\Network\Persistent Connections
      for each user listed. In one of the users, it had a key named Save Settings. The value of this key was NO. I deleted the key and rebooted my machine.

      My login script ran fine this time and the “Disconnected Network Drive” disappeared and I was able to map a new drive to that drive letter.

      Hope this helps.

      Dale

      Source: http://www.pcreview.co.uk/forums/disconnected-network-drives-t1871516.html

      Option 2

      First and foremost, back up your registry!! Then open regedit and search for Mountpoint key in the \HKEY_CURRENT_USER\Software\Microsoft\windows\CurrentVersion\Explorer folder find the share you need removed and delete it.

      Source: http://www.tomshardware.com/forum/53427-45-remove-network-drive

      Hope this helps.

      Reply
  3. Windows’da Ağ Paylaşım Şifrelerinin Unutturulması « yazılım amelesi says:
    September 13, 2012 at 6:46 pm

    [...] http://r3dux.org/2009/07/how-to-force-windows-to-forget-a-network-share-password/ Amelelere gönder:Like this:BeğenBe the first to like this. Yorum yapın by yazilimamelesi on 13 Eylül 2012  •  Kalıcı Bağlantı Posted in Genel [...]

    Reply

Leave a Reply

Click here to cancel reply.

Translate

Categories

Archives

Tags

3D ActionScript ActionScript 3.0 Adobe AI Ballarat Bash C++ Class Convert CS4 Effect Error Film Flash FPS GLFW Glitch GLSL Hack How-To install Java Kinect Linux Live Mash-Up Microsoft Motion mount OpenGL Particle Problem PS3 Remix Retro script Slides Sound Ubuntu Video VirtualBox Wii Windows XBox

Gamercard

OpenR3dux

Misc.

Flattr this

RSS Feed

r3dux twitter feed



“Linux - The operating system for people with a lot of time on their hands.”

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox