PowerShell教程 - PowerShell介绍(Introduction to 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

作者:重庆熊猫

出处:https://www.cnblogs.com/cqpanda/p/16589917.html

版权:本作品采用「不论是否商业使用都不允许转载,否则按3元1字进行收取费用」许可协议进行许可。

posted @   重庆熊猫  阅读(293)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
more_horiz
keyboard_arrow_up dark_mode palette
选择主题
menu
点击右上角即可分享
微信分享提示