PowerShell Week at SQL University – Post 0

You may also like...

10 Responses

  1. Jason Hall says:

    I had the error loading modules as well, but in my case I couldn’t load any of the modules.

    After talking to Aaron via. email for a bit I ended up doing exactly what Mike above did.

    I am wondering if it might just be an oddity with the most recent setup package for SQLSPX?

    Thanks Aaron

  2. Mike says:

    I found a workaround to this. SQLPSX puts all of the modules in folders of My Documents\WindowsPowershell\Modules\SQLPSX\Modules. If you take the contents of that folder and move them to My Documents\WindowsPowershell\Modules everything will load correctly.

    Still a very strange behavior, but at least there is a workaround.

  3. Mike says:

    I tried following along with the instructions up to the point of importing the SQLServer module, at which point an error kept occurring. SQLServer would appear in the list of available modules, but every attempt to import it would result in the error message that no valid module was found.

    Any thoughts as to why Powershell might see the module as available, but not be able to load it?

  1. 2010.05.20

    […] far we’ve learned how to open up PowerShell and add on to it with some modules; then we learned how to create a variable and populate it with anything from some numbers to an […]

  2. 2011.01.03

    […] PowerShell before I have a series of posts you may want to look at to help you get up and running: PowerShell Week Post 0 (5/17) PowerShell Week Post 1 (5/18) PowerShell Week Post 2 (5/20) PowerShell Week Post 3 […]

  3. 2011.01.04

    […] […]

  4. 2011.01.04

    […] […]

  5. 2011.01.10

    […] […]

  6. 2011.01.18

    […] far we’ve walked though how to turn on PowerShell and add modules, adding SQL Server 2008 snapins and using PowerShell variables, what cmdlets and functions are, […]

Leave a Reply

%d bloggers like this: