看了文章 爱上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. 未能加载文件或程序集 Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0 解决 亲测

    项目打开winform程序做的某些窗体时报错: ************* 异常文本 ************** System.Reflection.TargetInvocationExceptio ...

  2. Chapter 1 First Sight——14

    I parked in front of the first building, which had a small sign over the door reading front office. ...

  3. Android中在布局中写ViewPager无法渲染出来的问题

    今天刚刚使用Android Studio,在写ViewPager时,首先按F4把Dependencies添加一个V4包,然后写ViewPager,如下: <android.support.v4. ...

  4. index.do为后缀的是什么开发语言? 有什么技术特点?

    @Override 重写父类的方法.@Nullable 表示定义的字段可以为空. 一般情况下扩展名可以体现出一个网站使用的技术,***.html?id=***,这个就是普通的html页面,然后通过ja ...

  5. windows2012 r2 提高网速方法

    2012 升级到 r2 微软官方地址:(感谢Monkey威武)Datacenter Preview:简体中文:http://care.dlservice.microsoft.com/dl/downlo ...

  6. Linux SCP命令复制传输文件的用法

    SCP命令是用户通过网络将一台Linux服务器的文件复制到另一台Linux服务器,方法如下: 一:从本地复制到远程 复制文件: 命令格式: scp local_file remote_username ...

  7. C# 中的内存管理,摘自网络

    C#编程的一个优点是程序员不需要关心具体的内存管理,尤其是垃圾收集器会处理所有的内存清理工作.虽然不必手工管理内存,但如果要编写高质量的代码,还是要理解后台发生的事情,理解C#的内存管理.本文主要介绍 ...

  8. Java枚举的3类语法

    一.最基本的用法 public enum TestEnum { IMG,TEXT,WORD } 使用时: TestEnum testEnum=TestEnum.WORD; System.out.pri ...

  9. HTML之禁止输入文本

    一个文本框,禁止输入文本有2个方式,一个是利用readonly ,一个是利用 disabled. 那么两者虽然目的都可以达到,但是从表现上来看disabled会显得更加的直观,为什么这么说. 请看截图 ...

  10. 一个人的旅行HDU 2066 floyd

    一个人的旅行 Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Subm ...