Windows Server TechCenter > Windows Server Forums > General > Server Core: Sharing folders/files

Answered Server Core: Sharing folders/files

  • Wednesday, September 26, 2007 4:12 AM
     
     

    Hi I have a question. Since I am only using command-line user interface, I know this question seems to direct toward multiple WinNT-based operating systems such as Windows XP, 2000, 2003, and Vista, including Windows Server 2008.

     

    I have files in my D:\ drive that I wanted it accessed in more than one computer, so what is the equavelant to going into My Computer, right-clicking in the drive or folder that I want, click Share, and then type in a name to be shared?

Answers

All Replies

  • Wednesday, September 26, 2007 9:36 AM
     
     Answered

    Hi Grayson,

     

    you can use Nfsshare command-line

     

    nfsshare <ShareName>=<Drive: Path>

     

    http://technet2.microsoft.com/windowsserver2008/en/library/47a23a74-e13c-46de-8d30-ad0afb1eaffc1033.mspx?mfr=true

  • Wednesday, September 26, 2007 10:50 AM
     
     

    Ah! Now that is the command I'm looking for! Thanks!

     

    I'm enjoying getting into habit of using a command-line user interface! Smile

  • Wednesday, September 26, 2007 6:13 PM
     
     

    Okay. I do have a problem. I am using Windows XP Home (computer name: GRAYSONWINXP) for accessing the server (computer name: HANETSC).

     

    I've tried entering a command like...

     

    nfsshare BStorage=D:

     

    and even though it's successful, I tried to look in my list of shared folders in HANETSC and nothing is there.

     

    I've enabled file sharing in Windows XP.

     

    In GRAYSONWINXP, I have one shared folder, which is "downloads," so in HANETSC (Server Core), I tried entering \\GRAYSONWINXP\downloads\ but the command-line interface said the network path is not found. I tried SharedDocs but same problem.

  • Wednesday, September 26, 2007 6:57 PM
     
     

    try to check firewall configuration in both computers, or at least to try ping each computer from the other one to ensure that there is a connection between both of them.

  • Thursday, September 27, 2007 2:47 AM
     
     

    OK. I did some research and I found that a correct command for sharing files and folders is this:

     

    net share sharename=drive: path (space is in place because of emoticons)

     

    And it worked, while nfsshare doesn't for me.

  • Friday, March 23, 2012 7:50 PM
     
     Proposed Answer

    Just in case anyone comes across this thread again, I found it best to setup a Share on a Windows Server 2008 R2 Core Server install by using the MMC and Shared Folders snapin.

    From your workstation go to your start button then type MMC in the "Run" or "search programs and files" field and hit Enter.

    Once the Console opens, go to File > add/remove Snap-in... 

    Choose the "Shared Folders" snapin, and add it. Select "another computer" and browse to the Windows 2008 R2 Core server you want to create the share on. (leave the "View"  set for "All").

    Click Finish.

    Click OK

    If you select  "Shares" listed in the Console Tree, you can see a list of shares on the connected  server. 

    If you right click on the "Shares" tree you can create a "New Share" and assign permissions.

    Easy peasy...

    Hope this helps!






    • Proposed As Answer by ThinkTech MD Friday, March 23, 2012 7:51 PM
    • Edited by ThinkTech MD Friday, March 23, 2012 8:09 PM
    •