Skip to content

Instantly share code, notes, and snippets.

@stknohg
Last active June 29, 2021 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stknohg/0886ff2349e186e17bf6b87601c9e579 to your computer and use it in GitHub Desktop.
Save stknohg/0886ff2349e186e17bf6b87601c9e579 to your computer and use it in GitHub Desktop.
[WIP] Windows 11のWindows PowerShell周りのメモ

注意事項

このGistの内容は随時更新します。

  • 2021/6/29 時点 : Windows 11 Pro 21H2 (Build 22000.51)
    • Insider preview から更新

バージョン情報

PS C:\> $PSVersionTable | sort Name

Name                           Value
----                           -----
PSVersion                      5.1.22000.1
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22000.1
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
  • PSReadLine は Ver.2.0.0 (ベータ無し)
  • Pester は Ver.3.4.0

PowerShell 2.0

従来どおりPowerShell 2.0は初期状態で無効になっているが、PowerShell 2.0の機能自体はインストール済みであり排除されていない。

Windows PowerShell ISE

ISEはまだあった。

モジュールの更新点 (Windows 10 21H1 との diff)

Appx

  • WIP: Cmdlet追加など

ConfigCI

  • WIP: Cmdletのパラメーター更新

ConfigDefender

  • モジュール追加
PS C:\> Get-Command -Module ConfigDefender

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        Add-MpPreference                                   1.0        ConfigDefender
Function        Get-MpComputerStatus                               1.0        ConfigDefender
Function        Get-MpPreference                                   1.0        ConfigDefender
Function        Get-MpThreat                                       1.0        ConfigDefender
Function        Get-MpThreatCatalog                                1.0        ConfigDefender
Function        Get-MpThreatDetection                              1.0        ConfigDefender
Function        Remove-MpPreference                                1.0        ConfigDefender
Function        Remove-MpThreat                                    1.0        ConfigDefender
Function        Set-MpPreference                                   1.0        ConfigDefender
Function        Start-MpScan                                       1.0        ConfigDefender
Function        Start-MpWDOScan                                    1.0        ConfigDefender
Function        Update-MpSignature                                 1.0        ConfigDefender

Defender

  • WIP: Cmdletのパラメーター更新

DeliveryOptimization

  • Ver.1.0.2 → 1.0.3
  • WIP: Cmdlet追加など

Dism

  • WIP: Cmdlet追加など

DnsClient

  • WIP: Cmdlet追加など

Get-NewView

  • 名前これで正しいのか?
  • Get-NewViewコマンドのみ登録されている
PS C:\> Get-Command -Module Get-NetView -All

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        Get-NetView                                        2021.3.... Get-NetView

International

  • Ver.2.0.0 → 2.1.0

Microsoft.Windows.Bcd.Cmdlets

  • モジュール追加

NetAdapter

  • Cmdlet体系ががっつり変わってるぽい

netsecurity

  • WIP: Cmdletのパラメーター更新

PersistentMemory

  • Cmdlet体系ががっつり変わってるぽい

PrintManagement

  • WIP: Cmdletのパラメーター更新

PSReadline

  • ベータ版でなくなりvi modeのパラメーターが増えてる

SmbShare

  • WIP: Cmdlet追加など

StartLayout

  • Ver.1.0.0.0 → 1.0.0.1

Storage

  • WIP: Cmdlet追加など

StorageBusCache

  • WIP: Cmdlet追加など

VMDirectStorage

  • モジュール追加
PS C:\> Get-Command -Module VMDirectStorage

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           Disable-PhysicalDiskIndication                     1.0.0.0    VMDirectStorage
Alias           Disable-StorageDiagnosticLog                       1.0.0.0    VMDirectStorage
Alias           Enable-PhysicalDiskIndication                      1.0.0.0    VMDirectStorage
Alias           Enable-StorageDiagnosticLog                        1.0.0.0    VMDirectStorage
Alias           Flush-Volume                                       1.0.0.0    VMDirectStorage
Alias           Get-DiskSNV                                        1.0.0.0    VMDirectStorage
Alias           Get-PhysicalDiskSNV                                1.0.0.0    VMDirectStorage
Alias           Get-StorageEnclosureSNV                            1.0.0.0    VMDirectStorage
Alias           Initialize-Volume                                  1.0.0.0    VMDirectStorage
Alias           Write-FileSystemCache                              1.0.0.0    VMDirectStorage
Function        Add-VMDirectVirtualDisk                            1.0.0.0    VMDirectStorage
Function        Get-VMDirectVirtualDisk                            1.0.0.0    VMDirectStorage
Function        Remove-VMDirectVirtualDisk                         1.0.0.0    VMDirectStorage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment