设置本地用户帐户的过期日期

[ 2005/07/09 09:13 | by gOxiA ]
| |

描述

绑定到名为 atl-win2k-01 的计算机上的本地用户帐户,并且将帐号配置为在 2003 年 3 月 1 日过期。

有关使用本地用户帐户的详细信息,请单击此处


支持平台

Windows XP

Windows Server 2003

Windows 2000

Windows NT 4.0

是,需要安装Active Directory Client Extensions

Windows 98

是,需要安装Active Directory Client Extensions


脚本代码

strComputer = "atl-win2k-01"
Set objUser = GetObject("WinNT:// " & strComputer & "/kenmyer ")
objUser.AccountExpirationDate = #03/01/2003#
objUser.SetInfo

PowerShell & Scripts | 评论(0) | 引用(0) | 阅读(4716)
发表评论
昵称 [注册]
密码 游客无需密码
网址
电邮
打开HTML 打开UBB 打开表情 隐藏 记住我