Skip to content

jhonnyelhelou91/UtilityHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Utility Helpers

PowerShell Helper scripts to manage tools.

Getting Started

  • Copy the files
  • Open Command Line or PowerShell (Window + X, A)
  • If you opened Command Prompt, then type powershell in order to use PowerShell commands
  • Navigate to the scripts directory
    cd your_directory
  • Type
    Import-Module .\UtilityHelper.psm1
  • Now you can use the methods from your PowerShell session

Adding Script to Profile [Optional]

  • Enable execution policy using PowerShell Admin
    Set-ExecutionPolicy Unrestricted
  • Navigate to the profile path
    cd (Split-Path -parent $PROFILE)
  • Open the location in Explorer
    ii .
  • Create the user profile if it does not exist
    If (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
  • Import the module in the PowerShell profile
    Import-Module -Path script_directory -ErrorAction SilentlyContinue

Examples

Add-BuildTools Example

Install Build Tools using Visual Studio Installer

Add Build Tools

Add-BuildTools

Add-DotnetSDK Example

Install DOTNET SDK and add version to environment variable

Add latest Dotnet SDK

Add-DotnetSDK

Add specific Dotnet SDK

Add-DotnetSDK -Version 2.2

Add-ServiceFabric Example

Install Service Fabric SDK.

Install Service Fabric

Add-ServiceFabric

Add-AngularTools Example

Install Angular tools: nodeJS, npm, angular -cli and windows-build-tools globally.

Add Angular tools

Add-AngularTools

Add-Tools Example

Install or update your favorite tools.

Add Or Update favorite tools

Add-Tools -Tools 'googlechrome', 'firefox', '7zip.install', 'putty.install', 'git', 'notepadplusplus.install'

Install specific tool version

Add-Tools -Tools 'git.install' -Version '2.10'