以编程方式控制对网络共享的访问 [英] Control access to network share programmatically
本文介绍了以编程方式控制对网络共享的访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当用户登录到Windows Server 2003网络中的工作站(XP/VISTA)时,在网络中将获得具有完全许可权的网络共享数.我需要阻止他们访问这些共享.我应该使用C#来实现.
有人可以帮我吗?
!!
Yoons
When the users login to their workstation (XP/VISTA) in windows server 2003 network, there will be number of network shares available in the network for them with full permission. I need to prevent them to access those shares. I should implement this using C#.
Could anyone help me on this?
Ta!
Yoons
推荐答案
如果您正在运行Win 2003网络,为什么要重新发明轮子?
您应该设置Active Directory并通过用户帐户控制对共享的访问,这更容易,更简单并且已内置在系统中.
If you''re running a Win 2003 network why would you want to re-invent the wheel?
You should setup Active Directory and control access to shares through the user accounts, this is much easier, simpler and it is built into the system.
这篇关于以编程方式控制对网络共享的访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文