PowerShell 6.2 PSCommandNotFoundSuggestion

PowerShell v6.2包含许多实验×××,包括PSCommandNotFoundSuggestion,启用该功能后,如果命令输入错误,则PS会有针对性的给出建议。

使用

Enable-ExperimentalFeature -Name PSCommandNotFoundSuggestion

启用该功能。然后重新启动PowerShell。

启用后的效果如下

PS> Get-Srvice

Suggestion [4,General]: The most similar commands are: Get-Service, Set-Service, New-Service, Get-PSDrive.

I expected Get-Service so that worked

更多信息,您也可以参考如下的微信公众号

PowerShell 6.2 PSCommandNotFoundSuggestion

转载于:https://blog.51cto.com/543925535/2378059

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、付费专栏及课程。

余额充值