![]() ![]() We are setting up the Chocolatey package repository. Restricting write permissions to Administrators WARNING: It's very likely you will need to close and reopen your shell Setting ChocolateyInstall to 'C:\ProgramData\chocolatey' Installing Chocolatey on the local machineĬreating ChocolateyInstall as an environment variable (targeting 'Machine') Getting latest version of the Chocolatey package for download.ĭownloading to C:\Users\.\AppData\Local\Temp\2\chocolatey\chocoInstall\chocolatey.zipĮxtracting C:\Users\.\AppData\Local\Temp\2\chocolatey\chocoInstall\chocolatey.zip to C:\Users\.\AppData\Local\Temp\2\chocolatey\chocoInstall You can open this link to review the code.įorcing web requests to allow TLS v1.2 (Required for requests to ) DownloadString: A WebClient method to download a script from a string.New-Object : Creates a WebClient object.iex: Same as PowerShell Invoke-Expression to execute a command.::SecurityProtocol -bor 3072: Bitwise OR between the current security protocol and TSL 1.2 to allow connection to remote servers.3072: Represents the TSL 1.2 security protocol. ![]() -Force: Supress any confirmation prompt.-Scope Process: Only apply to the current PowerShell session.Set-ExecutionPolicy Bypass: Sets PowerShell execution policy to Bypass for the current process.this command sets up the PowerShell environment to allow the execution of scripts without any restrictions, updates the security protocol used for connecting to remote servers, and then downloads and installs the Chocolatey package manager using a script from a specific URL. ![]()
0 Comments
Leave a Reply. |