Solved

Enabling a folder share in Windows Server 2012 R2 Core installation

Posted on 2013-12-22
17
4,017 Views
Last Modified: 2013-12-23
Heyas,

How do I create and enable full access to folder share in Windows Server 2012 R2? The netshare command doesn't seem to work.

Thank you.
0
Comment
Question by:Zack
  • 6
  • 6
  • 5
17 Comments
 
LVL 95

Expert Comment

by:Lee W, MVP
Comment Utility
have you tried the NET command?

Type NET /? at a command prompt.  NETSHARE won't work and won't be found because it's not correct.  NET SHARE is.
0
 

Author Comment

by:Zack
Comment Utility
Sorry my mistake I meant the Net Share command doesn't work.
0
 
LVL 95

Expert Comment

by:Lee W, MVP
Comment Utility
What is there error?
0
 
LVL 95

Expert Comment

by:Lee W, MVP
Comment Utility
Post a screen shot.
0
 
LVL 95

Expert Comment

by:Lee W, MVP
Comment Utility
Did you add the File Server role?
0
 

Author Comment

by:Zack
Comment Utility
Hi Leew,

See screenshot

Thank you.
ShareIssue.PNG
0
 
LVL 95

Expert Comment

by:Lee W, MVP
Comment Utility
Why are you running that in a PowerShell prompt?  Run it in a command prompt.
0
 
LVL 12

Expert Comment

by:ktaczala
Comment Utility
Try,

 net share corefig=c:\corefig /G everyone:f
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:Zack
Comment Utility
Hi Leew,

No options to launch CMD from the Windows Server Core.  The command
'net share corefig=c:\corefig /G everyone:f' didn't work error message 'You have used an option with an invalid value'.

Thank you.
0
 
LVL 12

Expert Comment

by:ktaczala
Comment Utility
OOPs sorry wrong command. Ignore that

 Are you in powershell?  Try from C:\ prompt.
0
 
LVL 12

Expert Comment

by:ktaczala
Comment Utility
gee leew is too fast,  I didn't see his comment before I typed mine.
0
 

Author Comment

by:Zack
Comment Utility
Tried from C:\ directory same result.
0
 
LVL 12

Assisted Solution

by:ktaczala
ktaczala earned 340 total points
Comment Utility
Here's a link for exactly what you are trying to do.  Notice they are at the command prompt,
http://www.omnisecu.com/windows-2008/server-core/how-to-create-and-manage-network-shares-in-windows-2008-server-core-computer.php
0
 
LVL 12

Accepted Solution

by:
ktaczala earned 340 total points
Comment Utility
here's how to get to cmd prompt.

press CTRL+ALT+DELETE, open Task Manager, click More Details. The File menu opens. In the File menu, click Run new task, and then start either Cmd.exe or Powershell.exe.
0
 
LVL 12

Expert Comment

by:ktaczala
Comment Utility
try testing without the /grant part just share the folder. lets do this one step at a time.
0
 
LVL 95

Expert Comment

by:Lee W, MVP
Comment Utility
You're problem is that you're running this in a PowerShell prompt.  

You can use powershell to create a share, but NET SHARE works just fine in a COMMAND prompt.  Run CMD and you'll find it works.

More on PowerShell share creation:
http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/16/how-to-use-powershell-to-create-shared-folders-in-windows-7.aspx

WHY are you running a core install?
0
 

Author Closing Comment

by:Zack
Comment Utility
Thanks man that did the trick.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
What to do when Windows Update is not working correctly? What tools can I use to detect the cause of the malfunction problem? What does this numeric error code mean? These and other questions that you have been asking in the past are answered here (…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now