CentOS 7 上面安装PowerShell
看了文章 爱上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的更多相关文章
- 在CentOS上安装PowerShell
微软刚刚开源了PowerShell,目前在Linux和MacOS上都能安装.具体的链接如下: https://github.com/PowerShell/PowerShell 本文将介绍如何在Cent ...
- Linux 安装 powershell
linux 安装 powershell Intro powershell 已经推出了一个 Powershell Core, 版本号对应 Powershell 6.x,可以跨平台,支持 Linux 和 ...
- 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操作系统,注意:本文中的所有命令行前面的 #> 表示命令行提示符 ...
- Centos、Ubuntu 安装 Mono、Jexus
Mono是.NET的跨平台实现 在众多关于语言的争论中,.NET一直被以不能跨平台而诟病,Mono改变了这一现状. 有人当心Mono会涉及版权啥的问题.高深的偶不懂,不过我觉得Unity3D都能用,为 ...
- 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的基础上有很大的调整,本文是这篇文章的更新,主要介 ...
- 环境搭建系列-系统安装之centos 6.5安装与配置
按照国际惯例,系列目录先奉上: 系列一:系统安装之centos 6.5安装与配置 系列二:准备工作之Java环境安装 系列三:数据为先之MySQL读写集群搭建 系列四:谈分布式之RabbitMQ集群搭 ...
- 在CentOS 7上安装.NET Core R2跑Hello World
前言 在上个月.NET Core出了最新版本预览版,只是在Window系统上试验了一下.原本想等发布正式版的时候在linux系统上试试,可能还需要一段时间,刚好有空可以折腾一下. 由于之前安装的Ubu ...
- CentOS 6/7安装ffmpeg
环境 CentOS 6/7 安装 导入GPG key rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms 安装ATRPMS Repo ...
- CentOS 7.0安装配置Vsftp服务器
一.配置防火墙,开启FTP服务器需要的端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop fi ...
随机推荐
- 初学HTML5的一点理解
刚接触了一点点用h5移动端的一点知识,用自己最浅薄的理解来看解决自适应屏幕尺寸问题和适应屏幕尺寸的布局问题.这里,为了解决自适应屏幕尺寸问题大概需要做的就是把HTML中的元素的尺寸尽可能的用百分比表示 ...
- hadoop的安全模式
在安全模式下:不能增.删.改操作:但可以查看. 查看hadoop是否i处于安全模式下: 执行命令:hadoop dfsadmin -safemode get 进入hadoop的安全模式下: 执行命令: ...
- 配置F5 负载均衡(转)
转自<网络运维与管理>201406-11 配置F5交换机的问题在于,与平时所学的交换机.路由器思路完全不同,拿到设备后,完全不知如何下手. 网络拓扑图如下: 两台web服务器对外提供服务, ...
- UVA699 dfs and map
和书上的方法不一样... 因为我不知道节点,所以就直接用map来存左右了. #include<bits/stdc++.h> using namespace std; map <int ...
- 【Android】获取手机中已安装apk文件信息(PackageInfo、ResolveInfo)(应用图片、应用名、包名等)
众所周知,通过PackageManager可以获取手机端已安装的apk文件的信息,具体代码如下 PackageManager packageManager = this.getPackageManag ...
- winxp iis5中修改最大连接数及添加多个站点
winxp iis5中修改最大连接数及添加多个站点 最 近用asp做一些东西,需要用到iis,还需要用photoshop做一些图片.以前都是在win2003下面做,可是photoshop里面很多中文字 ...
- 把一个 int 数字 n 格式化成16进制的字符串(前面补零成0位)
例如,输入n=10,要求输出 0x0000000A; C++: sprintf( buffer, "0x%08X", n); C#: string s = string.F ...
- NSDate,NSCalendar
NSLog(@"%@",[NSDate date]); 打印结果: 2015-06-30 08:42:14 +0000 把它转换成2015年6月30日 8时42分14秒 怎么转? ...
- Ant自动构建
Ant+jenkins+tomcat <project name="buildWar" default="clean"> <property ...
- zookeeper启动失败
集群中3个节点,第一个started,第二个说Starting zookeeper ... already running as process xxxx,第三个说Starting zookeeper ...