码迷,mamicode.com
首页 > 其他好文 > 详细

vbs 修改Administrator帐号密码

时间:2017-06-26 22:27:45      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:sed   scripting   inf   isp   eve   shel   log   view   create   

 

技术分享
Dim WshShell, oExec
Set wshShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objInputFile = objFSO.OpenTextFile("D:\PS_Exchange\test\computer.txt",1)
do until objInputFile.AtEndofStream
strcomputer = objInputFile.ReadLine
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")
objUser.SetPassword "new password"
objUser.SetInfo
loop
View Code

 

vbs 修改Administrator帐号密码

标签:sed   scripting   inf   isp   eve   shel   log   view   create   

原文地址:http://www.cnblogs.com/scentpath/p/administratorpassword.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!