看了文章 爱上PowerShell , 就想在CentOS 7上面试试PowerShell , 本文记录了在CentOS 7.2上安装Powershell 的过程。

首先我们要从github上下载最新的PowerShell 的rpm 包powershell-6.0.0_alpha.14-1.el7.centos.x86_64.rpm,安装方法的文档 https://github.com/PowerShell/PowerShell/blob/master/docs/installation/linux.md#centos-7 ,下面贴出具体的安装输出:

[geffzhang@dotnetoss2 ~]$ sudo yum install powershell-6.0.0_alpha.14-1.el7.centos.x86_64.rpm
[sudo] password for geffzhang:
Loaded plugins: fastestmirror, langpacks
Examining powershell-6.0.0_alpha.14-1.el7.centos.x86_64.rpm: powershell-6.0.0_alpha.14-1.el7.centos.x86_64
Marking powershell-6.0.0_alpha.14-1.el7.centos.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package powershell.x86_64 0:6.0.0_alpha.14-1.el7.centos will be installed
--> Processing Dependency: uuid for package: powershell-6.0.0_alpha.14-1.el7.centos.x86_64
base                                                     | 3.6 kB     00:00
extras                                                   | 3.4 kB     00:00
openlogic                                                | 1.3 kB     00:00
updates                                                  | 3.4 kB     00:00
Loading mirror speeds from cached hostfile
--> Running transaction check
---> 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.14-1.el7.centos
                           /powershell-6.0.0_alpha.14-1.el7.centos.x86_64 124 M
Installing for dependencies:
uuid x86_64 1.6.2-26.el7  base                                            55 k

Transaction Summary
================================================================================
Install  1 Package (+1 Dependent package)

Total size: 124 M
Total download size: 55 k
Installed size: 124 M
Is this ok [y/d/N]: y
Downloading packages:
uuid-1.6.2-26.el7.x86_64.rpm                               |  55 kB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : uuid-1.6.2-26.el7.x86_64                                     1/2
  Installing : powershell-6.0.0_alpha.14-1.el7.centos.x86_64                2/2
  Verifying  : uuid-1.6.2-26.el7.x86_64                                     1/2
  Verifying  : powershell-6.0.0_alpha.14-1.el7.centos.x86_64                2/2

Installed:
  powershell.x86_64 0:6.0.0_alpha.14-1.el7.centos

Dependency Installed:
  uuid.x86_64 0:1.6.2-26.el7

安装结束后在Linux控制台输入PowerShell,即可启动PowerShell:

[geffzhang@dotnetoss2 ~]$ powershell
PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS /home/geffzhang>
然后我们来看一下版本信息:

PS /home/geffzhang> $PSVersionTable
PowerShell
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.14
CLRVersion
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

PS /home/geffzhang> Get-Variable

Name                           Value
----                           -----
?                              True
^                              $PSVersionTable
$                              $PSVersionTable
args                           {}
ConfirmPreference              High
ConsoleFileName
DebugPreference                SilentlyContinue
Error                          {}
ErrorActionPreference          Continue
ErrorView                      NormalView
ExecutionContext               System.Management.Automation.EngineIntrinsics
false                          False
FormatEnumerationLimit         4
HOME                           /home/geffzhang
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                            1208
PROFILE                        /home/geffzhang/.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.14
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                            /home/geffzhang
ShellId                        Microsoft.PowerShell
StackTrace
true                           True
VerbosePreference              SilentlyContinue
WarningPreference              Continue
WhatIfPreference               False

PS /home/geffzhang>
我们看到了powershell 是用.NET Core来跑的。 我们下面再来看下PowerShell 在Linux上面都支持那些命令,运行下面的命令生成一张HTML表格:

PS /home/geffzhang> Get-command |Sort-Object NounName | select Name,CommandType,Source | ConvertTo-Html

Linux上的PowerShell命令一览表

Name CommandType Source
Add-NodeKeys Function PSDesiredStateConfiguration
Install-PackageProvider Cmdlet PackageManagement
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-Uptime 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
Invoke-Command Cmdlet Microsoft.PowerShell.Core
Invoke-Expression Cmdlet Microsoft.PowerShell.Utility
Invoke-History Cmdlet Microsoft.PowerShell.Core
Invoke-Item Cmdlet Microsoft.PowerShell.Management
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-Runspace Cmdlet Microsoft.PowerShell.Utility
New-Guid Cmdlet Microsoft.PowerShell.Utility
New-Alias 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
New-Event Cmdlet Microsoft.PowerShell.Utility
Get-Random Cmdlet Microsoft.PowerShell.Utility
Get-PSSessionConfiguration Cmdlet Microsoft.PowerShell.Core
Get-PSSessionCapability Cmdlet Microsoft.PowerShell.Core
Get-FormatData Cmdlet Microsoft.PowerShell.Utility
Get-ExecutionPolicy Cmdlet Microsoft.PowerShell.Security
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-Help Cmdlet Microsoft.PowerShell.Core
Get-Command Cmdlet Microsoft.PowerShell.Core
Get-Alias Cmdlet Microsoft.PowerShell.Utility
Format-Wide 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
Get-ChildItem Cmdlet Microsoft.PowerShell.Management
New-PSSessionConfigurationFile Cmdlet Microsoft.PowerShell.Core
Get-History Cmdlet Microsoft.PowerShell.Core
Get-Item Cmdlet Microsoft.PowerShell.Management
Get-PSSession Cmdlet Microsoft.PowerShell.Core
Get-PSReadlineOption Cmdlet PSReadLine
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-Host Cmdlet Microsoft.PowerShell.Utility
Get-Process Cmdlet Microsoft.PowerShell.Management
Get-PackageProvider Cmdlet PackageManagement
Get-Package 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-PackageSource Cmdlet PackageManagement
New-PSSessionOption Cmdlet Microsoft.PowerShell.Core
New-PSTransportOption Cmdlet Microsoft.PowerShell.Core
New-TemporaryFile 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
Test-ModuleManifest Cmdlet Microsoft.PowerShell.Core
Split-Path Cmdlet Microsoft.PowerShell.Management
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
Set-PSBreakpoint Cmdlet Microsoft.PowerShell.Utility
Sort-Object Cmdlet Microsoft.PowerShell.Utility
Set-PackageSource Cmdlet PackageManagement
Test-Path Cmdlet Microsoft.PowerShell.Management
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
Test-PSSessionConfigurationFile Cmdlet Microsoft.PowerShell.Core
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
Export-PSSession Cmdlet Microsoft.PowerShell.Utility
Set-Location Cmdlet Microsoft.PowerShell.Management
Set-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
Receive-Job Cmdlet Microsoft.PowerShell.Core
Remove-Item Cmdlet Microsoft.PowerShell.Management
Read-Host Cmdlet Microsoft.PowerShell.Utility
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
New-TimeSpan Cmdlet Microsoft.PowerShell.Utility
Push-Location Cmdlet Microsoft.PowerShell.Management
Set-ItemProperty Cmdlet Microsoft.PowerShell.Management
Remove-ItemProperty Cmdlet Microsoft.PowerShell.Management
Remove-Module Cmdlet Microsoft.PowerShell.Core
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
Save-Package Cmdlet PackageManagement
Remove-Job Cmdlet Microsoft.PowerShell.Core
Save-Help Cmdlet Microsoft.PowerShell.Core
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
Remove-PSBreakpoint Cmdlet Microsoft.PowerShell.Utility
Resolve-Path Cmdlet Microsoft.PowerShell.Management
Write-Verbose Cmdlet Microsoft.PowerShell.Utility
Export-ModuleMember Cmdlet Microsoft.PowerShell.Core
Export-Csv 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
ReadEnvironmentFile Function PSDesiredStateConfiguration
Publish-Script Function PowerShellGet
Publish-Module Function PowerShellGet
PSConsoleHostReadline Function PSReadLine
prompt Function  
Pause Function  
oss Function  
Node Function PSDesiredStateConfiguration
Get-PSRepository Function PowerShellGet
New-ScriptFileInfo Function PowerShellGet
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  
Register-PSRepository 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
Save-Module Function PowerShellGet
Save-Script Function PowerShellGet
Set-DynamicParameterVariables Function Pester
ConvertTo-Csv Cmdlet Microsoft.PowerShell.Utility
ConvertFrom-StringData Cmdlet Microsoft.PowerShell.Utility
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
ConvertTo-Html Cmdlet Microsoft.PowerShell.Utility
Clear-Variable Cmdlet Microsoft.PowerShell.Utility
Clear-Item Cmdlet Microsoft.PowerShell.Management
Clear-History Cmdlet Microsoft.PowerShell.Core
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
Clear-ItemProperty Cmdlet Microsoft.PowerShell.Management
Write-NodeMOFFile Function PSDesiredStateConfiguration
ConvertTo-Json Cmdlet Microsoft.PowerShell.Utility
ConvertTo-Xml Cmdlet Microsoft.PowerShell.Utility
Export-Clixml Cmdlet Microsoft.PowerShell.Utility
Export-Alias 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
ConvertTo-SecureString Cmdlet Microsoft.PowerShell.Security
Enable-PSBreakpoint Cmdlet Microsoft.PowerShell.Utility
Disable-RunspaceDebug Cmdlet Microsoft.PowerShell.Utility
Disable-PSSessionConfiguration Cmdlet Microsoft.PowerShell.Core
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
Disconnect-PSSession Cmdlet Microsoft.PowerShell.Core
Export-FormatData Cmdlet Microsoft.PowerShell.Utility
Write-MetaConfigFile Function PSDesiredStateConfiguration
ValidateUpdate-ConfigurationData Function PSDesiredStateConfiguration
Test-NodeManager Function PSDesiredStateConfiguration
Test-MofInstanceText Function PSDesiredStateConfiguration
Test-ModuleReloadRequired Function PSDesiredStateConfiguration
Test-ConflictingResources Function PSDesiredStateConfiguration
TabExpansion2 Function  
StrongConnect Function PSDesiredStateConfiguration
Should Function Pester
Setup Function Pester
Test-NodeResources Function PSDesiredStateConfiguration
Set-PSTopConfigurationName Function PSDesiredStateConfiguration
Set-PSMetaConfigVersionInfoV2 Function PSDesiredStateConfiguration
Set-PSMetaConfigDocInsProcessedBeforeMeta 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-PSRepository Function PowerShellGet
Write-Log Function PSDesiredStateConfiguration
Test-NodeResourceSource Function PSDesiredStateConfiguration
ThrowError Function PSDesiredStateConfiguration
ValidateNoNameNodeResources Function PSDesiredStateConfiguration
ValidateNodeResourceSource Function PSDesiredStateConfiguration
ValidateNodeResources Function PSDesiredStateConfiguration
ValidateNodeManager Function PSDesiredStateConfiguration
ValidateNodeExclusiveResources Function PSDesiredStateConfiguration
ValidateNoCircleInNodeResources Function PSDesiredStateConfiguration
Update-ScriptFileInfo Function PowerShellGet
Update-Script Function PowerShellGet
Test-ScriptFileInfo Function PowerShellGet
Update-ModuleVersion Function PSDesiredStateConfiguration
Update-Module Function PowerShellGet
Update-LocalConfigManager Function PSDesiredStateConfiguration
Update-DependsOn Function PSDesiredStateConfiguration
Update-ConfigurationErrorCount Function PSDesiredStateConfiguration
Update-ConfigurationDocumentRef Function PSDesiredStateConfiguration
Unregister-PSRepository Function PowerShellGet
Uninstall-Script Function PowerShellGet
Uninstall-Module Function PowerShellGet
Update-ModuleManifest Function PowerShellGet
Write-Warning Cmdlet Microsoft.PowerShell.Utility

CentOS 7 上面安装PowerShell的更多相关文章

  1. 在CentOS上安装PowerShell

    微软刚刚开源了PowerShell,目前在Linux和MacOS上都能安装.具体的链接如下: https://github.com/PowerShell/PowerShell 本文将介绍如何在Cent ...

  2. Linux 安装 powershell

    linux 安装 powershell Intro powershell 已经推出了一个 Powershell Core, 版本号对应 Powershell 6.x,可以跨平台,支持 Linux 和 ...

  3. MonoDevelop 4.2.2/Mono 3.4.0 in CentOS 6.5 安装笔记

    MonoDevelop 4.2.2/Mono 3.4.0 in CentOS 6.5 安装笔记 说明 以root账户登录Linux操作系统,注意:本文中的所有命令行前面的 #> 表示命令行提示符 ...

  4. Centos、Ubuntu 安装 Mono、Jexus

    Mono是.NET的跨平台实现 在众多关于语言的争论中,.NET一直被以不能跨平台而诟病,Mono改变了这一现状. 有人当心Mono会涉及版权啥的问题.高深的偶不懂,不过我觉得Unity3D都能用,为 ...

  5. Centos 7.0 安装Mono 3.4 和 Jexus 5.6

    2013-07-26 写过一篇<CentOS 6.3下 安装 Mono 3.2 和Jexus 5.4>,CentOS 7在CentOS 6的基础上有很大的调整,本文是这篇文章的更新,主要介 ...

  6. 环境搭建系列-系统安装之centos 6.5安装与配置

    按照国际惯例,系列目录先奉上: 系列一:系统安装之centos 6.5安装与配置 系列二:准备工作之Java环境安装 系列三:数据为先之MySQL读写集群搭建 系列四:谈分布式之RabbitMQ集群搭 ...

  7. 在CentOS 7上安装.NET Core R2跑Hello World

    前言 在上个月.NET Core出了最新版本预览版,只是在Window系统上试验了一下.原本想等发布正式版的时候在linux系统上试试,可能还需要一段时间,刚好有空可以折腾一下. 由于之前安装的Ubu ...

  8. CentOS 6/7安装ffmpeg

    环境 CentOS 6/7 安装 导入GPG key rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms 安装ATRPMS Repo ...

  9. CentOS 7.0安装配置Vsftp服务器

    一.配置防火墙,开启FTP服务器需要的端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop fi ...

随机推荐

  1. PHP中将ip地址转成十进制数的两种实用方法

    As we all know that long2ip works as ip1.ip2.ip3.ip4 (123.131.231.212) long ip => (ip1 * 256 * 25 ...

  2. VIJOS P1647 不差钱 SBT

    [描述] 同学们一起看了小品<不差钱>,LX神突发奇想,想刁难一下十八居士,他让十八居士模拟一下点菜的过程. [输入格式] 输入第一行为一个数price,表示价钱大于price的菜赵本山都 ...

  3. css初始化值

    body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,form,textarea,input,p,th,td,tr,table,tbody,thead,tfoot, ...

  4. mob分享

    QQ分享时候 QQ和QQ控件的appid   是一样的  都是在QQ开发者那里申请 powered by ShareSDK怎么去掉? android:参考sdk说明文档,继承一个AuthorizeAd ...

  5. Struts2利用注解实现action跳转

    使用注解来配置Action的最大好处就是可以实现零配置,但是事务都是有利有弊的,使用方便,维护起来就没那么方便了. 要使用注解方式,我们必须添加一个额外包:struts2-convention-plu ...

  6. BodyContent揭秘及定制复杂的JSP标签

    BodyContent揭秘及定制复杂的JSP标签 标签: jspintegerwrapperclass设计模式 2010-08-30 11:30 4555人阅读 评论(0) 收藏 举报  分类: HT ...

  7. 个人学习FPGA的初步过程

    对于FPGA,完全是从零开始学习,简单讲述一下我个人学习FPGA的经历吧: 没有开发板的日子.说真的要我掏腰包买开发板觉得是一件非常奢侈的事情.理由1:现成的东西,背后影藏诸多诡异的事情我们是无法体会 ...

  8. hdu 5754 Life Winner Bo 博弈论

    对于king:我是套了一个表. 如果起点是P的话,则是后手赢,否则前手赢. 车:也是画图推出来的. 马:也是推出来的,情况如图咯. 对于后:比赛时竟然推错了.QAQ最后看了题解:是个威佐夫博奕.(2, ...

  9. Android中通过pid获取app包名

    String callerPackage = getAppNameByPID(getContext(), Binder.getCallingPid()); private String getAppN ...

  10. Freemodbus 1.5

    源:http://blog.sina.com.cn/s/blog_4935209001012eax.html 网站位置:http://www.freemodbus.org/index.php?lang ...