Problems with Map Network Drive in Windows Server 2008R2

To list all network shares use this command from Command Prompt:
net use

To delete specific network share
net use /delete \\SERVER_IP\YOUR_SHARE

If you map “\\SERVER_IP\SHARE1” as drive letter X using “user1” and “password1”, then try to map “\\SERVER_IP\SHARE2” (a different share) as drive letter Y using the same “user1” and “password1”, and you click the “connect using different credentials” checkbox in the Map Network Drive dialog box and specify “user1” and “password1”, you will get this INCORRECT ERROR MESSAGE that says “The network folder specified is currently mapped using a different user name and password”.

map-network-drive

I figured out that once you have mapped to “SERVER_IP” using those credentials, you can map to different shares on the same server without re-specifying the credentials. This is NOT CLEAR from the “Map Network Drives” dialog box, which leads to users (like me, and I’m a programmer by trade) trying to enter the credentials again and getting this incorrect error message.

Stop automatic rebooting of Windows 7 after Windows Update

If you want your PC with Windows 7 operating system to work as server then you definitely want to stop automatic rebooting after Windows Update install new patches.

To do this you need to do the following:

  1. Open the Registry Edit (WindowsKey + R, “regedit.exe“)
    (Remember to be careful! DON’T change anything unless you know exactly what you’re doing!)
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
    Chances are that you’ll be missing these keys.
    If keys WindowsUpdate\AU exist, go ahead to step 3
    OTHERWISE, continue through these indented steps…

    1. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
    2. (Make sure the above key is highlighted and) go to the edit menu and choose New > Key
    3. Name the key WindowsUpdate
    4. Now, repeat the above steps, except highlight WindowsUpdate and name the next keyAU
  3. With WindowsUpdate\AU highlighted, create a new 32-bit DWORD calledNoAutoRebootWithLoggedOnUsers
  4. Right click on your newly created value and give it a value data of 1 (hexadecimal)
  5. Double check all the steps to make sure you did everything EXACTLY how I explained it
  6. Close Registry Editor

How do you copy entire MongoDB database?

I faced small problem how to duplicate entire MongoDB database and I tried just to rename folder under data directory. So, instead of having my_database I just renamed it to my_new_database but it didn’t helped and when I used show collections it returned me an empty set.
I also tried to rename files inside data/my_database to my_new_database but this didn’t helped me either.

So, I finally looked into the documentation and found this command which copies the entire database:



db.copyDatabase("my_database", "my_new_database", "localhost")


How to submit form in jQueryMobile?

jQuery Mobile is excellent framework and I was trying to figure out why postback of my web form is not working properly and I finally found out that jQuery Mobile use ajax in passing forms so you need to add parameter data-ajax=”false”. It is better to read documentation sometimes.

<form id="page_form" method="post" action="[your-url]" data-ajax="false">
...
</form>
Follow

Get every new post delivered to your Inbox

Join other followers