非域環境,windows創建本地賬戶時,有沒有像linux一樣的Account expires這樣的過期時間設定呢?
Last password change : Aug 07, 2016
Password expires : never
Password inactive : never
Account expires : Apr 11, 2019
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
uj5u.com熱心網友回復:
創建完用戶以后將“密碼永不過期”勾選去掉,然后勾選“用戶不能更改密碼”然后運行gpedit.msc修改密碼的有效期
uj5u.com熱心網友回復:
對于本地賬戶,需要使用powershell設定過期時間。Set objUser = GetObject("WinNT://atl-ws-01/kenmyer")
objUser.AccountExpirationDate = #03/01/2008#
objUser.SetInfo
可以參考這里
https://blogs.technet.microsoft.com/heyscriptingguy/2007/04/05/how-can-i-configure-an-expiration-date-for-a-local-user-account/
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/104074.html
下一篇:srv記錄問題
