2021年6月29日 星期二

[AD] Powershell 實用指令

Powershell


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

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



沒有留言:

如何查看主機跟NAS連線的指令?

windows的VM或主機可以下 net use 或是 Get-SmbConnection 看有沒有關於連線到NAS storage的資訊. ================================================ 對於linux VM或主機可以下 net...