?
Solved

Command line: create Windows  share and grant rights

Posted on 2013-11-13
2
Medium Priority
?
347 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Suggested Courses

777 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