xx

$VLC_URL = "https://download.videolan.org/vlc/last/win64/"

Copied!content_copy

$GET_HTML = Invoke-WebRequest $VLC_URL

Copied!content_copy

$FILE = $GET_HTML.Links | Select-Object @{Label='href';Expression={@{$true=$_.href}[$_.href.EndsWith('win64.exe')]}} | Select-Object -ExpandProperty href

Copied!content_copy

$URL = ($VLC_URL+$FILE)

Copied!content_copy

$DOWNLOAD_DIR = "C:\users\qwiklabs\Downloads\"

Copied!content_copy

$OUTPUT_FILE = ($DOWNLOAD_DIR+$FILE)

Copied!content_copy

(new-object System.Net.WebClient).DownloadFile($URL, $OUTPUT_FILE)

Copied!content_copy

cmd.exe /c $OUTPUT_FILE /S

Copied!content_copy

Once the installation process is successfully completed, verify that VLC has successfully been installed with the following command:

Get-Package -Name *vlc*

Copied!content_copy

Name              Version  Source  ProviderName
----              -------  ------  ------------
VLC media player  3.0.16           Programs

Click Check my progress to verify the objective.

VLCCheck my progress

Uninstalling GIMP

You can use Windows Powershell to uninstall programs. If you’ve closed your Powershell window, reopen it again by searching for it in the Start Menu, then right-clicking it and selecting “Run as Administrator”.

You can uninstall GIMP, a photo editor, using this command:

cmd.exe /c "C:\Program Files\GIMP 2\uninst\unins000.exe" /VERYSILENT /NORESTART