首页 > 系统相关 >PowerShell教程 - PowerShell介绍(Introduction to PowerShell)

PowerShell教程 - PowerShell介绍(Introduction to PowerShell)

时间:2022-08-18 08:44:19浏览次数:83  
标签:教程 Introduction Windows 跨平台 https NET com PowerShell

更新记录
转载请注明出处:https://www.cnblogs.com/cqpanda/p/16589917.html
2022年8月18日 发布。
2022年8月15日 从笔记迁移到博客。

PowerShell介绍(Introduction to PowerShell)

介绍(What is PowerShell)

PowerShell is a mixture of a command line, a functional programming language, and an object-oriented programming language

基于.NET

PowerShell 是构建于.NET上 基于任务 的 命令行shell 和 脚本语言

意思是有.NET才可以运行,目前.NET已跨平台,不局限Windows

运行在.NET Framework 的公共语言运行时 (CLR)

可以使用.NET Framework 的类库,它将接受和返回 .NET Framework对象

.NET非常强大,站在巨人肩上你更容易成功

脚本语言这个你要是写过PHP、Bash那就真的感觉的出来,太像了

开源

https://github.com/powershell/powershell

跨平台

​ 支持Windows、Linux、MAC系统,cross-platform

面向对象

​ Bash是基于文本的。而PowerShell基于对象,命令返回的是对象

设计目的

​ 替换windows 上的cmd、自动执行任务、管理操作系统

PowerShell解决的问题

Windows GUI操作虽然方便,但在 批量 和 重复 操作时PowerShell更加有效率

跨平台管理多种类型的操作系统的计算机

操作和管理Windows Server Without GUI系统

相关网址

官方网址 https://docs.microsoft.com/en-us/powershell/

Github网址 http://github.com/PowerShell/PowerShell

俱乐部 https://powershell.org/

微软QA社区 https://docs.microsoft.com/en-us/answers/products/

PowerShell官方扩展库 https://www.powershellgallery.com/

PowerShell API参考

https://docs.microsoft.com/zh-cn/dotnet/api/?view=powershellsdk-7.0.0

https://docs.microsoft.com/zh-cn/powershell/module/cimcmdlets/?view=powershell-7

PowerShell有关博客 https://jdhitsolutions.com/blog/

Windows PowerShell 和 PowerShell Core 对比

区别

跨平台

Windows PowerShell 不跨平台

PowerShell Core跨平台

开源

Windows PowerShell 不开源

PowerShell Core开源

Windows PowerShell版本

image

如果Windows10原始版本未通过Windows更新进行更新,则PowerShell版本为 5.0

Windows PowerShell 5.1 在以下 Windows 版本上运行

Windows Server 2019,默认安装

Windows Server 2016,默认安装

Windows Server 2012 R2,安装Windows Management Framework 5.1 以运行Windows PowerShell 5.1

PowerShell Core版本

目前最高版本为7

PowerShell哲学

PowerShell中的所有东西,都被认为是一个对象

PowerShell与其他程序的关系

image

标签:教程,Introduction,Windows,跨平台,https,NET,com,PowerShell
From: https://www.cnblogs.com/cqpanda/p/16589917.html

相关文章