Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 1.77 KB

README.md

File metadata and controls

48 lines (40 loc) · 1.77 KB

powershell-utils

Preinstall

Download Last Powershell Version:

https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows

Then open pwsh with Administrator and run this

mkdir (Split-Path -Path $profile -Parent) -errorAction SilentlyContinue 
echo $null >> $profile
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Set-ExecutionPolicy -Scope LocalMachine -ExecutionPolicy RemoteSigned -Force
Install-Module -Name PowerShellGet -Force
Install-PackageProvider -Name NuGet -Force
Install-Module PowerShellGet  -Scope AllUsers -Force -SkipPublisherCheck
Install-Module Pansies -AllowClobber
Install-Module PSReadLine -Force -SkipPublisherCheck -AllowPrerelease

Install

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
$(Invoke-WebRequest https://raw.githubusercontent.com/barnuri/powershell-utils/master/installProfileTools.ps1 -Headers @{"Cache-Control"="no-cache"}).Content | iex

Probelms with PSReadLine Installation

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Get-InstalledModule -Name PSReadLine -AllVersions | Uninstall-Module
powershell -NoProfile -Command "Uninstall-Module PSReadLine"
powershell -NoProfile -NonInteractive -Command "Uninstall-Module PSReadLine"
pwsh -NoProfile -Command "Uninstall-Module PSReadLine"
pwsh -NoProfile -NonInteractive -Command "Uninstall-Module PSReadLine"
Install-Module PSReadLine -Force -SkipPublisherCheck -AllowPrerelease

Update

syncPowershellUtils

deps

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
$(Invoke-WebRequest https://raw.githubusercontent.com/barnuri/powershell-utils/master/installCommonDeps.ps1 -Headers @{"Cache-Control"="no-cache"}).Content | iex