PowerShell – Check If Module Is Loaded

This is how to check if a particular module is loaded, and if it’s not then load it. SQLPS is the module used in the example, but you can replace that with any module name.

This site uses Akismet to reduce spam. Learn how your comment data is processed.