ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

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

2022-08-18 09:01:08  阅读:173  来源: 互联网

标签:教程 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
来源: https://www.cnblogs.com/cqpanda/p/16589917.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有