Solved

Group Plicy on a domain

Posted on 2014-11-13
4
67 Views
Last Modified: 2014-11-24
Hi Experts,

how do i allow users to access a specific folder in the C drive while hiding other folders?

Thanks
0
Comment
Question by:Teavana
  • 2
4 Comments
 
LVL 21

Assisted Solution

by:ivanoviola
ivanoviola earned 250 total points
ID: 40440403
Here is a vbscript that will allow you to hide folders. To change permissions on folders you will need to run a powershell script. This should help:
http://blogs.msdn.com/b/johan/archive/2008/10/01/powershell-editing-permissions-on-a-file-or-folder.aspx

Hope this helps.

IV

Set WshShell = WScript.CreateObject("Wscript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")

'-----------------------------------------------------------------------

' Hide Folders

Set objShell = CreateObject("WScript.Shell")
strRun1 = "attrib -s -h C:\Temp"
strRun2 = "attrib -s -h C:\Temp2"

objShell.run "cmd /c " & strRun1,0,True
objShell.run "cmd /c " & strRun2,0,True

'-----------------------------------------------------------------------

WScript.Quit

Open in new window

0
 
LVL 1

Author Comment

by:Teavana
ID: 40440559
Thanks for this information. I am using a GPO to hide/restrict the C:  The issue I am having is that the I need to grant access to a folder in the program files which is on the C: while preventing users from finding the C:
0
 
LVL 19

Accepted Solution

by:
compdigit44 earned 250 total points
ID: 40443885
Well using can use a GP to easily control access to objects: http://technet.microsoft.com/en-us/library/cc756952(v=ws.10).aspx

But you want users to be only able to access one folder yet not see the C:\ drive
Are you using a RDP server? can you give a bit more history on why you need this? Maybe there is another options for you
0
 
LVL 1

Author Closing Comment

by:Teavana
ID: 40463776
Thank you for your help. I create a GPO that gave the user access to the C: but hide it the My computer.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

[b]Ok so now I will show you how to add a user name to the description at login. [/b] First connect to your DC (Domain Controller / Active Directory Server) SET PERMISSIONS FOR SCRIPT TO UPDATE COMPUTER DESCRIPTION TO USERNAME 1. Open Active …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now