Blog Post

Installing dbatools on WS2012 R2

,

This is actually a simple, short post, but writing helps me remember things, and since I had to learn this, I decided to write something short.

I have a number of Windows Server 2012 R2 VMs. I need to get rid of these and upgrade to WS2016, since installing SQL 2016 is a pain on these VMs. However, for the time being, I’m stuck with them.

I was looking to try some of the dbatools modules. I popped open an elevated command prompt and

2017-01-20 09_30_50-Atlas Home Lab .201 - VMware Workstation

This is because that module isn’t in this version of PoSh. I checked, and I could see this is v4, and Install-Module was added in v5.

2017-01-20 09_31_06-Atlas Home Lab .201 - VMware Workstation

I had to go to the download page to see what my options were. One of these is to download the modules myself, but that seems like a pain. Instead, I used this command:

Invoke-Expression (Invoke-WebRequest -UseBasicParsing https://dbatools.io/in)

That worked great, and I had the modules installed.

2017-01-20 09_44_05-Atlas Home Lab .201 - VMware Workstation

Nothing much new in this post that isn’t in the dbatools download page, but I did learn a bit more about PoSh and its versions. Since I’ve gotten used to working on Windows 10, it’s good to remember that previous versions of the OS will have different capabilities.

In this case, the pain of using WS2012R2 means I’ll try to find time and upgrade to WS2016 as soon as I can.

Filed under: Blog Tagged: dbatools, powershell, syndicated

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating