The term ‘Install-Module’ is not recognized When you try to Install dbatools


If you are not on a machine with Powershell 5.1 or above, you will run into this error.
You can run command below to see the installed version.

  
  
  
 
 $PSVersionTable.PSVersion

 ## or

$PSVersionTable.PSVersion
 
 
 

 

You can try to download Windows Management Framework 5.1 to get Powershell 5.1.

https://www.microsoft.com/en-us/download/details.aspx?id=54616

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s