开源版本PowerShell Core 6.2 发布

PowerShell Core 6.2 GA 已发布,PowerShell Core 是 PowerShell 的开源版本,适用于 Linux,macOS 和 Windows。

开源版本PowerShell Core 6.2 发布开源版本PowerShell Core 6.2 发布

有关 PowerShell Core 6.2 的安装信息,请查看安装文档("https://aka.ms/install-powershell")。开源版本PowerShell Core 6.2 发布开源版本PowerShell Core 6.2 发布

另外,PowerShell Core 与 Windows PowerShell 可同时运行,两者能够彼此独立使用。这就意味着我们可以继续将 Windows PowerShell 用于现有脚本,同时使用 PowerShell Core 实现新的自动化或探索其新功能。

更新内容

自 6.1.0 发布(2018 年 9 月)以来,开发团队已经对 6.2 版本进行了 560 次更改,具体的变更详情请点此查看。PowerShell Core 6.2 版本主要侧重于性能改进、错误修复以及可提升效率的较小 命令行(cmdlet)/语言增强功能。

实验性功能

未找到命令时的建议

Enable-ExperimentalFeature -Name PSCommandNotFoundSuggestion

当用户输入命令行时,如果出现拼写错误的情况,此功能将使用模糊匹配来查找使用者可能打算输入的命令,并提供建议。

PS> Get-Commnd
Get-Commnd : The term 'Get-Commnd' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-Commnd
+ ~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Get-Commnd:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
 
 
Suggestion [4,General]: The most similar commands are: Get-Command, Get-Content, Get-Job, Get-Module, Get-Event, Get-Host, Get-Member, Get-Item, Set-Co

 

上面的这个例子中,使用者拼写错了

Get-Command

并且模糊地匹配了很多最可能、以及最不可能的建议。

隐式远程批处理
Enable-ExperimentalFeature -Name PSImplicitRemotingBatching

在管道中使用隐式远程处理时,PowerShell 会独立处理管道中的每个命令。这导致在
管道的执行过程中反复地在客户端和目标系统之间对对象进行序列化和反序列化。

若应用此特性,PowerShell 会分析管道并确定命令是否可以安全运行,或者命令是否存在于目标系统上,并且能够远程执行整个管道,最后只将结果序列化和反序列化回客户端。

转载于:https://www.cnblogs.com/LILi666/p/10668392.html

Windows PowerShell 6: Essentials for Administration (IT Pro Solutions) by William Stanek English | 6 Apr. 2017 | ASIN: B06VWVJYB2 | 302 Pages | AZW3 | 647.68 KB Covers all release versions of PowerShell for all current versions of the Windows Server and Windows operating systems. Practical and precise, this hands-on guide with ready answers is designed for IT professionals working with Microsoft products, whether for on-premises, hybrid or cloud support. Inside, you'll find expert insights, tips, tricks and workarounds that will show you how to make the most of Windows PowerShell in the shortest amount of time possible. During the course of reading this book, you will master a number of complex topics, techniques, commands and functions. This book focuses on administration tasks, including: Using PowerShell to manage Windows roles and features Inventorying and evaluating computers using scripting Working with PowerShell drives, directories and files Reading and writing file contents Getting and setting security descriptors Creating access rules and taking ownership Configuring file and directory auditing Navigating the Windows Registry Creating and managing registry keys Comparing registry keys Viewing and filtering event logs Setting event log options Writing custom events Managing the state of system services Configuring service options, such as logon and recovery Joining computers to a domain Renaming computers Restarting or shutting down computers remotely Enabling or disabling system restore Creating and using checkpoints Recovering from restore points Examining running processes Analyzing computer performance Monitoring resource usage Windows PowerShell 6: Essentials for Administration can be used with the companion book, Windows PowerShell 6: IT Pro Solutions. About the Authors William Stanek Sr. was Microsoft Press's top technical author for nearly 20 years, and is widely recognized as a leading authority in Microsoft technologies. His more than 150 published works have been read by over 10 million people, translated into 34 languages, and are available in more than 70 countries. An avid outdoorsman, William enjoys hiking, spelunking, and trekking in search of adventure. So if he’s not writing or lecturing, William’s probably out enjoying the great outdoors or at the least, a backyard barbeque. William Stanek Jr. began his tech career as an intern at Stanek & Associates in 2007 and is currently working as a development and engineering lead for the company. While most high schoolers were out enjoying spring break and summer vacations, Will worked as an assistant on the publishing side of the business, before moving over to the technical side of the business during his college years at University of Washington. As a technologist, Will provided support, technical review, and made other contributions to a myriad of books written by William R. Stanek Sr. between 2010 and 2015. Since 2015 Will’s direct written contributions to over a dozen books earned him cover credits as a contributor. Will is co-author of Windows PowerShell: Essentials, IIS 10: Essentials and several other forthcoming books.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值