2021年6月29日 星期二

[AD] Powershell 實用指令

Powershell


### 取的所有密碼過期的users ```

get-aduser -filter {Enabled -eq $True} -properties passwordExpired | where {$_.passwordExpired} | Select DistinguishedName



沒有留言:

使用NSSM將Nginx程式轉為Windows服務。(通用其他程式)

NSSM (Non-Sucking Service Manager) 的主要用途正如你所聽到的: 它可以把任何傳統的執行檔( .exe )或腳本( .bat 、 .cmd 、 .vbs 、 PowerShell 、 Python 等)封裝並註冊成 Windows 服務(Win...