Context Windows R2 infrastructure. We manage network share permissions by AD security groups and put user objects in those groups. Objective I want to see what security groups are currently assigned to each folder on a particular server.
Improve this question. Ok, so what have you tried so far? Which parts are working? Which parts are not? None because I was unsuccessful on narrowing down accurate keywords that were relevant enough to yield results from Google. Shame you removed your answer jscott I was going to award it to you.
Add a comment. Active Oldest Votes. Improve this answer. Ryan Bolger Ryan Bolger Mass Nerder Mass Nerder 4 4 silver badges 6 6 bronze badges. This was not achievable due to the layout of the output, with or without Format-Table — codaamok. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. What is the path for the startup folder in windows server Ask Question. Asked 9 years, 6 months ago. Active 3 years, 11 months ago. Viewed k times. Thanks, Varun.
Varun Varun 3 3 gold badges 7 7 silver badges 18 18 bronze badges. I need to run two line command file to open a connection to another VM shared folder.
This serves simple and easy You should put your updates in the post itself, not in a comment. Add a comment. Below is the script:. You not need to do this using a batch file. If you do it through users and computers, windows will apply all of the correct permissions. Run MMC and add the users and computers snapin. Select All users that you want to give a home directory too. Click Ok or apply. OK so I have created a folder called userfiles and shared it. The better way to do it is to create the access within AD and map it for each individual.
That is my nest step. If you are in Domain, Create a shared folder in one system and consider this as File server. Run dsa. Right click on that, select properties then Group policy. Here create one Group policy then click edit. Select User configuration then Windows settings, then Folder redireciton, Click on Desktop and right click on that and select properties. Hank is right. Mapping drives from a script works but the best solution is to simply use active directory to create home drives and redirected folders if needed.
Since your script is checking for group membership it seems clear enough that active directory is working. Here is an excellent tutorial on how to get it done the right way. No Account? Sign up. By signing in, you agree to our Terms of Use and Privacy Policy.
Already have an account?
0コメント