
This is what is really happening when you use OneGet to install FoxitReader. The install script can’t run if you don’t allow for UnSigned Scripts during your Install-Package session If you try to install without specifying this, you’ll get the following error. Remember when I said to allow script execution? Well this is why. You could potentially discover software to install from the command line. We might run Find-Package, and pipe that into Where-Object to filter. Let’s say that we needed a tool to work with PDFs, and had never heard of Adobe before. Get a listing of Package Sources available Get information about packages installed locally Out of the box, we’re able to add our own corporate PackageSource repository, and do some other interesting things: CommandĪdd your own Package Source other than Chocolatey PowerShell exposes some very nice functionality here. Now, let’s Import the OneGet module and see what new commands are available. Now, launch PowerShell and check out the version of PowerShell you’re running with Get-Host. This may or may not require a restart for you. To get started, first install WMF 5.0, available here.

That is because behind the scenes to install a program using OneGet, PowerShell will download a Chocolatey install script and execute it, and if your execution policy prohibits it from running, you won’t be having any fun. Sample of using OneGet to install packagesįirst and foremost, you’ll need to temporarily allow remote script execution in order to use this version of OneGet. You can see a full catalog of software here, . Some examples of software found in the Chocalatey gallery: Chocolatey supports a tremendous catalog of software, allowing you to silently install software directly from the command line. The Coolest new feature is OneGet, which is PowerShell’s adaptation of the community-based software repository Chocolatey. I’m not going to dig into this too deeply, instead, read Jeffrey Snover’s great post on the topic here.
