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 ``` 更多信息,您也可以参考如下的微信公众号 ![](https://s1.51cto.com/images/blog/201904/12/cc24fa1836b48fe4aa972e41b9109f88.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)