简体   繁体   English

如何在PowerShell中删除所有导入的模块?

[英]How can I remove all imported modules in PowerShell?

I wan to remove all imported modules before importing them so that I can get the fresh ones by overwriting the ones in the memory. 我想在导入之前删除所有导入的模块,这样我就可以通过覆盖内存中的模块来获取新模块。

How can I remove all imported modules in PowerShell? 如何在PowerShell中删除所有导入的模块?

Thanks 谢谢

this should do it: 这应该这样做:

get-module | Remove-Module

this remove also imported modules in $profile . 这个删除了$profile导入的模块。

More about this 更多关于这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM