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
微软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版本#
如果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与其他程序的关系#
作者:重庆熊猫
出处:https://www.cnblogs.com/cqpanda/p/16589917.html
版权:本作品采用「不论是否商业使用都不允许转载,否则按3元1字进行收取费用」许可协议进行许可。
本文来自博客园,作者:重庆熊猫,转载请注明原文链接:https://www.cnblogs.com/cqpanda/p/16589917.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?