Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Powershell script to create user share on a file server

Posted on 2014-02-19
6
Medium Priority
?
1,464 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
[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
6 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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
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…

721 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