{"id":4637,"date":"2023-02-15T11:29:02","date_gmt":"2023-02-15T19:29:02","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=4637"},"modified":"2023-02-15T11:29:03","modified_gmt":"2023-02-15T19:29:03","slug":"how-to-install-chocolatey-clients","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=4637","title":{"rendered":"How to Install Chocolatey Clients"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"requirements\"><a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#requirements\"><\/a>Requirements<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Windows 7+ \/ Windows Server 2003+<\/li><li>PowerShell v2+ (Not PowerShell Core yet though)(minimum is v3 for install from this website due to&nbsp;<a href=\"https:\/\/blog.chocolatey.org\/2020\/01\/remove-support-for-old-tls-versions\/\">TLS 1.2 requirement<\/a>)<\/li><li>.NET Framework 4+ (the installation will attempt to install .NET 4.0 if you do not have it installed)(minimum is 4.5 for install from this website due to&nbsp;<a href=\"https:\/\/blog.chocolatey.org\/2020\/01\/remove-support-for-old-tls-versions\/\">TLS 1.2 requirement<\/a>)<\/li><\/ul>\n\n\n\n<p>That&#8217;s it! All you need is choco.exe (that you get from the installation scripts) and you are good to go! No Visual Studio required.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-chocolatey\"><a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#installing-chocolatey\"><\/a>Installing Chocolatey<\/h2>\n\n\n\n<p>Chocolatey installs in seconds. You are just a few steps from running choco right now!<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>First, ensure that you are using an&nbsp;<strong><a href=\"https:\/\/www.howtogeek.com\/194041\/how-to-open-the-command-prompt-as-administrator-in-windows-8.1\/\">administrative shell<\/a><\/strong>&nbsp;&#8211; you can also install as a non-admin, check out&nbsp;<a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#non-administrative-install\">Non-Administrative Installation<\/a>.<\/li><li>Copy the text specific to your command shell &#8211;&nbsp;<a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#install-with-cmd.exe\" class=\"\">cmd.exe<\/a>&nbsp;or&nbsp;<a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#install-with-powershell.exe\" class=\"\">powershell.exe<\/a>.<\/li><li>Paste the copied text into your shell and press Enter.<\/li><li>Wait a few seconds for the command to complete.<\/li><li>If you don&#8217;t see any errors, you are ready to use Chocolatey! Type&nbsp;<code>choco<\/code>&nbsp;or&nbsp;<code>choco -?<\/code>&nbsp;now, or see&nbsp;<a href=\"https:\/\/docs.chocolatey.org\/en-us\/getting-started\">Getting Started<\/a>&nbsp;for usage instructions.<\/li><\/ol>\n\n\n\n<p><strong>NOTE<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>If you are behind a proxy, please see&nbsp;<a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#installing-behind-a-proxy\">Installing behind a proxy<\/a>.<\/li><li>Need completely offline solution? See&nbsp;<a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#completely-offline-install\">Completely Offline Install<\/a>.<\/li><li>Installing the licensed edition? See&nbsp;<a href=\"https:\/\/docs.chocolatey.org\/en-us\/licensed-extension\/setup\">install licensed edition<\/a>.<\/li><li><a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#more-install-options\">More Options<\/a>&nbsp;\/&nbsp;<a href=\"https:\/\/docs.chocolatey.org\/en-us\/troubleshooting\">Troubleshooting<\/a><\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-with-cmd.exe\"><a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#install-with-cmd.exe\"><\/a>Install with cmd.exe<\/h4>\n\n\n\n<p>Run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@\"%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command \"&#91;System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https:\/\/community.chocolatey.org\/install.ps1'))\" &amp;&amp; SET \"PATH=%PATH%;%ALLUSERSPROFILE%\\chocolatey\\bin\"<\/code><\/pre>\n\n\n\n<p>Copy<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-with-powershell.exe\"><a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#install-with-powershell.exe\"><\/a>Install with PowerShell.exe<\/h4>\n\n\n\n<p>With PowerShell, there is an additional step. You must ensure&nbsp;<a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkID=135170\">Get-ExecutionPolicy<\/a>&nbsp;is not Restricted. We suggest using&nbsp;<code>Bypass<\/code>&nbsp;to bypass the policy to get things installed or&nbsp;<code>AllSigned<\/code>&nbsp;for quite a bit more security.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Run&nbsp;<code>Get-ExecutionPolicy<\/code>. If it returns&nbsp;<code>Restricted<\/code>, then run&nbsp;<code>Set-ExecutionPolicy AllSigned<\/code>&nbsp;or&nbsp;<code>Set-ExecutionPolicy Bypass -Scope Process<\/code>.<\/li><li>Now run the following command:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Set-ExecutionPolicy Bypass -Scope Process -Force; &#91;System.Net.ServicePointManager]::SecurityProtocol = &#91;System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https:\/\/community.chocolatey.org\/install.ps1'))<\/code><\/pre>\n\n\n\n<p>Copy<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"additional-considerations\"><a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#additional-considerations\"><\/a>Additional considerations<\/h4>\n\n\n\n<p><strong>NOTE<\/strong><\/p>\n\n\n\n<p>Please inspect&nbsp;<a href=\"https:\/\/community.chocolatey.org\/install.ps1\">https:\/\/community.chocolatey.org\/install.ps1<\/a>&nbsp;prior to running any of these scripts to ensure safety. We already know it&#8217;s safe, but you should verify the security and contents of&nbsp;<strong>any<\/strong>&nbsp;script from the internet you are not familiar with. All of these scripts download a remote PowerShell script and execute it on your machine.<\/p>\n\n\n\n<p>We take security very seriously.&nbsp;<a href=\"https:\/\/docs.chocolatey.org\/en-us\/information\/security\">Learn more<\/a>.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>&#8220;Why do I need to enable TLS 1.2 in PowerShell? Shouldn&#8217;t it be on by default when I load PowerShell?&#8221;<\/p><\/blockquote>\n\n\n\n<p>Unfortunately it&#8217;s not always a default, and more of the time it is not. The low level is that it depends on .NET Framework and Windows.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Explicitly set &#8211; Basically you need .NET Fx 4.5 at a minimum to be able to explicitly set TLS 1.2.<\/li><li>Load by default &#8211; To have it load by default when you run PowerShell, you need at least .NET Fx 4.7 AND the Operating System&#8217;s SystemDefault to have TLS 1.2 enabled.<\/li><\/ul>\n\n\n\n<p>The load by default is really hard to see, so you should check to ensure it is there. Assume it doesn&#8217;t and set explicitly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"more-install-options\"><a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#more-install-options\"><\/a>More Install Options<\/h2>\n\n\n\n<p><strong>Troubleshooting? Proxy? Need more options?<\/strong><\/p>\n\n\n\n<p>More Install Options<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"upgrading-chocolatey\"><a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#upgrading-chocolatey\"><\/a>Upgrading Chocolatey<\/h2>\n\n\n\n<p>Once installed, Chocolatey can be upgraded in exactly the same way as any other package that has been installed using Chocolatey. Simply use the command to upgrade to the latest stable release of Chocolatey:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>choco upgrade chocolatey<\/code><\/pre>\n\n\n\n<p>Copy<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"uninstalling-chocolatey\"><a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup#uninstalling-chocolatey\"><\/a>Uninstalling Chocolatey<\/h2>\n\n\n\n<p>See\u00a0<a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/uninstallation\">uninstall<\/a>.<\/p>\n\n\n\n<p>Ref: <a href=\"https:\/\/docs.chocolatey.org\/en-us\/choco\/setup\">Chocolatey Software Docs | Setup \/ Install<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requirements Windows 7+ \/ Windows Server 2003+ PowerShell v2+ (Not PowerShell Core yet though)(minimum is v3 for install from this website due to&nbsp;TLS 1.2 requirement) .NET Framework 4+ (the installation will attempt to install .NET 4.0 if you do not have it installed)(minimum is 4.5 for install from this website due to&nbsp;TLS 1.2 requirement) That&#8217;s <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=4637\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1506,10,11,14],"tags":[1507],"class_list":["post-4637","post","type-post","status-publish","format-standard","hentry","category-chocolatey","category-microsoft","category-website","category-windows-7-8-10","tag-install-chocolatey-client"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/4637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4637"}],"version-history":[{"count":1,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/4637\/revisions"}],"predecessor-version":[{"id":4638,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/4637\/revisions\/4638"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}