修改本地用户属性
powershell吧
全部回复
仅看楼主
level 9
yuchanbest 楼主
我想通过powershell修改本地用户的属性:
$LocalAccount=Get-WmiObject -Query "select passwordexpires from win32_useraccount where name ='abc'"
$LocalAccount|get-member
这样会输出
PasswordExpires Property System.Boolean PasswordExpires {get;set;}
我如何修改这个passwordexpires 的属性,从$true 到$false ?
谢谢!
2014年07月22日 00点07分 1
1