Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Command line: create Windows  share and grant rights

Posted on 2013-11-13
2
Medium Priority
?
352 Views
Last Modified: 2013-11-14
Hi,

I'd need to create a Windows  share named which foldername is deploymentshare, the sharename should be deploymentshare$ (hidden share), only domain admins should have full access + the local administrator of the machine on which the share is.

I know it is something with net share /grant then set calcs ...?

Please advise howto.
J.
0
Comment
Question by:janhoedt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 2000 total points
ID: 39644680
net share deploymentshare$=f:\foldername /grant:everyone:f 
echo y|cacls f:\foldername /g "domain\domain admins":f

Open in new window

0
 
LVL 67

Expert Comment

by:sirbounty
ID: 39647764
Happy to help - thanx for the grade! :^)
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OfficeMate Freezes on login or does not load after login credentials are input.
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

610 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