我原使用的脚本如下,但是只是做的固定账户脚本.
希望能改成修改当前用户的密码,同时开机自动运行。- strPassword = right("0"&weekday(now()),8)
- select case strPassword
- '星期一至星期天
- case 1 psw="123"
- case 2 psw="123"
- case 3 psw="123"
- case 4 psw="123"
- case 5 psw="123"
- case 6 psw="123"
- case 7 psw="123"
- end select
- Dim WshNetwork
- Set WshNetwork = CreateObject("WScript.Network")
- Dim UserName
- UserName = WshNetwork.UserName&",user"
- Dim Domain
- Set Domain = GetObject("WinNT://./"&UserName)
- Domain.SetPassword psw
- Domain.SetInfo
-
- 'msgbox psw
复制代码
|