Setting up my new workstation with some Chocolatey goodness.

9

November 11, 2022 by Kenneth Fisher

As you might be aware I started a new job last week. Which means a new workstation and installing lots of tools. My new lead suggested that I try out a program called Chocolatey. Chocolatey is a software management solution that you can use through Powershell. Installing it on my workstation was pretty simple and took me something like 5 minutes. From there I installed Powershell Core, DbaTools, SQL Server Management Studio, and Azure Data Studio in 4 simple commands. The –yes just means that I don’t want to have to deal with prompts and just plan on accepting them all.

choco install powershell-core --yes
choco install dbatools --yes
choco install sql-server-management-studio --yes
choco install azure-data-studio --yes

And then every now and again when I want to make sure everything is up to date I can just run this:

choco upgrade all

And that will check for updates on all of the pieces of code that I’ve downloaded before using Chocolatey. Obviously, there is a lot more to this program than just installing a couple of programs and keeping them updated but even this little bit of the program is really useful.

9 thoughts on “Setting up my new workstation with some Chocolatey goodness.

  1. Michael says:

    Choco is awesome. A Linux admin showed me this a few years ago. It almost seems to good to be true.

  2. sqlservguy says:

    This is interesting but begs the question , how does chocalatey know how to download the installation. For example for SSMS I go to MS web site and download it for installation. How does Choclatey know how to do that ?

  3. Douglas Osborne says:

    Hey Kenneth,

    Great post – new info.

    However, if I run the Update command – I see this

    choco update all

    Chocolatey v1.1.0
    Could not find a command registered that meets ‘update’.
    Try choco -? for command reference/help.

    • That would be because it was supposed to be upgrade :). Fixing the code in the post. Thanks for pointing that out.

      • Douglas Osborne says:

        I was going to post the same – wow is that powerful.

        You may want to add that after running Cmd as an Administrator and running Powershell that you should type in the following

        Start-Process PowerShell -Verb RunAs

        to get all of this chocolatey goodness to function as intended

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 )

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 3,753 other subscribers

Follow me on Twitter

ToadWorld Pro of the Month November 2013
%d bloggers like this: