network-shares interview questions

Top network-shares frequently asked interview questions

Why is it bad to map network drives in Windows?

There has been some spirited discussion within our IT department about mapping network drives. In particular, it has been said that mapping network drives is a bad thing and that adding DFS paths or network shares to your (Windows Explorer/Libraries) favorites is a far better solution.

Why is this the case?

Personally I find the convenience of z:\folder to be better than \\server\path\folder', particularly with cmd line and scripting (of course I'm not talking about hard-coded links, naturally!).

I have tried searching for pros and cons of mapped network drives, but I haven't seen anything other than 'should the network go down, the drive will be unavailable'. But this is a limitation of any network-accessed storage.

I have also been told that mapped network drives poll the network when the network resource is unavailable, however I haven’t found more information on this. Do network drives poll the network any more than a Windows Explorer library/favourite? Wouldn't this still be an issue with other network access mechanisms (that is, mapped Favourites) whenever Windows tries to enumerate the file system (for example, when a file/folder picker dialog is opened)?

Source: (StackOverflow)

How to make Windows 7 remember credentials for a Samba network drive?

I have a Samba share on my Ubuntu server which I map as a network drive on my Windows 7 Professional computer.

After every reboot it shows the drive as disconnected and to access it I have to renter my password even though every time I enter the password I check the 'Remember my credentials' box.

Is there way to have Windows 7 remember the credentials on a reboot/shutdown or is it just to remember them per session?

Source: (StackOverflow)

Can't ping other machines in my network

I've got 3 machines on my network, all running Windows 7.

None of them can ping each other, either by name or IP address. (And because of this, they also can't see each other on the network, can't see shares, can't remote desktop, can't see any homegroups, etc.)

  • They are all on the same workgroup.
  • They are all connected to the same wireless, WPA2 secured network.

They all worked together nicely until I added a password to my wireless network. After that, and after reconnecting all the machines to the password-protected network, they can't see each other.

Any ideas what could be wrong?

Source: (StackOverflow)

Can my landlord access my personal network because he controls the upstream connection?

Can my landlord access the things on my personal router's network because he controls the upstream connection? For example: the DLNA on my NAS, a public file share on my NAS, or the media server running on my laptop?

My configuration: I have my own router and connected to it are a NAS (wired) and a laptop (wireless.) The INTERNET/WAN port on my router is plugged into a LAN port on my landlord's router. The INTERNET/WAN port on my landlord's router goes to the cable modem. I am the only one with access and the password to my router. I don't have access or the password to my neighbor's router or the cable modem.

Source: (StackOverflow)

Disable Windows 7's "Open File - Security Warning" dialog for exe on network drive?

I have a mapped network drive, on which I store some programs, one of which I've put in my startup folder.

Unfortunately, this program "does not have a valid digital signature", which means that every time I reboot, I get a security dialog, asking me whether to run it.

I would prefer not to have to copy this program to the local disk.

How can I disable this prompt?

Source: (StackOverflow)

How do I mount a network drive to a folder?

Does anyone know of a third party (or even windows native) solution to this simple problem?

I want to map an internal network share on our windows server to a folder on each of the client machines in the network. I don't want to to use drive letters; I would just like to set up a folder on my C drive that is actually a Windows share. For example, C:\Data\Network Docs should actually point to \Server\SharedData.

Is this possible? Is there any tool that does it? All clients are using Windows XP and Windows 7.

Source: (StackOverflow)

How do I change the user I am logged in with on a Network Share?

When connecting to a server via Explorer (not a mapped network drive) even if the "Remember my credentials" check box is not selected, Windows remembers the password until you log out. Is there any way to switch user/password for a share without logging out and back in?

Source: (StackOverflow)

Share VirtualBox folders in reverse? Guest-Host?

I'm familiar with the process of installing Guest Additions and sharing host folders with the guest, but is there a way to do the reverse?

I have an XP host and Ubuntu 10.10 guest, with VBox 4.0.2.

In other words, I'd like for the host to have direct access to (at least some of the) files inside the .vdi file.

Source: (StackOverflow)

How can I suppress those annoying Thumbs.db files in Windows Vista and Windows 7?

In Windows XP, there used to be a folder setting like "Do not cache thumbnails." I can't seem to find something similar for Windows Vista and Windows 7, and every folder on my network containing a photo or video continues to get littered with "Thumbs.db". I appreciate that caching thumbnails makes some sense, but I still would like to turn this off because I also value not having litter in my network folders.

What's the easiest/quickest way to solve this problem?

Update 1: Here's a link to Wikipedia's info about the Windows thumbnail cache.

Update 2: My solution is below and now includes a registry equivalent that you can save in a .REG file for simpler application to any of your Windows Vista or Windows 7 boxes.

Source: (StackOverflow)

Can a mapped network drive be reconnected from the command line?

On a daily basis I find myself in the Windows command prompt needing to access a network drive that is mapped but disconnected. I have yet to find a command that will reconnect this drive without unmapping and remapping (which leads to a password guessing game, since I don't own these computers). I would also like to be able to script this so every night the drive is reconnected if it has become disconnected somehow.

The fastest solution I currently have is to:

  1. Type "start." to open explorer,
  2. Alt-D to focus the address bar,
  3. type the drive letter I want and press enter, and wait for it to display the drive contents,
  4. then finally, close explorer and go back to the command prompt.

I know it's a minor inconvenience, but I'm often doing this through a slow VNC or PCAnywhere connection where doing anything through GUI is awful, so I'm just wondering if there's a better solution.

Source: (StackOverflow)

Is there any way to prevent a Mac from creating dot underscore files?

At work we're letting one of our very tech savvy clients actually help out a little with a few development projects specific to him. However, he uses his own personal Macbook, and as he edits files on our (Windows) networks, his Macbook always creates a bunch of unnecessary meta files that we end up deleting later.

For instance, it creates a file called .DS_Store in any directory he opens, as well as "dot underscore" files for each file he edits. So for instance, if he's editing a file called "Main.php", his Macbook will create another file called "._Main.php".

I know there are ways to prevent creation of .DS_Store files, but none about how to prevent creation of these hidden files prefixed with dot underscore.

Is there any way to turn that off on Macs? Any way to prevent it from creating those files in the first place?

Source: (StackOverflow)

Samba+Windows: Allow multiple connections by different users?

I have a machine running Ubuntu with Samba that I use to share stuff with my family's Windows machines in our local network. Currently they access a share for movies/music/etc with one user.

I want to connect them to another share as a different user (for example, user "goytacaz").

When I try connecting to this new share, Windows gives me "Error 1219" and complains about multiple connections by the same user.

How do I get my machine to accept multiple connections by the same user?

Source: (StackOverflow)

How do I resolve the error "The local device name is already in use."?

I try to map a network resource to my local device.

I receive the following error: The local device name is already in use.

I have the problem to find which purpose the device is used for. I try a command net use and do not see it in the list, therefore, it is not mapped to a network resource.

Does anybody know how to see the list of all used devices in Windows 7?

Source: (StackOverflow)

Security Concern with my Windows 7 Box at Work

This question may be weird and misworded but I'm not a Windows expert by any means so feel free to correct me.

The group I'm in recently got new computers at work. They gave me a new computer and hooked up my old computer to the network for a week so I could take my time transferring necessary files/configs etc. The Support Guy said, "Just go to 'run' and type in \\PCNAME\c$. So I did and, low and behold, there's my old C: drive. I thought to myself, "What a huge security issue. I'll just transfer everything quickly and then 'un-share' it."

The end of the day came and I logged in through remote desktop and right clicked on the C drive. But it was not shared. I called The Support Guy and explained to him that I didn't want my C drive available to everyone on the network all weekend. He seemed confused. He said, "It's not really 'shared'. If you go to the command prompt and type in \\ANYPCNAME\c$ you get their C drive. That's just how it is."

I hung up the phone and walked over to a coworker's desk and looked at his PC name (there's a sticker on every computer) and then walked back to my desk and put a hello file on his desktop.

I don't keep anything personal on my work computer but there are definite security concerns. Not really from within the group I'm in but from the hundreds of other employees on the network (and domain) that I don't know. I'm fine with practical jokes but what if someone has an unknown grudge against me (or someone with a similar name or computer name) and adds nasty language against my boss to documents which are part of a project?

Is this an inherit part of how Windows domains work? Are there any steps I can take to make my box a little more secure? Bear in mind that I do have admin rights to the box but I can't change anything as far as the network or domain goes. Even just an explanation of what's going on would be a big help as this goes against everything that I know to be 'pretty basic' about computer systems in general. I'm more familiar with Linux so Windows World is a little foreign to me.

Follow Up

Voiced my concerns about this at work. I was told, "Nobody knows about the drive$ thing so there's nothing to worry about." Followed Darth's solution and added that registry key. Now I'll wait and see if anyone gets alerted.

Source: (StackOverflow)

How can I Map a Network Drive with Password so it stays mapped after a reboot?

I mapped a network drive to a location that needs a password. Now whenever my computer starts up, it tells me that it could not connect to that network drive because a password is needed.

How do I make set my computer to remember the password for that mapped network drive?

My PC is running Windows XP Professional

Source: (StackOverflow)