如何修改本地安全策略?
哪位达人知道程序里用什么方法可以修改本地安全选项里的策略?
从”拒绝从网络访问这台计算机“下删除Guest。
还有如何用程序开启Guest帐号?
高手救救小弟吧,感激不尽!
问题点数:20、回复次数:4Top
1 楼ying_cai(鹰才)回复于 2006-03-20 13:17:33 得分 0
或者说有人知道vista下面有没有一个跟xp下面一样的家庭网络向导可以把这2个属性改掉的啊?谢谢谢谢咯Top
2 楼MonkWang(象写情书一样写程序)回复于 2006-03-20 14:30:23 得分 0
不会 学习!]
帮顶Top
3 楼jiangsheng(蒋晟.Net[MVP])回复于 2006-03-22 07:49:12 得分 20
You can modify local policies using WMI in Windows XP/2003.
No such support in Windows 2000 or earlier.
Reference
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/TechRef/4dca53ac-435b-45f7-9f5c-1cb77b7a6a39.mspx
You can also use DumpSec (http://www.somarsoft.com/) instead.
You can do a call-out to the Win2k resource kit tool ntrights.exe for this:
ntrights.exe +r SeServiceLogonRight -u username
How to Set Logon User Rights with the Ntrights.exe Utility
http://support.microsoft.com/?kbid=279664
How to: Determine NTRIGHTS Names and Meanings
http://support.microsoft.com/?kbid=245207
Ntrights.exe is also in the free Win2k3 resource kit (it very well might work
on Win2k as well):
Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57f...
(The kit will install on WinXP or later, but you can copy Ntrights.exe to a
Win2k computer and try it out if necessary)
Or you can create your own program, an account can also be granted the user
right programmatically through the Local Security Authority (LSA) API calls.
132958 How to Manage User Privileges Programmatically in Windows NT
http://support.microsoft.com/default.aspx?scid=kb;EN-US;132958Top
4 楼cnblackhawk(cnblackhawk)回复于 2006-04-03 09:59:34 得分 0
顶Top




