Search code examples
powershellimport-modulesqlps

Powershell load module in same session


I am installing the sqlps module by running PowerShellTools.msi. After that has been installed I need to use that module in my ps script so I try to do "Import-Module 'sqlps' -DisableNameChecking". But the module is not found. I have to restart powershell to be able to load the module. Is it possible to load the module in the same session as it was installed?


Solution

  • swestner's comment is the solution!