Solved

Command line: create Windows  share and grant rights

Posted on 2013-11-13
2
321 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
  • 2
2 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 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 Security Threats Are You Missing?

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.

Join & Write a Comment

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
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…

762 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

23 Experts available now in Live!

Get 1:1 Help Now