今天终于有空安装一台CentOS虚拟机来测试PowerShell,Github上给出的安装包地址受限于网络不稳定因素,经常安装会中断,于是我先将安装包下载到Windows机器上,然后共享挂载给Linux,再安装。
Windows主机与Linux虚拟机之间共享文件,这里略过,这里分享出
powershell-6.0.0_alpha.12-1.el7.centos.x86_64.rmp 安装包的地址:
GitHub:powershell-6.0.0_alpha.13-1.el7.centos.x86_64.rpm
百度云盘: https://pan.baidu.com/s/1qYctNOw 密码: k1ug
下面贴出具体的安装输出:
[root@localhost ~]# yum install /mnt/Windows/powershell-6.0.0_alpha.12-1.el7.centos.x86_64.rpm
Loaded plugins: fastestmirror
Examining /mnt/Windows/powershell-6.0.0_alpha.12-1.el7.centos.x86_64.rpm: powershell-6.0.0_alpha.12-1.el7.centos.x86_64
Marking /mnt/Windows/powershell-6.0.0_alpha.12-1.el7.centos.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package powershell.x86_64 0:6.0.0_alpha.12-1.el7.centos will be installed
--> Processing Dependency: libicu for package: powershell-6.0.0_alpha.12-1.el7.centos.x86_64
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
--> Processing Dependency: libunwind for package: powershell-6.0.0_alpha.12-1.el7.centos.x86_64
--> Processing Dependency: uuid for package: powershell-6.0.0_alpha.12-1.el7.centos.x86_64
--> Running transaction check
---> Package libicu.x86_64 0:50.1.2-15.el7 will be installed
---> Package libunwind.x86_64 2:1.1-5.el7_2.2 will be installed
---> Package uuid.x86_64 0:1.6.2-26.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
powershell x86_64 6.0.0_alpha.12-1.el7.centos /powershell-6.0.0_alpha.12-1.el7.centos.x86_64
121 M
Installing for dependencies:
libicu x86_64 50.1.2-15.el7 base 6.9 M
libunwind x86_64 2:1.1-5.el7_2.2 updates 56 k
uuid x86_64 1.6.2-26.el7 base 55 k
Transaction Summary
================================================================================
Install 1 Package (+3 Dependent packages)
Total size: 128 M
Total download size: 7.0 M
Installed size: 146 M
Downloading packages:
(1/3): libunwind-1.1-5.el7_2.2.x86_64.rpm | 56 kB 00:00
(2/3): uuid-1.6.2-26.el7.x86_64.rpm | 55 kB 00:00
(3/3): libicu-50.1.2-15.el7.x86_64.rpm | 6.9 MB 00:02
--------------------------------------------------------------------------------
Total 3.2 MB/s | 7.0 MB 00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:libunwind-1.1-5.el7_2.2.x86_64 1/4
Installing : uuid-1.6.2-26.el7.x86_64 2/4
Installing : libicu-50.1.2-15.el7.x86_64 3/4
Installing : powershell-6.0.0_alpha.12-1.el7.centos.x86_64 4/4
Verifying : powershell-6.0.0_alpha.12-1.el7.centos.x86_64 1/4
Verifying : libicu-50.1.2-15.el7.x86_64 2/4
Verifying : uuid-1.6.2-26.el7.x86_64 3/4
Verifying : 2:libunwind-1.1-5.el7_2.2.x86_64 4/4
Installed:
powershell.x86_64 0:6.0.0_alpha.12-1.el7.centos
Dependency Installed:
libicu.x86_64 0:50.1.2-15.el7 libunwind.x86_64 2:1.1-5.el7_2.2
uuid.x86_64 0:1.6.2-26.el7
Complete!
安装结束后在Linux控制台输入PowerShell,即可启动PowerShell
[root@localhost ~]# powershell PowerShell Copyright (C) 2016 Microsoft Corporation. All rights reserved. PS /root>
然后我们着重验证一下版本信息:
PS /root> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.12
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
还有自动化变量:
PS /root> Get-Variable
Name Value
---- -----
? True
^
$
args {}
ConfirmPreference High
ConsoleFileName
DebugPreference SilentlyContinue
Error {}
ErrorActionPreference Continue
ErrorView NormalView
ExecutionContext System.Management.Automation.EngineIntrinsics
false False
FormatEnumerationLimit 4
HOME /root
Host System.Management.Automation.Internal.Host.InternalHost
InformationPreference SilentlyContinue
input System.Collections.ArrayList+ArrayListEnumeratorSimple
IsCoreCLR True
IsLinux True
IsOSX False
IsWindows False
MaximumHistoryCount 4096
MyInvocation System.Management.Automation.InvocationInfo
NestedPromptLevel 0
null
OutputEncoding System.Text.ASCIIEncoding
PID 2532
PROFILE /root/.config/powershell/Microsoft.PowerShell_profile.ps1
ProgressPreference Continue
PSBoundParameters {}
PSCommandPath
PSCulture en-US
PSDefaultParameterValues {}
PSEdition Core
PSEmailServer
PSHOME /opt/microsoft/powershell/6.0.0-alpha.12
PSScriptRoot
PSSessionApplicationName wsman
PSSessionConfigurationName http://schemas.microsoft.com/powershell/Microsoft.PowerShell
PSSessionOption System.Management.Automation.Remoting.PSSessionOption
PSUICulture en-US
PSVersionTable {PSVersion, PSEdition, PSCompatibleVersions, BuildVersion...}
PWD /root
ShellId Microsoft.PowerShell
StackTrace
true True
VerbosePreference SilentlyContinue
WarningPreference Continue
WhatIfPreference False
最重要的当然是查看支持的PowerShell命令。那就用PowerShell生成一张Linux PowerShell命令表,命令如下:
Get-command | Sort-Object NounName | select Name,CommandType,Source | ConvertTo-Html
Linux上的PowerShell命令一览表
| Name | CommandType | Source |
|---|---|---|
| Add-NodeKeys | Function | PSDesiredStateConfiguration |
| Install-Package | Cmdlet | PackageManagement |
| Import-PSSession | Cmdlet | Microsoft.PowerShell.Utility |
| Import-PackageProvider | Cmdlet | PackageManagement |
| Import-Module | Cmdlet | Microsoft.PowerShell.Core |
| Import-LocalizedData | Cmdlet | Microsoft.PowerShell.Utility |
| Import-Csv | Cmdlet | Microsoft.PowerShell.Utility |
| Import-Clixml | Cmdlet | Microsoft.PowerShell.Utility |
| Import-Alias | Cmdlet | Microsoft.PowerShell.Utility |
| Group-Object | Cmdlet | Microsoft.PowerShell.Utility |
| Get-Variable | Cmdlet | Microsoft.PowerShell.Utility |
| Get-Unique | Cmdlet | Microsoft.PowerShell.Utility |
| Get-UICulture | Cmdlet | Microsoft.PowerShell.Utility |
| Get-TypeData | Cmdlet | Microsoft.PowerShell.Utility |
| Get-TraceSource | Cmdlet | Microsoft.PowerShell.Utility |
| Get-RunspaceDebug | Cmdlet | Microsoft.PowerShell.Utility |
| Get-Runspace | Cmdlet | Microsoft.PowerShell.Utility |
| Get-Random | Cmdlet | Microsoft.PowerShell.Utility |
| Install-PackageProvider | Cmdlet | PackageManagement |
| Invoke-Command | Cmdlet | Microsoft.PowerShell.Core |
| Invoke-Expression | Cmdlet | Microsoft.PowerShell.Utility |
| Invoke-History | Cmdlet | Microsoft.PowerShell.Core |
| New-PSSession | Cmdlet | Microsoft.PowerShell.Core |
| New-PSRoleCapabilityFile | Cmdlet | Microsoft.PowerShell.Core |
| New-PSDrive | Cmdlet | Microsoft.PowerShell.Management |
| New-Object | Cmdlet | Microsoft.PowerShell.Utility |
| New-ModuleManifest | Cmdlet | Microsoft.PowerShell.Core |
| New-Module | Cmdlet | Microsoft.PowerShell.Core |
| New-ItemProperty | Cmdlet | Microsoft.PowerShell.Management |
| New-Item | Cmdlet | Microsoft.PowerShell.Management |
| Get-PSSessionConfiguration | Cmdlet | Microsoft.PowerShell.Core |
| New-Event | Cmdlet | Microsoft.PowerShell.Utility |
| Move-ItemProperty | Cmdlet | Microsoft.PowerShell.Management |
| Move-Item | Cmdlet | Microsoft.PowerShell.Management |
| Measure-Object | Cmdlet | Microsoft.PowerShell.Utility |
| Measure-Command | Cmdlet | Microsoft.PowerShell.Utility |
| Join-Path | Cmdlet | Microsoft.PowerShell.Management |
| Invoke-WebRequest | Cmdlet | Microsoft.PowerShell.Utility |
| Invoke-RestMethod | Cmdlet | Microsoft.PowerShell.Utility |
| Invoke-Item | Cmdlet | Microsoft.PowerShell.Management |
| New-Alias | Cmdlet | Microsoft.PowerShell.Utility |
| Get-PSSessionCapability | Cmdlet | Microsoft.PowerShell.Core |
| Get-PSSession | Cmdlet | Microsoft.PowerShell.Core |
| Get-PSReadlineOption | Cmdlet | PSReadLine |
| Get-EventSubscriber | Cmdlet | Microsoft.PowerShell.Utility |
| Get-Event | Cmdlet | Microsoft.PowerShell.Utility |
| Get-Date | Cmdlet | Microsoft.PowerShell.Utility |
| Get-Culture | Cmdlet | Microsoft.PowerShell.Utility |
| Get-Credential | Cmdlet | Microsoft.PowerShell.Security |
| Get-Content | Cmdlet | Microsoft.PowerShell.Management |
| Get-Command | Cmdlet | Microsoft.PowerShell.Core |
| Get-ChildItem | Cmdlet | Microsoft.PowerShell.Management |
| Get-ExecutionPolicy | Cmdlet | Microsoft.PowerShell.Security |
| Get-Alias | Cmdlet | Microsoft.PowerShell.Utility |
| Format-Table | Cmdlet | Microsoft.PowerShell.Utility |
| Format-List | Cmdlet | Microsoft.PowerShell.Utility |
| Format-Custom | Cmdlet | Microsoft.PowerShell.Utility |
| ForEach-Object | Cmdlet | Microsoft.PowerShell.Core |
| Find-PackageProvider | Cmdlet | PackageManagement |
| Find-Package | Cmdlet | PackageManagement |
| Export-PSSession | Cmdlet | Microsoft.PowerShell.Utility |
| Export-ModuleMember | Cmdlet | Microsoft.PowerShell.Core |
| Format-Wide | Cmdlet | Microsoft.PowerShell.Utility |
| New-PSSessionConfigurationFile | Cmdlet | Microsoft.PowerShell.Core |
| Get-FormatData | Cmdlet | Microsoft.PowerShell.Utility |
| Get-History | Cmdlet | Microsoft.PowerShell.Core |
| Get-PSReadlineKeyHandler | Cmdlet | PSReadLine |
| Get-PSProvider | Cmdlet | Microsoft.PowerShell.Management |
| Get-PSHostProcessInfo | Cmdlet | Microsoft.PowerShell.Core |
| Get-PSDrive | Cmdlet | Microsoft.PowerShell.Management |
| Get-PSCallStack | Cmdlet | Microsoft.PowerShell.Utility |
| Get-PSBreakpoint | Cmdlet | Microsoft.PowerShell.Utility |
| Get-Process | Cmdlet | Microsoft.PowerShell.Management |
| Get-PackageSource | Cmdlet | PackageManagement |
| Get-Help | Cmdlet | Microsoft.PowerShell.Core |
| Get-PackageProvider | Cmdlet | PackageManagement |
| Get-Module | Cmdlet | Microsoft.PowerShell.Core |
| Get-Member | Cmdlet | Microsoft.PowerShell.Utility |
| Get-Location | Cmdlet | Microsoft.PowerShell.Management |
| Get-Job | Cmdlet | Microsoft.PowerShell.Core |
| Get-ItemPropertyValue | Cmdlet | Microsoft.PowerShell.Management |
| Get-ItemProperty | Cmdlet | Microsoft.PowerShell.Management |
| Get-Item | Cmdlet | Microsoft.PowerShell.Management |
| Get-Host | Cmdlet | Microsoft.PowerShell.Utility |
| Get-Package | Cmdlet | PackageManagement |
| Export-FormatData | Cmdlet | Microsoft.PowerShell.Utility |
| New-PSSessionOption | Cmdlet | Microsoft.PowerShell.Core |
| New-TimeSpan | Cmdlet | Microsoft.PowerShell.Utility |
| Tee-Object | Cmdlet | Microsoft.PowerShell.Utility |
| Stop-Transcript | Cmdlet | Microsoft.PowerShell.Host |
| Stop-Process | Cmdlet | Microsoft.PowerShell.Management |
| Stop-Job | Cmdlet | Microsoft.PowerShell.Core |
| Start-Transcript | Cmdlet | Microsoft.PowerShell.Host |
| Start-Sleep | Cmdlet | Microsoft.PowerShell.Utility |
| Start-Process | Cmdlet | Microsoft.PowerShell.Management |
| Start-Job | Cmdlet | Microsoft.PowerShell.Core |
| Split-Path | Cmdlet | Microsoft.PowerShell.Management |
| Sort-Object | Cmdlet | Microsoft.PowerShell.Utility |
| Set-Variable | Cmdlet | Microsoft.PowerShell.Utility |
| Set-TraceSource | Cmdlet | Microsoft.PowerShell.Utility |
| Set-StrictMode | Cmdlet | Microsoft.PowerShell.Core |
| Set-PSSessionConfiguration | Cmdlet | Microsoft.PowerShell.Core |
| Set-PSReadlineOption | Cmdlet | PSReadLine |
| Set-PSReadlineKeyHandler | Cmdlet | PSReadLine |
| Set-PSDebug | Cmdlet | Microsoft.PowerShell.Core |
| Test-ModuleManifest | Cmdlet | Microsoft.PowerShell.Core |
| Test-Path | Cmdlet | Microsoft.PowerShell.Management |
| Test-PSSessionConfigurationFile | Cmdlet | Microsoft.PowerShell.Core |
| Trace-Command | Cmdlet | Microsoft.PowerShell.Utility |
| Write-Progress | Cmdlet | Microsoft.PowerShell.Utility |
| Write-Output | Cmdlet | Microsoft.PowerShell.Utility |
| Write-Information | Cmdlet | Microsoft.PowerShell.Utility |
| Write-Host | Cmdlet | Microsoft.PowerShell.Utility |
| Write-Error | Cmdlet | Microsoft.PowerShell.Utility |
| Write-Debug | Cmdlet | Microsoft.PowerShell.Utility |
| Where-Object | Cmdlet | Microsoft.PowerShell.Core |
| Wait-Process | Cmdlet | Microsoft.PowerShell.Management |
| Set-PSBreakpoint | Cmdlet | Microsoft.PowerShell.Utility |
| Wait-Job | Cmdlet | Microsoft.PowerShell.Core |
| Wait-Debugger | Cmdlet | Microsoft.PowerShell.Utility |
| Update-TypeData | Cmdlet | Microsoft.PowerShell.Utility |
| Update-Help | Cmdlet | Microsoft.PowerShell.Core |
| Update-FormatData | Cmdlet | Microsoft.PowerShell.Utility |
| Unregister-PSSessionConfiguration | Cmdlet | Microsoft.PowerShell.Core |
| Unregister-PackageSource | Cmdlet | PackageManagement |
| Unregister-Event | Cmdlet | Microsoft.PowerShell.Utility |
| Uninstall-Package | Cmdlet | PackageManagement |
| Wait-Event | Cmdlet | Microsoft.PowerShell.Utility |
| Set-PackageSource | Cmdlet | PackageManagement |
| Set-Location | Cmdlet | Microsoft.PowerShell.Management |
| Set-ItemProperty | Cmdlet | Microsoft.PowerShell.Management |
| Remove-Item | Cmdlet | Microsoft.PowerShell.Management |
| Remove-Event | Cmdlet | Microsoft.PowerShell.Utility |
| Register-PSSessionConfiguration | Cmdlet | Microsoft.PowerShell.Core |
| Register-PackageSource | Cmdlet | PackageManagement |
| Register-ObjectEvent | Cmdlet | Microsoft.PowerShell.Utility |
| Register-EngineEvent | Cmdlet | Microsoft.PowerShell.Utility |
| Register-ArgumentCompleter | Cmdlet | Microsoft.PowerShell.Core |
| Receive-PSSession | Cmdlet | Microsoft.PowerShell.Core |
| Remove-ItemProperty | Cmdlet | Microsoft.PowerShell.Management |
| Receive-Job | Cmdlet | Microsoft.PowerShell.Core |
| Push-Location | Cmdlet | Microsoft.PowerShell.Management |
| Pop-Location | Cmdlet | Microsoft.PowerShell.Management |
| Out-String | Cmdlet | Microsoft.PowerShell.Utility |
| Out-Null | Cmdlet | Microsoft.PowerShell.Core |
| Out-Host | Cmdlet | Microsoft.PowerShell.Core |
| Out-File | Cmdlet | Microsoft.PowerShell.Utility |
| Out-Default | Cmdlet | Microsoft.PowerShell.Core |
| New-Variable | Cmdlet | Microsoft.PowerShell.Utility |
| Read-Host | Cmdlet | Microsoft.PowerShell.Utility |
| New-PSTransportOption | Cmdlet | Microsoft.PowerShell.Core |
| Remove-Job | Cmdlet | Microsoft.PowerShell.Core |
| Remove-PSBreakpoint | Cmdlet | Microsoft.PowerShell.Utility |
| Set-Item | Cmdlet | Microsoft.PowerShell.Management |
| Set-ExecutionPolicy | Cmdlet | Microsoft.PowerShell.Security |
| Set-Date | Cmdlet | Microsoft.PowerShell.Utility |
| Set-Content | Cmdlet | Microsoft.PowerShell.Management |
| Set-Alias | Cmdlet | Microsoft.PowerShell.Utility |
| Select-Xml | Cmdlet | Microsoft.PowerShell.Utility |
| Select-String | Cmdlet | Microsoft.PowerShell.Utility |
| Select-Object | Cmdlet | Microsoft.PowerShell.Utility |
| Remove-Module | Cmdlet | Microsoft.PowerShell.Core |
| Save-Package | Cmdlet | PackageManagement |
| Resolve-Path | Cmdlet | Microsoft.PowerShell.Management |
| Rename-ItemProperty | Cmdlet | Microsoft.PowerShell.Management |
| Rename-Item | Cmdlet | Microsoft.PowerShell.Management |
| Remove-Variable | Cmdlet | Microsoft.PowerShell.Utility |
| Remove-TypeData | Cmdlet | Microsoft.PowerShell.Utility |
| Remove-PSSession | Cmdlet | Microsoft.PowerShell.Core |
| Remove-PSReadlineKeyHandler | Cmdlet | PSReadLine |
| Remove-PSDrive | Cmdlet | Microsoft.PowerShell.Management |
| Save-Help | Cmdlet | Microsoft.PowerShell.Core |
| Export-Csv | Cmdlet | Microsoft.PowerShell.Utility |
| Export-Clixml | Cmdlet | Microsoft.PowerShell.Utility |
| Export-Alias | Cmdlet | Microsoft.PowerShell.Utility |
| In | Function | Pester |
| ImportSystemModules | Function | |
| ImportClassResourcesFromModule | Function | PSDesiredStateConfiguration |
| ImportCimAndScriptKeywordsFromModule | Function | PSDesiredStateConfiguration |
| Import-PowerShellDataFile | Function | Microsoft.PowerShell.Utility |
| help | Function | |
| GetSyntax | Function | PSDesiredStateConfiguration |
| GetResourceFromKeyword | Function | PSDesiredStateConfiguration |
| GetPatterns | Function | PSDesiredStateConfiguration |
| GetModule | Function | PSDesiredStateConfiguration |
| GetImplementingModulePath | Function | PSDesiredStateConfiguration |
| GetCompositeResource | Function | PSDesiredStateConfiguration |
| Get-Verb | Function | |
| Get-TestDriveItem | Function | Pester |
| Get-PublicKeyFromStore | Function | PSDesiredStateConfiguration |
| Get-PublicKeyFromFile | Function | PSDesiredStateConfiguration |
| Get-PSTopConfigurationName | Function | PSDesiredStateConfiguration |
| Initialize-ConfigurationRuntimeState | Function | PSDesiredStateConfiguration |
| InModuleScope | Function | Pester |
| Install-Module | Function | PowerShellGet |
| Install-Script | Function | PowerShellGet |
| Publish-Module | Function | PowerShellGet |
| PSConsoleHostReadline | Function | PSReadLine |
| prompt | Function | |
| Pause | Function | |
| oss | Function | |
| Node | Function | PSDesiredStateConfiguration |
| New-TemporaryFile | Function | Microsoft.PowerShell.Utility |
| New-ScriptFileInfo | Function | PowerShellGet |
| Get-PSRepository | Function | PowerShellGet |
| New-Guid | Function | Microsoft.PowerShell.Utility |
| New-DscChecksum | Function | PSDesiredStateConfiguration |
| more | Function | |
| Mock | Function | Pester |
| It | Function | Pester |
| IsPatternMatched | Function | PSDesiredStateConfiguration |
| IsHiddenResource | Function | PSDesiredStateConfiguration |
| Invoke-Pester | Function | Pester |
| Invoke-Mock | Function | Pester |
| New-Fixture | Function | Pester |
| Get-PSMetaConfigurationProcessed | Function | PSDesiredStateConfiguration |
| Get-PSMetaConfigDocumentInstVersionInfo | Function | PSDesiredStateConfiguration |
| Get-PSDefaultConfigurationDocument | Function | PSDesiredStateConfiguration |
| Expand-Archive | Function | Microsoft.PowerShell.Archive |
| Describe | Function | Pester |
| ConvertTo-MOFInstance | Function | PSDesiredStateConfiguration |
| Context | Function | Pester |
| Configuration | Function | PSDesiredStateConfiguration |
| Compress-Archive | Function | Microsoft.PowerShell.Archive |
| Clear-Host | Function | |
| CheckResourceFound | Function | PSDesiredStateConfiguration |
| Find-Command | Function | PowerShellGet |
| cd\ | Function | |
| BeforeEach | Function | Pester |
| BeforeAll | Function | Pester |
| Assert-VerifiableMocks | Function | Pester |
| Assert-MockCalled | Function | Pester |
| AfterEach | Function | Pester |
| AfterAll | Function | Pester |
| AddDscResourcePropertyFromMetadata | Function | PSDesiredStateConfiguration |
| AddDscResourceProperty | Function | PSDesiredStateConfiguration |
| cd.. | Function | |
| Publish-Script | Function | PowerShellGet |
| Find-DscResource | Function | PowerShellGet |
| Find-RoleCapability | Function | PowerShellGet |
| Get-PSCurrentConfigurationNode | Function | PSDesiredStateConfiguration |
| Get-PositionInfo | Function | PSDesiredStateConfiguration |
| Get-MofInstanceText | Function | PSDesiredStateConfiguration |
| Get-MofInstanceName | Function | PSDesiredStateConfiguration |
| Get-MockDynamicParameters | Function | Pester |
| Get-InstalledScript | Function | PowerShellGet |
| Get-InstalledModule | Function | PowerShellGet |
| Get-InnerMostErrorRecord | Function | PSDesiredStateConfiguration |
| Find-Module | Function | PowerShellGet |
| Get-FileHash | Function | Microsoft.PowerShell.Utility |
| Get-DSCResourceModules | Function | PSDesiredStateConfiguration |
| Get-DscResource | Function | PSDesiredStateConfiguration |
| Get-ConfigurationErrorCount | Function | PSDesiredStateConfiguration |
| Get-ComplexResourceQualifier | Function | PSDesiredStateConfiguration |
| Get-CompatibleVersionAddtionaPropertiesStr | Function | PSDesiredStateConfiguration |
| Generate-VersionInfo | Function | PSDesiredStateConfiguration |
| Format-Hex | Function | Microsoft.PowerShell.Utility |
| Find-Script | Function | PowerShellGet |
| Get-EncryptedPassword | Function | PSDesiredStateConfiguration |
| ReadEnvironmentFile | Function | PSDesiredStateConfiguration |
| Register-PSRepository | Function | PowerShellGet |
| Save-Module | Function | PowerShellGet |
| ConvertFrom-SecureString | Cmdlet | Microsoft.PowerShell.Security |
| ConvertFrom-Json | Cmdlet | Microsoft.PowerShell.Utility |
| ConvertFrom-Csv | Cmdlet | Microsoft.PowerShell.Utility |
| Convert-Path | Cmdlet | Microsoft.PowerShell.Management |
| Connect-PSSession | Cmdlet | Microsoft.PowerShell.Core |
| Compare-Object | Cmdlet | Microsoft.PowerShell.Utility |
| Clear-Variable | Cmdlet | Microsoft.PowerShell.Utility |
| Clear-ItemProperty | Cmdlet | Microsoft.PowerShell.Management |
| ConvertFrom-StringData | Cmdlet | Microsoft.PowerShell.Utility |
| Clear-Item | Cmdlet | Microsoft.PowerShell.Management |
| Clear-Content | Cmdlet | Microsoft.PowerShell.Management |
| Add-Type | Cmdlet | Microsoft.PowerShell.Utility |
| Add-Member | Cmdlet | Microsoft.PowerShell.Utility |
| Add-History | Cmdlet | Microsoft.PowerShell.Core |
| Add-Content | Cmdlet | Microsoft.PowerShell.Management |
| WriteFile | Function | PSDesiredStateConfiguration |
| Write-NodeMOFFile | Function | PSDesiredStateConfiguration |
| Write-MetaConfigFile | Function | PSDesiredStateConfiguration |
| Clear-History | Cmdlet | Microsoft.PowerShell.Core |
| Write-Log | Function | PSDesiredStateConfiguration |
| ConvertTo-Csv | Cmdlet | Microsoft.PowerShell.Utility |
| ConvertTo-Json | Cmdlet | Microsoft.PowerShell.Utility |
| Exit-PSSession | Cmdlet | Microsoft.PowerShell.Core |
| Exit-PSHostProcess | Cmdlet | Microsoft.PowerShell.Core |
| Enter-PSSession | Cmdlet | Microsoft.PowerShell.Core |
| Enter-PSHostProcess | Cmdlet | Microsoft.PowerShell.Core |
| Enable-RunspaceDebug | Cmdlet | Microsoft.PowerShell.Utility |
| Enable-PSSessionConfiguration | Cmdlet | Microsoft.PowerShell.Core |
| Enable-PSBreakpoint | Cmdlet | Microsoft.PowerShell.Utility |
| Disconnect-PSSession | Cmdlet | Microsoft.PowerShell.Core |
| ConvertTo-Html | Cmdlet | Microsoft.PowerShell.Utility |
| Disable-RunspaceDebug | Cmdlet | Microsoft.PowerShell.Utility |
| Disable-PSBreakpoint | Cmdlet | Microsoft.PowerShell.Utility |
| Debug-Runspace | Cmdlet | Microsoft.PowerShell.Utility |
| Debug-Process | Cmdlet | Microsoft.PowerShell.Management |
| Debug-Job | Cmdlet | Microsoft.PowerShell.Core |
| Copy-ItemProperty | Cmdlet | Microsoft.PowerShell.Management |
| Copy-Item | Cmdlet | Microsoft.PowerShell.Management |
| ConvertTo-Xml | Cmdlet | Microsoft.PowerShell.Utility |
| ConvertTo-SecureString | Cmdlet | Microsoft.PowerShell.Security |
| Disable-PSSessionConfiguration | Cmdlet | Microsoft.PowerShell.Core |
| Write-Verbose | Cmdlet | Microsoft.PowerShell.Utility |
| ValidateUpdate-ConfigurationData | Function | PSDesiredStateConfiguration |
| ValidateNodeResourceSource | Function | PSDesiredStateConfiguration |
| Test-ModuleReloadRequired | Function | PSDesiredStateConfiguration |
| Test-ConflictingResources | Function | PSDesiredStateConfiguration |
| TabExpansion2 | Function | |
| StrongConnect | Function | PSDesiredStateConfiguration |
| Should | Function | Pester |
| Setup | Function | Pester |
| Set-PSTopConfigurationName | Function | PSDesiredStateConfiguration |
| Set-PSRepository | Function | PowerShellGet |
| Test-MofInstanceText | Function | PSDesiredStateConfiguration |
| Set-PSMetaConfigVersionInfoV2 | Function | PSDesiredStateConfiguration |
| Set-PSDefaultConfigurationDocument | Function | PSDesiredStateConfiguration |
| Set-PSCurrentConfigurationNode | Function | PSDesiredStateConfiguration |
| Set-NodeResourceSource | Function | PSDesiredStateConfiguration |
| Set-NodeResources | Function | PSDesiredStateConfiguration |
| Set-NodeManager | Function | PSDesiredStateConfiguration |
| Set-NodeExclusiveResources | Function | PSDesiredStateConfiguration |
| Set-DynamicParameterVariables | Function | Pester |
| Save-Script | Function | PowerShellGet |
| Set-PSMetaConfigDocInsProcessedBeforeMeta | Function | PSDesiredStateConfiguration |
| ValidateNoNameNodeResources | Function | PSDesiredStateConfiguration |
| Test-NodeManager | Function | PSDesiredStateConfiguration |
| Test-NodeResourceSource | Function | PSDesiredStateConfiguration |
| ValidateNodeResources | Function | PSDesiredStateConfiguration |
| ValidateNodeManager | Function | PSDesiredStateConfiguration |
| ValidateNodeExclusiveResources | Function | PSDesiredStateConfiguration |
| ValidateNoCircleInNodeResources | Function | PSDesiredStateConfiguration |
| Update-ScriptFileInfo | Function | PowerShellGet |
| Update-Script | Function | PowerShellGet |
| Update-ModuleVersion | Function | PSDesiredStateConfiguration |
| Update-ModuleManifest | Function | PowerShellGet |
| Test-NodeResources | Function | PSDesiredStateConfiguration |
| Update-Module | Function | PowerShellGet |
| Update-DependsOn | Function | PSDesiredStateConfiguration |
| Update-ConfigurationErrorCount | Function | PSDesiredStateConfiguration |
| Update-ConfigurationDocumentRef | Function | PSDesiredStateConfiguration |
| Unregister-PSRepository | Function | PowerShellGet |
| Uninstall-Script | Function | PowerShellGet |
| Uninstall-Module | Function | PowerShellGet |
| ThrowError | Function | PSDesiredStateConfiguration |
| Test-ScriptFileInfo | Function | PowerShellGet |
| Update-LocalConfigManager | Function | PSDesiredStateConfiguration |
| Write-Warning | Cmdlet | Microsoft.PowerShell.Utility |
本文链接: https://www.pstips.net/setup-powershell-on-centos.html
请尊重原作者和编辑的辛勤劳动,欢迎转载,并注明出处!
请尊重原作者和编辑的辛勤劳动,欢迎转载,并注明出处!

已经放出了MS直接的软件库 https://packages.microsoft.com
https://blogs.msdn.microsoft.com/powershell/2017/02/01/installing-latest-powershell-core-6-0-release-on-linux-just-got-easier/