fbpx
Frame-14

Privacy Ninja

        • DATA PROTECTION

        • CYBERSECURITY

        • Penetration Testing

          Secure your network against various threat points. VA starts at only S$1,000, while VAPT starts at S$4,000. With Price Beat Guarantee!

        • API Penetration Testing
        • Enhance your digital security posture with our approach that identifies and addresses vulnerabilities within your API framework, ensuring robust protection against cyber threats targeting your digital interfaces.

        • On-Prem & Cloud Network Penetration Testing
        • Boost your network’s resilience with our assessment that uncovers security gaps, so you can strengthen your defences against sophisticated cyber threats targeting your network

        • Web Penetration Testing
        • Fortify your web presence with our specialised web app penetration testing service, designed to uncover and address vulnerabilities, ensuring your website stands resilient against online threats

        • Mobile Penetration Testing
        • Strengthen your mobile ecosystem’s resilience with our in-depth penetration testing service. From applications to underlying systems, we meticulously probe for vulnerabilities

        • Cyber Hygiene Training
        • Empower your team with essential cybersecurity knowledge, covering the latest vulnerabilities, best practices, and proactive defence strategies

        • Thick Client Penetration Testing
        • Elevate your application’s security with our thorough thick client penetration testing service. From standalone desktop applications to complex client-server systems, we meticulously probe for vulnerabilities to fortify your software against potential cyber threats.

        • Source Code Review
        • Ensure the integrity and security of your codebase with our comprehensive service, meticulously analysing code quality, identifying vulnerabilities, and optimising performance for various types of applications, scripts, plugins, and more

        • Email Spoofing Prevention
        • Check if your organisation’s email is vulnerable to hackers and put a stop to it. Receive your free test today!

        • Email Phishing Excercise
        • Strengthen your defense against email threats via simulated attacks that test and educate your team on spotting malicious emails, reducing breach risks and boosting security.

        • Cyber Essentials Bundle
        • Equip your organisation with essential cyber protection through our packages, featuring quarterly breached accounts monitoring, email phishing campaigns, cyber hygiene training, and more. LAUNCHING SOON.

Managing Windows 10 Apps With The Chocolatey Package Manager

https://open.spotify.com/show/3Gmj15x6cGrgJEzmGnDTTj

Managing Windows 10 Apps With The Chocolatey Package Manager

Chocolatey is a Windows package manager that lets you quickly install new software or prep a new Windows 10 installations with your favorite applications, all from the command line.

If you are a Linux user, package managers such as ‘apt’ or ‘rpm’ are familiar tools used to install Linux programs and resolve any required dependencies. Over the past few years, package managers have also gained popularity in Windows 10.

The most popular Windows package manager is Chocolatey, which is designed for both consumers (general users) and businesses and offers an easy to understand user interface and a suite of powerful features for deploying programs.

To use Chocolatey, your system needs the following system requirements:

  1. Windows 7+ / Windows Server 2003+
  2. PowerShell v2+ (Not PowerShell Core yet) (minimum is v3 for install from this website due to TLS 1.2 requirement)
  3. .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 TLS 1.2 requirement)

How to install Chocolatey in Windows 10

Method 1: Install through Command Prompt:

  1. Open Command Prompt with admin rights.
  2. Copy and paste the following cmd.exe code and press Enter.@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command " [System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"Choco
  3. Wait for the program to install.

If you don’t see any error after entering the above command, Chocolatey is ready for use. In some cases, you’ll be asked to restart the shell. To do this, close the Command Prompt window and relaunch it.

Also Read: How To Prevent WhatsApp Hack: 7 Best Practices

Method 2: Install through PowerShell:

  1. Open PowerShell with admin rights.
  2. Run Get-ExecutionPolicy.
  3. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process.
  4. Enter the following command in PowerShell:Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
PowerShell

When done correctly, you will now have access to the choco or choco -? command.

Getting started with Chocolatey

Like every other package manager, Chocolatey is entirely a command-line tool where you have to type in the commands you wish to execute.

After installing Chocolatey, launch a Command Prompt or PowerShell and type ‘choco -?‘ to get a list of commands that you can run.

These commands are listed below:

  • list – lists remote or local packages
  • search – searches remote or local packages (alias for list)
  • info – retrieves package information. Shorthand for choco search pkgname –exact –verbose
  • install – installs packages from various sources
  • pin – suppress upgrades for a package
  • outdated – retrieves packages that are outdated. Similar to upgrade all –noop
  • upgrade – upgrades packages from various sources
  • uninstall – uninstalls a package
  • pack – packages up a nuspec to a compiled nupkg
  • push – pushes a compiled nupkg
  • new – generates files necessary for a chocolatey package from a template
  • sources – view and configure default sources (alias for source)
  • source – view and configure default sources
  • config – Retrieve and configure config file settings
  • feature – view and configure choco features
  • features – view and configure choco features (alias for feature)
  • setapikey – retrieves or saves an apikey for a particular source (alias for apikey)
  • apikey – retrieves or saves an apikey for a particular source
  • unpackself – have chocolatey set itself up
  • sync – synchronizes against system installed software – generates missing packages

To see help for each command, you can enter choco [command] -help. For example, to get help on the list command, you can type choco list help.

Also Read: 15 Best Tools For Your Windows 10 Privacy Settings Setup

List apps that can be installed by Chocolatey

The purpose of a package manager is to be able to easily install applications in Windows. To find a list of available applications to install you can use the choco list [search_keyword] command.

For example, if you want to see if Notepad++ is available as a package, you can open a Command Prompt or PowerShell console with admin rights and enter choco list notepad++.

Chocolatey will now search for available packages associated with this name and list them, as shown below.

Searching for packages

Installing programs using Chocolatey

To install apps using Chocolatey, you have to use choco install command and follow it with the supported package name.

In the example below, we’re using Chocolatey to install Notepad++ by entering the choco install notepadplusplus command.

Choco

Chocolatey will now download and install the program on your computer. When installing the program, you may be prompted to run various scripts to finish the installation, which should be allowed.

It is also possible to install multiple apps at the same time by separating them by spaces. For example, to install Notepad++ and 010Editor at the same time, you would use the following command:

choco install notepadplusplus 010editor

To keep programs updated, you can routinely enter the following command to check for new versions of install packages and update them.

choco outdated

Uninstall programs using Chocolatey

Just like you can install Windows 10 applications with Chocolatey, you can also uninstall them with the choco uninstall [package] command.

For example, to uninstall the Notepad++ application, you can enter the choco uninstall notepadplusplus command.

Uninstalling a program

Upgrading Chocolatey

Chocolatey is commonly updated with new features and bug fixes, so it is essential to keep it updated with the latest version.

The update can be done via the command line using the “upgrade” command:

choco upgrade chocolatey

Change the default install directory

Fortunately, Chocolatey also allows you to change the default installation directory, so that you can install the program in the location of your choice.

For MSI-based installers, you can use the command -ia "INSTALLDIR=""D:\Program Files""" in cmd.exe

If you want simpler and greater control over the directory, you must have a licensed edition of Chocolatey (Pro and/or Business).

If you have the licensed editor, you can use the --install-directory=value command to change the directory where an application is installed.

Uninstall Chocolatey

If you don’t like Chocolatey for whatever reason, you can uninstall it by following these steps:

  1. Close PowerShell or Command Prompt window.
  2. Open Explorer and head to C:\ProgramData\chocolateyChoco
  3. Simply delete the files contained in the folder, and Chocolatey will stop working.

If you’re unable to find the installation path, use command $env:ChocolateyInstall

0 Comments

KEEP IN TOUCH

Subscribe to our mailing list to get free tips on Data Protection and Data Privacy updates weekly!

Personal Data Protection

REPORTING DATA BREACH TO PDPC?

We have assisted numerous companies to prepare proper and accurate reports to PDPC to minimise financial penalties.
×

Hello!

Click one of our contacts below to chat on WhatsApp

× Chat with us