Solved

Group Plicy on a domain

Posted on 2014-11-13
4
73 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
[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
4 Comments
 
LVL 21

Assisted Solution

by:Ivano Viola
Ivano Viola 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 20

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In-place Upgrading Dirsync to Azure AD Connect
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
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 …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

717 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