Installing program in PS

by JOHN

IT
random_image

Installing program in PowerShell (Windows)

You must use administrator privilege.

First, Check your Execution Policy.

  • Get-ExecutionPolicy -List

Change ExecutionPolicy from Undefined to RemoteSigned.

  • Set-ExecutionPolicy -Scope LocalMachine -ExecutionPolicy RemoteSigned -Force

If your software requires FullLanguage LanguageMode, change the language mode.

  • $ExecutionContext.SessionState.LanguageMode = "FullLanguage"

Install your program.

  • Install-Module posh-git -Scope AllUsers -Force

If you want to use your module, run the following command.

  • Import-Module posh-git


0
Leave a Comment:
Search