Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

SQLPS Won't Load Commands

$
0
0

I installed SSMS 2016 and now my SQLPS module is not exporting any commands. Below is the output of Get-Module -ListAvailable.

When I try to force it to load the SQLPS module for SQL Server 2012, I get an error 

"Set-Location : Cannot find drive. A drive with the name 'SQLSERVER' does not exist.
At C:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules\sqlps\SqlPsPostScript.ps1:1 char:1
+ Set-Location SQLSERVER:
+ ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (SQLSERVER:String) [Set-Location], DriveNotFoundException
    + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SetLocationCommand"

I've tried uninstalling SSMS 2016 and reinstalling with no luck. Any ideas?


Viewing all articles
Browse latest Browse all 7129

Trending Articles