Solved

Group Plicy on a domain

Posted on 2014-11-13
4
65 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Installing a printer using group policy preferences is not that hard let’s take a look at it. First lets open up your group policy console and edit the policy you want to add it to. I recommend creating a new policy for each printer makes it a l…
[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 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 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 …

772 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

11 Experts available now in Live!

Get 1:1 Help Now