Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Powershell script to create user share on a file server

Posted on 2014-02-19
6
Medium Priority
?
1,509 Views
Last Modified: 2014-10-25
looking for a powershell script to do the following

1. create a home share for a user

such as \\fileserver\users\jsmith

2. Provide the following permission

full access to domain admin
Read/write/modify for the user
remove everyone group
0
Comment
Question by:ARM2009
4 Comments
 
LVL 9

Accepted Solution

by:
VirastaR earned 1000 total points
ID: 39873173
0
 
LVL 4

Expert Comment

by:michaelalphi
ID: 39876079
Use windows explorer to create a folder on the hard disk. In this example, the folder is named Home.
Share the home folder with full control share permissions for the everyone group.
To do so, right-click the folder, click properties, click the sharing tab,
Click share this folder, and click OK.
Check this KB for detail info : http://support.microsoft.com/kb/298403
Start the Active Directory Users and Computers snap-in.
Locate the user account for which you want to set up the home folder. By default, all users are in the Users container.
Right-click the user account for which you want to specify a home folder, click properties click the Profile tab, click Connect, specify a drive letter, type a path in the To box, and then click OK.
0
 

Author Comment

by:ARM2009
ID: 39883181
checking and testing to see if link provided by

 VirastaR
Milind Koyande

helps... will post results shortly.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A bad practice commonly found during an account life cycle is to set its password to an initial, insecure password. The Password Reset Tool was developed to make the password reset process easier and more secure.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

783 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