跳到主要內容

發表文章

HP Smart array CLI commands

  HP Smart array CLI commands Show configuration /opt/hp/hpssacli/bin/hpssacli ctrl all show config Controller status /opt/hp/hpssacli/bin/hpssacli ctrl all show status Show detailed controller information for all controllers /opt/hp/hpssacli/bin/hpssacli ctrl all show detail Show detailed controller information for controller in slot 0 /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 show detail Rescan for New Devices /opt/hp/hpssacli/bin/hpssacli rescan Physical disk status /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show status Show detailed physical disk information /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show detail Logical disk status /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld all show status View Detailed Logical Drive Status /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 show Create New RAID 0 Logical Drive /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0 Create New RAID 1 Logical Drive /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create t...

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

Edgd / Chrome Windows 整合式驗證 (WIA)

Ref:  Security Zones in Edge Ref:  使用者登入 Microsoft Edge 的方式 Ref:  Per-site configuration by policy Ref:  如何透過群組原則(GPO)將內部網站加入 近端內部網路 清單 Windows 整合式驗證 (WIA) Microsoft Edge 也支援在組織內部網路中針對使用瀏覽器進行其驗證的任何應用程式,進行驗證要求的 Windows 整合驗證。 所有版本的 Windows 10 和舊版 Windows 都支援這項功能。 根據 預設 ,Microsoft Edge 會使用 內部網路區域 作為 WIA 的 允許清單 。 透過群組原則(GPO),將 URL 加入 「區域清單」 內部網路區域(1) /  信任的網站區域(2) / 網際網路區域(3) / 受限制的網站區域(4) Ref:  Site to Zone Assignment List(指派網站到區域清單) 〔使用者設定〕→〔系統管理範本〕→〔Windows 元件〕→〔Internet Explorer〕→〔網際網路控制台〕→〔安全性畫面〕→〔指派網站到區域清單〕(Site to Zone Assignment List)

Windows 聲音輸出到多個裝置 (利用Virtual Audio Cable)

Windows 無法將聲音同時輸出到多個裝置,想要達到這個目錄,可以使用Virtual Audio Cable (VAC),請到 VAC 的官網去下載 https://vac.muzychenko.net/en/。 下載安裝後,會多了一個 『Line 1 (Virtual Audio Cable)』音訊裝置,並預設為預設撥放裝置,如下圖:。 再來開啟 『Audio Repeater』,Wave In 選擇 「Line 1」,Wave In 選擇你要輸出的裝置1。 之後要輸出的裝置,重複上個步驟(也就是想同時輸出幾個裝置,就開執行幾個『Audio Repeater』。