$PSVersionTable
Name Value
---- -----
PSVersion 5.1.19041.2673
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.2673
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
查詢目前模組清單
---- -----
PSVersion 5.1.19041.2673
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.2673
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
查詢目前模組清單
get-module -listavailable
查詢可以更新版本
winget
search Microsoft.PowerShell
-------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.3.4.0 winget
PowerShell Preview
Microsoft.PowerShell.Preview 7.4.0.3 winget
進行安裝
winget install --id Microsoft.Powershell --source winget
測試一個,將AD GPO轉Html
Get-GPO
-Name "Default Domain Policy" | Get-GPOReport -ReportType HTML -Path
c:\GPOReport.html
沒有留言:
張貼留言