惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Security Archives - TechRepublic
Security Archives - TechRepublic
W
WeLiveSecurity
Hacker News: Ask HN
Hacker News: Ask HN
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
H
Heimdal Security Blog
Help Net Security
Help Net Security
T
Troy Hunt's Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
N
News | PayPal Newsroom
TaoSecurity Blog
TaoSecurity Blog
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
G
GRAHAM CLULEY
S
Security @ Cisco Blogs
The Hacker News
The Hacker News
SecWiki News
SecWiki News
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Simon Willison's Weblog
Simon Willison's Weblog
C
Cisco Blogs
A
Arctic Wolf
S
Securelist
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
N
News and Events Feed by Topic
L
LINUX DO - 热门话题
P
Privacy & Cybersecurity Law Blog
Google Online Security Blog
Google Online Security Blog
T
The Exploit Database - CXSecurity.com
The Last Watchdog
The Last Watchdog
S
Secure Thoughts
Webroot Blog
Webroot Blog
Scott Helme
Scott Helme
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cisco Talos Blog
Cisco Talos Blog
S
Schneier on Security
Latest news
Latest news
T
Threatpost
K
Kaspersky official blog
Know Your Adversary
Know Your Adversary
Schneier on Security
Schneier on Security
I
Intezer
PCI Perspectives
PCI Perspectives
S
Security Affairs
爱范儿
爱范儿
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

博客园 - 北极熊,我来了!

C#获取类以及类下的方法(用于Asp.Net MVC) 使用JavaScript判断用户是否为手机设备 手机端页面自适应解决方案 Asp 邮件发送代码 js 日期字符串转换成日期类型,判断星期几 浅析a标签的4个伪类 C#读取Rss功能函数 《中文防止乱码的万能解决方案》 《小偷程序:自动获取百度天气预报》 Asp.NET使用HTML控件上传文件 《JS两级联动菜单学习全接触》 ADSI管理Windows2003系统帐号 中国频道空间使用Jmail发送邮件 《IP地址和数字之间转化的算法》 《单域名下整合动网、动易、OBlog程序》 JS读取XML数据 Asp.NET读取Excel数据 [XML系列]Flash读取XML数据 《省市联动功能菜单的实现》
活动目录ADSI实现添加系统帐号问题!!!
北极熊,我来了! · 2007-05-21 · via 博客园 - 北极熊,我来了!

     上篇文件地址:http://www.cnblogs.com/Apollo/archive/2007/05/20/753088.html,其实我想实现的功能很简单,在windows2003系统上面,我需要用ADSI创建一个系统帐号,帐号现在是可以创建起来,但是有些权限是有问题的问题现在还没有搞明白,有人做过这块的编程吗?

我的问题如下:
1、   const int UF_SCRIPT =   0x0001;  
        const int UF_ACCOUNTDISABLE = 0x0002;
        const int UF_HOMEDIR_REQUIRED = 0x0008;
        const int UF_LOCKOUT = 0x0010;
        const int UF_PASSWD_NOTREQD = 0x0020;
        const int UF_PASSWD_CANT_CHANGE = 0x0040;
        const int UF_TEMP_DUPLICATE_ACCOUNT = 0x0100;
        const int UF_NORMAL_ACCOUNT = 0x0200;
        const int UF_DONT_EXPIRE_PASSWD = 0x10000;
        const int UF_PASSWORD_EXPIRED = 0x800000;
这些0x0001分别代表什么数字?
//NewUser.Invoke("Put", "UserFlags", 66049);//密码永不过期
这个的代码是66049,0x0001又是什么呢?
2、                //NewUser.Properties["UserFlags"].Add(0x0002);//禁用登录帐号
                //NewUser.Properties["UserFlags"].Add(0x0040);//用户不能更改密码
这样的代码也是可以的,但怎么样通这个帐号设置成两个都满足呢?我在代码中做完了之后,发现其实就执行最后的一个代码。

3、 ADSI的SDK什么地方可以下的到,微软上面的那个地址好像有问题,根本就下不了。

谢谢大家的帮助,先放这里放些时间,知道的一定要帮下忙,很急。