Solved

Command line: create Windows  share and grant rights

Posted on 2013-11-13
2
336 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

860 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