补充两个方法:- '用下面的users代替你原来的users
- Set users = GetObject("winmgmts:").ExecQuery("select * from Win32_UserAccount where name='broly'")
复制代码
- UserDomain = CreateObject("WScript.Network").UserDomain
- set user = GetObject("winmgmts:Win32_UserAccount.domain='"&UserDomain&"',name='broly'")
- user.PasswordExpires = False
- user.Put_()
复制代码
|