[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Powershell to create shared folders for users with permssions

Posted on 2015-01-22
3
Medium Priority
?
199 Views
Last Modified: 2015-01-27
Hello!!

I've recently put up a post asking, how I could use PowerShell to create multiple user share folders and amend permissions so that they (the user) have Modify rights only and system/admin have full rights only.
I was provided the following link, https://gallery.technet.microsoft.com/scriptcenter/How-to-create-home-folder-d968f1d4   which did sort of help but as a n00b (forgive me) I need a bit of hand holding as I'm new and learning PowerShell. I have a couple of questions..

1.      How can I use the script so that the user has Modify rights and system/Adam have full rights.
2.      How can the List.txt file i have importing the user name, create the folders in a username structure as oppose to the users full name? i.e. Bob Smith > Bbs

Is anyone able to help and simplify an answer? Also, I have a test environment, so I’m not a live canon :D

Thanks!!!
0
Comment
Question by:N00b2015
[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
3 Comments
 
LVL 83

Accepted Solution

by:
David Johnson, CD, MVP earned 2000 total points
ID: 40565702
CreateHomeFolder.ps1.txt

To satisfy your requirements changed user from 'full control' to 'modify'
If there are spaces in the users name enclose them with quotes
you should be using the samaccountname
0
 

Author Comment

by:N00b2015
ID: 40566173
David, thank you!!

Everything is working as it should now. Although, the system and admin permissions are now only modify also, which should be full permissions. The user is fine as modify. Any ideas?
0
 

Author Closing Comment

by:N00b2015
ID: 40572485
Demonstrated where the fix needed to be applied including script.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
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 …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Suggested Courses

650 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