Re: Prevent Sharing drives on clients
- From: "Jordan" <none@xxxxxxxx>
- Date: Fri, 23 Jun 2006 15:09:18 -0400
I don't mind the C$ and Admin$ shares because they are accessible for
Administrators of the computer. I just want to prevent them from sharing
C:\ to the Everyone group. Is there a policy prevent sharing of folders on
computers in the domain without killing of th C$ and Admin$ shares?
"Dave Britt" <davebritt@xxxxxxxxxxx> wrote in message
news:uFEVIQulGHA.3576@xxxxxxxxxxxxxxxxxxxxxxx
Jordan,
You could use this script to temporarily remove the C$ share from the
machine, this would then be gone until the next reboot of the machine.
This would be re-enabled because of the autoshares reg key that generates
Admin Shares, which you cannot remove because you want to maintain the
Admin$ share.
Script:
-------------------
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colShares = objWMIService.ExecQuery _
("Select * from Win32_Share Where Name = 'C$'")
For Each objShare in colShares
objShare.Delete
Next
--------------------
The problem is that what ever you configure through Group Policy a user
with Local Administrator rights can remove if they have the knowledge and
will to do so.
--
Dave Britt
Dave's Weblog
http://davebritt.blogspot.com
"Jordan" <none@xxxxxxxx> wrote in message
news:%239tbsmglGHA.1972@xxxxxxxxxxxxxxxxxxxxxxx
I have a couple of users that need to be administrators on their local
computer (developing hardware and software). They keep sharing their hard
drive so they can access it from other computers which is a big no-no
here. Is there a GP that prevents creating new file shares but leaves the
Admin$ share for remote management programs?
.
- References:
- Prevent Sharing drives on clients
- From: Jordan
- Re: Prevent Sharing drives on clients
- From: Dave Britt
- Prevent Sharing drives on clients
- Prev by Date: Re: Custom GPO Version Mismatch
- Next by Date: Re: Prevent Sharing drives on clients
- Previous by thread: Re: Prevent Sharing drives on clients
- Next by thread: Re: Prevent Sharing drives on clients
- Index(es):
Relevant Pages
|