跳到主要內容

發表文章

目前顯示的是 2023的文章

Domain User 無法使用 Windows Hello 等生物辨識登入

 Doamin User 預設無法使用 生物/指紋、Windows Hello...等辨識功能登入網域。 使用群組原則:     【電腦設定】→ 【原則】→【系統管理範本】→【Windows 元件】→【生物辨識技術】→【】      【Computer Configuration】→【Polices】→【Administrative Templates】→【Windows Components】→【Biometrics】 允許使用生物識別                                → 允許 允許使用者使用生物識別登入           →    允許(本機使用者) (Allow users to log on using biometrics) 允許網域使用者使用生物識別登入      →    不允許 (Allow domain users to log on using biometrics)

Windows 新增電源模式

Ref:  How to enable Ultimate Performance mode in Windows 10 Ref:  如何在Win10裡透過Powercfg命令列調整電源選項  powercfg -duplicatescheme {GUID} 電源配置 GUID: 381b4222-f694-41f0-9685-ff5bb260df2e  (平衡) 電源配置 GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c  (高效能) 電源配置 GUID: a1841308-3541-4fab-bc81-f71556f20b4a  (省電) 電源配置 GUID: e9a42b02-d5df-448d-aa00-03f14749eb61  (終極效能)

Get AD account Password ExprityTime

Way1: net user %username% /domain Way2:(Powershell) Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} –Properties "Name", "msDS-UserPasswordExpiryTimeComputed" | Sort-Object -Property "msDS-UserPasswordExpiryTimeComputed" | Select -Property "Name",@{Name="ExpiryDate";Expression={[datetime]::FromFileTime($_."msDS-UserPasswordExpiryTimeComputed")}} !! 待加強 1. Filter by Day 2. Send-MailMessage -from "Helpdesk <helpdesk@noreply.com>" -to "$firstname $surname<$user.mail>" -subject "Password Expiration in $diff days" -smtp "smtpserver" -body $body

Domain Control Time sync on Hyper-V

基本上,現在低負載 SERVER,大都灌在 VM 上。而 Guest OS 預設會與 VM Host 做時間同步。 VM Host 如果有加入網域,就會跟 Logon DC 同步時間。 然而,一般的 DC / PDC 也都會灌在 VM 上,這樣時間同步就變成一個 Dead Loop。 為避免此情形,必須將 DC 與 VM 的時間同步關閉,並設定 DC 的 NTP Server。 以 Hyper-V 為例: 1. 關閉 Guset OS 與 Hyper-V  的時間同步 2. 將 DC / PDC 的 NTP 設為 time.windows.com w32tm /config /manualpeerlist:time.windows.com /syncfromflags:manual /reliable:yes /update Restart-Service w32time