ℹ️
The following is based on the project profiles described in the github PSCONSOLE repository. You can find more explanation on the what/why/how there.
-
copy
~\Projects\kluster\downloads\@HOME-Projects_.psprofile.ps1to your~\Projectsfolder. This allows you to select a "default" project amongst all projects in this folder. Make sure only one project is uncommented.- rename this file to
.psprofile.json - if you are using a different root folder for the "kluster" project, change the
. ~\Projects\kluster\.psprofile.ps1line to. ~\xyz\kluster\.psprofile.ps1. - update this file with links to your projects
- rename this file to
-
copy
~\Projects\kluster\downloads\@HOME-Documents-WindowsPowerShell_profile.ps1to your~\Documents\WindowsPowerShellfolder- either rename this file to
profile.psor add (some of) the content of this file yourprofile.ps - if you are using a different root folder for the "kluster" project, change the
. ~\Projects\.psprofile.ps1line to. ~\xyz\.psprofile.ps1.
- either rename this file to
-
copy
~\Projects\kluster\downloads\@HOME-Documents-WindowsPowerShell_console.jsonto your~\Documents\WindowsPowerShellfolder- rename this file to
console.json
- rename this file to
-
copy
~\Projects\kluster\downloads\@HOME-Documents-WindowsPowerShell-Scripts_Apply-PSConsoleSettings.ps1to theScriptsfolder (create it if it doesn't exist) under your~\Documents\WindowsPowerShellfolder- rename this file to
Apply-PSConsoleSettings.ps1
- rename this file to
-
open a PowerShell terminal
- if you get a warning that you cannot execute scripts, execute
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned - alternatively, you can also use the
@CP_Start-PowerShellUseror@CP_Start-PowerShellAdminshortcuts that are created in the~\Projects\kluster\scriptsfolder after preparing the kluster environment.
- if you get a warning that you cannot execute scripts, execute
-
verify that executing
echo $env:USERPROFILEin a PowerShell terminal gives you your home-directory- we have seen this go wrong, but the remedy depends on your environment. It is important that this gets sorted before you continue.
ℹ️
The following is taken from the github PSCONSOLE repository.
From Windows 10 build 1809 onward, the PSReadline module was upgraded from version 1.2 to a 2.0.0-beta version. This beta version causes a lot of issues that cannot be worked around. To make the "kluster"-scripts work, you MUST downgrade the PSReadLine module to version 1.2
-
check if you have version 2.0.0
Get-Module PSReadLinegives
ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Script 2.0.0 PSReadLine {Get-PSReadlineKeyHandler, Get-PSReadlineOption, Remove-PS... -
run PowerShell as administrator, and execute
Install-Module -Name PSReadLine -RequireVersion 1.2 -SkipPublisherCheck
-
delete
C:\Program Files\WindowsPowerShell\Modules\PSReadline\2.0.0 -
check if the module is installed
Get-InstalledModule PSReadLinegives
Version Name Repository Description ------- ---- ---------- ----------- 1.2 PSReadLine PSGallery Great command line editing in the Powe...