- Dim users,response
-
- Set users = GetObject("winmgmts:").Instancesof("Win32_useraccount")
-
- For Each user In users
-
- response = MsgBox("是否对帐号:"&user.name&" 进行设置?",vbYesNo,"请选择")
- If response = vbyes Then
- user.PasswordExpires = False
- user.Put_()
- End If
-
- Next
复制代码
|