PowerShellを覚える気はある。たぶん覚えたら便利なんだろうと確信している。しかし公式Referenceがうんこ。超見にくい。おまけに日本語がない。英語のみ。まあScript言語のReferenceが英語のみとかありがちではあるが仮にもMSの仕事だぞ。そこでせめて自分用目次を作ることにした。ところでWindows10に搭載可能なPowerShellは5.1だが6とか7もある。しかしこれはPowerShell Coreとかいう新しいマルチプラットフォーム版の事。どうしようかと思ったが取り敢えず基本の5.1で覚える事にした。
各種コマンドレット目次
- CimCmdlets
- CIM(Common Information Model)を取り扱う。Windowsで言うとWMIの事。
- ISE
- ISE(統合開発環境)を操作する。ISEというのはVisual StudioとかEclipseみたいな奴の事。これはあれほど大掛かりじゃないけど。
- Microsoft.PowerShell.Archive
- 圧縮ファイルを扱うのだが今時zipのみ。
- Microsoft.PowerShell.Core
- PowerShellの基本機能を管理する。
- Add-History
- Add-PSSnapin
- Clear-History
- Clear-Host
- Connect-PSSession
- Debug-Job
- Disable-PSRemoting
- Disable-PSSessionConfiguration
- Disconnect-PSSession
- Enable-PSRemoting
- Enable-PSSessionConfiguration
- Enter-PSHostProcess
- Enter-PSSession
- Exit-PSHostProcess
- Exit-PSSession
- Export-Console
- Export-ModuleMember
- ForEach-Object
- Get-Command
- Get-Help
- Get-History
- Get-Job
- Get-Module
- Get-PSHostProcessInfo
- Get-PSSession
- Get-PSSessionCapability
- Get-PSSessionConfiguration
- Get-PSSnapin
- Get-Verb
- Import-Module
- Invoke-Command
- Invoke-History
- New-Module
- New-ModuleManifest
- New-PSRoleCapabilityFile
- New-PSSession
- New-PSSessionConfigurationFile
- New-PSSessionOption
- New-PSTransportOption
- Out-Default
- Out-Host
- Out-Null
- Receive-Job
- Receive-PSSession
- Register-ArgumentCompleter
- Register-PSSessionConfiguration
- Remove-Job
- Remove-Module
- Remove-PSSession
- Remove-PSSnapin
- Resume-Job
- Save-Help
- Set-PSDebug
- Set-PSSessionConfiguration
- Set-StrictMode
- Start-Job
- Stop-Job
- Suspend-Job
- Test-ModuleManifest
- Test-PSSessionConfigurationFile
- Unregister-PSSessionConfiguration
- Update-Help
- Wait-Job
- Where-Object
- Microsoft.PowerShell.Diagnostics
- パフォーマンスカウンタ及びイベント関連。
- Microsoft.PowerShell.Host
- ホストプログラムからのデータを管理する。
- Microsoft.PowerShell.LocalAccounts
- 読んで字のごとくローカルアカウント関連だが64bit上で動く32bit PowerShellでは動かないので注意する事。
- Microsoft.PowerShell.Management
- Windows管理関連。
- Add-Computer
- Add-Content
- Checkpoint-Computer
- Clear-Content
- Clear-EventLog
- Clear-Item
- Clear-ItemProperty
- Clear-RecycleBin
- Complete-Transaction
- Convert-Path
- Copy-Item
- Copy-ItemProperty
- Debug-Process
- Disable-ComputerRestore
- Enable-ComputerRestore
- Get-ChildItem
- Get-Clipboard
- Get-ComputerInfo
- Get-ComputerRestorePoint
- Get-Content
- Get-ControlPanelItem
- Get-EventLog
- Get-HotFix
- Get-Item
- Get-ItemProperty
- Get-ItemPropertyValue
- Get-Location
- Get-Process
- Get-PSDrive
- Get-PSProvider
- Get-Service
- Get-TimeZone
- Get-Transaction
- Get-WmiObject
- Invoke-Item
- Invoke-WmiMethod
- Join-Path
- Limit-EventLog
- Move-Item
- Move-ItemProperty
- New-EventLog
- New-Item
- New-ItemProperty
- New-PSDrive
- New-Service
- New-WebServiceProxy
- Pop-Location
- Push-Location
- Register-WmiEvent
- Remove-Computer
- Remove-EventLog
- Remove-Item
- Remove-ItemProperty
- Remove-PSDrive
- Remove-WmiObject
- Rename-Computer
- Rename-Item
- Rename-ItemProperty
- Reset-ComputerMachinePassword
- Resolve-Path
- Restart-Computer
- Restart-Service
- Restore-Computer
- Resume-Service
- Set-Clipboard
- Set-Content
- Set-Item
- Set-ItemProperty
- Set-Location
- Set-Service
- Set-TimeZone
- Set-WmiInstance
- Show-ControlPanelItem
- Show-EventLog
- Split-Path
- Start-Process
- Start-Service
- Start-Transaction
- Stop-Computer
- Stop-Process
- Stop-Service
- Suspend-Service
- Test-ComputerSecureChannel
- Test-Connection
- Test-Path
- Undo-Transaction
- Use-Transaction
- Wait-Process
- Write-EventLog
- Microsoft.PowerShell.ODataUtils
- OData(Open Data Protocol)関連だが今のところ登録されてあるのは1つだけ。
- Microsoft.PowerShell.Operation.Validation
- Operation Validationだから文法チェックとか書式チェックとかの仕様の妥当性検証の事。
- Microsoft.PowerShell.Security
- Windowsのセキュリティ機能関連。
- Microsoft.PowerShell.Utility
- PowerShellの基本機能を管理する。Coreと違ってこちらはどちらかというと便利アイテム。
- Add-Member
- Add-Type
- Clear-Variable
- Compare-Object
- Convert-String
- ConvertFrom-Csv
- ConvertFrom-Json
- ConvertFrom-SddlString
- ConvertFrom-String
- ConvertFrom-StringData
- ConvertTo-Csv
- ConvertTo-Html
- ConvertTo-Json
- ConvertTo-Xml
- Debug-Runspace
- Disable-PSBreakpoint
- Disable-RunspaceDebug
- Enable-PSBreakpoint
- Enable-RunspaceDebug
- Export-Alias
- Export-Clixml
- Export-Csv
- Export-FormatData
- Export-PSSession
- Format-Custom
- Format-Hex
- Format-List
- Format-Table
- Format-Wide
- Get-Alias
- Get-Culture
- Get-Date
- Get-Event
- Get-EventSubscriber
- Get-FileHash
- Get-FormatData
- Get-Host
- Get-Member
- Get-PSBreakpoint
- Get-PSCallStack
- Get-Random
- Get-Runspace
- Get-RunspaceDebug
- Get-TraceSource
- Get-TypeData
- Get-UICulture
- Get-Unique
- Get-Variable
- Group-Object
- Import-Alias
- Import-Clixml
- Import-Csv
- Import-LocalizedData
- Import-PowerShellDataFile
- Import-PSSession
- Invoke-Expression
- Invoke-RestMethod
- Invoke-WebRequest
- Measure-Command
- Measure-Object
- New-Alias
- New-Event
- New-Guid
- New-Object
- New-TemporaryFile
- New-TimeSpan
- New-Variable
- Out-File
- Out-GridView
- Out-Printer
- Out-String
- Read-Host
- Register-EngineEvent
- Register-ObjectEvent
- Remove-Event
- Remove-PSBreakpoint
- Remove-TypeData
- Remove-Variable
- Select-Object
- Select-String
- Select-Xml
- Send-MailMessage
- Set-Alias
- Set-Date
- Set-PSBreakpoint
- Set-TraceSource
- Set-Variable
- Show-Command
- Sort-Object
- Start-Sleep
- Tee-Object
- Trace-Command
- Unblock-File
- Unregister-Event
- Update-FormatData
- Update-List
- Update-TypeData
- Wait-Debugger
- Wait-Event
- Write-Debug
- Write-Error
- Write-Host
- Write-Information
- Write-Output
- Write-Progress
- Write-Verbose
- Write-Warning
- Microsoft.WsMan.Management
- WS-Managementプロトコル関連。ネットワーク管理。
- PackageManagement
- パッケージ管理関連。
- PowerShellGet
- モジュール、DSC(Desired State Configuration)リソース、JEA(Just Enough Administration)ロール及びScriptの管理。DSCはWindows設定の自動化、JEAは管理者権限管理の仕組み。
- Find-Command
- Find-DscResource
- Find-Module
- Find-RoleCapability
- Find-Script
- Get-InstalledModule
- Get-InstalledScript
- Get-PSRepository
- Install-Module
- Install-Script
- New-ScriptFileInfo
- Publish-Module
- Publish-Script
- Register-PSRepository
- Save-Module
- Save-Script
- Set-PSRepository
- Test-ScriptFileInfo
- Uninstall-Module
- Uninstall-Script
- Unregister-PSRepository
- Update-Module
- Update-ModuleManifest
- Update-Script
- Update-ScriptFileInfo
- PSDesiredStateConfiguration
- DSC(Desired State Configuration)リソース関連。
- Disable-DscDebug
- Enable-DscDebug
- Get-DscConfiguration
- Get-DscConfigurationStatus
- Get-DscLocalConfigurationManager
- Get-DscResource
- Invoke-DscResource
- New-DscChecksum
- Publish-DscConfiguration
- Remove-DscConfigurationDocument
- Restore-DscConfiguration
- Set-DscLocalConfigurationManager
- Start-DscConfiguration
- Stop-DscConfiguration
- Test-DscConfiguration
- Update-DscConfiguration
- PSDiagnostics
- ETW(Event Tracing for Windows)トレース関連。
- PSReadLine
- ReadLine環境を扱う。キーバインド等をReadLine風にカスタマイズ出来る…らしい。
- PSScheduledJob
- スケジュールされたジョブを扱う。
- Add-JobTrigger
- Disable-JobTrigger
- Disable-ScheduledJob
- Enable-JobTrigger
- Enable-ScheduledJob
- Get-JobTrigger
- Get-ScheduledJob
- Get-ScheduledJobOption
- New-JobTrigger
- New-ScheduledJobOption
- Register-ScheduledJob
- Remove-JobTrigger
- Set-JobTrigger
- Set-ScheduledJob
- Set-ScheduledJobOption
- Unregister-ScheduledJob
- PSWorkflow
- ワークフロー関連。
- PSWorkflowUtility
- ワークフロー関連。