Posted On January 7, 2020

PowerShell: Install DotNet 3.5 – the Easy Way

kimconnect 0 comments
blog.KimConnect.com >> Codes >> PowerShell: Install DotNet 3.5 – the Easy Way
$package="dotnet3.5"

# Install Chocolatey
if (!(Get-Command choco.exe -ErrorAction SilentlyContinue)) {
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))}

# Install the package
choco install $package -y

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Basic CSS: Import a Google Font

<style>.red-text {color: red;}p {font-size: 16px;font-family: monospace;}</style><h2 class="red-text">CatPhotoApp</h2><main><p class="red-text">Click here to view more <a href="#">cat photos</a>.</p><a…

Show Users Logons per Computer Names

# This script is to obtain log on information from a set of target computernames…

Set Permissions of NTFS/SMB Directories Recursively

# Set variables here$proxy="http://proxy:80"$directories="\\FILESERVER01\dept01$","\\FILESERVER01\dept02$"$grantAccess="KIMCONNECT\SysAdmins"$access="Full"# Run as$username = "kimconnect\kim"$password = "PASSWORD"#$username = "kimconnect\"+(Read-Host -Prompt 'Input the…