SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSMS 17.3 Start Powershell give s error - No SQL Server cmdlets found on this computer


SSMS 17.3 Start Powershell give s error - No SQL Server cmdlets found on this computer

Author
Message
MG-148046
MG-148046
SSCrazy Eights
SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)

Group: General Forum Members
Points: 9082 Visits: 3087
This is a Win 10 desktop and I've installed the sqlserver module via install-module sqlserver -force. I can import it into a Powershell session and navigate the SQLSERVER: drive but SSMS 17.3 doesn't see the module. Is there something else I need to do.

MG

"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare

"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
Sue_H
Sue_H
SSC Guru
SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)

Group: General Forum Members
Points: 72282 Visits: 14916
[quote]
MG-148046 - Monday, December 4, 2017 7:15 AM
This is a Win 10 desktop and I've installed the sqlserver module via install-module sqlserver -force. I can import it into a Powershell session and navigate the SQLSERVER: drive but SSMS 17.3 doesn't see the module. Is there something else I need to do.
[/qu

Not really sure what you mean. You could get to the SQLSERVER drive so something loaded.
When you start Powershell from SSMS and then execute Get-module what is returned?

Sue




MG-148046
MG-148046
SSCrazy Eights
SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)

Group: General Forum Members
Points: 9082 Visits: 3087

In previous versions of SSMS, right clicking on any item in Object Explorer and Start Powershell would take you to the location in SQLSERVER: in a Powershell session. This isn't working in 17 or at my installation. .
The complete message is:
No SQL Server cmdlets found on this computer.
Get the 'SqlServer' module at https>//powershellgallery.com/packages/SqlServer

Start Powershell without the SQL Server cmdlets?

The SqlServer module is loaded correctly but it seems SSMS 17 can't see it. I know that the Sqlserver module has been segregated from SSMS and is a separate install. The Web page in Powershell Gallery indicates that SSMS 17 should be able to access the module.

Get-Module sqlserver -listavailable returns:
C:\Program Files\WindowsPowerShell\Modules.



MG

"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare

"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
Steve Jones
Steve Jones
SSC Guru
SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)

Group: Administrators
Points: 602921 Visits: 21102
Perhaps silly question, but have you rebooted?

I tried today from 17.3 and got the message that my cmdlets were too old (v20), and updated. SSMS then found them easily, but I wonder if the install didn't work for you with pathing somehow. Did you install the cmdlet before SSMS?

I have found that SSMS is sometimes slightly flaky with the 2015VS shell (v16/17). I've had to repair it a few times. Maybe retry the module install with the allowclobber parameter?

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
MG-148046
MG-148046
SSCrazy Eights
SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)

Group: General Forum Members
Points: 9082 Visits: 3087
Did you install the cmdlet before SSMS?

Yes but when I ran into this issue, I installed again with -force. Is -allowclobber more effective.
I also rebooted.


MG

"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare

"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
Sue_H
Sue_H
SSC Guru
SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)

Group: General Forum Members
Points: 72282 Visits: 14916
MG-148046 - Monday, December 4, 2017 8:14 AM

In previous versions of SSMS, right clicking on any item in Object Explorer and Start Powershell would take you to the location in SQLSERVER: in a Powershell session. This isn't working in 17 or at my installation. .
The complete message is:
No SQL Server cmdlets found on this computer.
Get the 'SqlServer' module at https>//powershellgallery.com/packages/SqlServer

Start Powershell without the SQL Server cmdlets?

The SqlServer module is loaded correctly but it seems SSMS 17 can't see it. I know that the Sqlserver module has been segregated from SSMS and is a separate install. The Web page in Powershell Gallery indicates that SSMS 17 should be able to access the module.

Get-Module sqlserver -listavailable returns:
C:\Program Files\WindowsPowerShell\Modules.



When you go to C:\Program Files\WindowsPowerShell\Modules, are there a couple of sqlps files in that directory? And do you have a SQLServer directory?
In Powershell, try updating everything with: update-module

Sue



MG-148046
MG-148046
SSCrazy Eights
SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)

Group: General Forum Members
Points: 9082 Visits: 3087
When you go to C:\Program Files\WindowsPowerShell\Modules, are there a couple of sqlps files in that directory? And do you have a SQLServer directory?
In Powershell, try updating everything with: update-module

No sqlps files in the Modules folder. I have a Sqlserver folde rand in it are sub folders for the last 2 releases - 21.0.17178 &21.0.17199.
I did the update-module sqlserver as an admin after checking the folder, restarted SSMS and there is no change in SSMS 17.

My manners are a bit rusty. I hadn't thanked you for responding. I appreciate the help. Thanks


MG

"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare

"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
Steve Jones
Steve Jones
SSC Guru
SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)

Group: Administrators
Points: 602921 Visits: 21102
I was thinking context. Allowclobber should reinstall for all users, which hopefully sets pathing and other items for you.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
MG-148046
MG-148046
SSCrazy Eights
SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)

Group: General Forum Members
Points: 9082 Visits: 3087
I tried AllowClobber and no difference in behavior. I am thinking I need to uninstall SSMS 17 and reinstall. It is possible that it didn't install correctly.

MG

"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare

"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
MG-148046
MG-148046
SSCrazy Eights
SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)SSCrazy Eights (9.1K reputation)

Group: General Forum Members
Points: 9082 Visits: 3087
I uninstalled, reinstall and still no change

MG

"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare

"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search