亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

PowerShell添加本地賬戶腳本分享

 更新時(shí)間:2015年03月25日 09:21:58   投稿:junjie  
這篇文章主要介紹了PowerShell添加本地賬戶腳本分享,本文直接給出實(shí)現(xiàn)代碼,需要的朋友可以參考下

腳本源碼:

復(fù)制代碼 代碼如下:

$nt=[adsi]"WinNT://localhost"
$user=$nt.create("user","test")
$user.setpassword("password")
$user.setinfo()
Get-WmiObject -Class Win32_UserAccount -Filter "name = 'test'" | Set-WmiInstance -Argument @{PasswordExpires = 0}
$group=[ADSI]"WinNT://localhost/administrators,group"
$group.add("WinNT://localhost/test")

相關(guān)文章

最新評(píng)論