This collection of functions is designed to simplify the completion of basic tasks without relying on slow Windows UI. It can help you to learn PowerShell: retrieve information about commands and CLI utilities using the Get-Help* set of cmdlets. By studying the source code, you'll also gain a better understanding of what PowerShell is truly capable of. And the Write-* cmdlets will help you write scripts with greater ease.
-
SystemEssentials - Useful tools for learning and scripting on PowerShell.
-
SystemRestore - Backup and restore the system from terminal.
-
Environment.Path - Manipulate and retrieve
Pathenvironment variable.
- Rename-UserProfile - Rename user account and home folder.
Install-Module Microsoft.PowerShell.ConsoleGuiTools
Install-Module SystemRestore
Install-Module SystemEssentials
Install-Module Environment.PathTLDR: Clone this repository to $HOME\Documents\PowerShell\Modules. Add Import-Module <ModuleName> in your profile.
Run the following commands in PowerShell:
$InstallPath = $env:PSModulePath -split ([IO.Path]::PathSeparator) | select -first 1
git clone 'https://github.com/JoyHak/PowerShell.git' $InstallPathor
gh repo clone JoyHak/PowerShell $InstallPathAdd imports to your profile. Run notepad $profile and add this at the top:
Install-Module Microsoft.PowerShell.ConsoleGuiTools # for SystemRestore only, you can remove it
Import-Module SystemRestore
Import-Module SystemEssentials
Import-Module Environment.Path
# optional
Remove-Alias ? -Force
Set-Alias ? Get-HelpMessage
Set-Alias error Get-Error
Set-Alias grid Out-ConsoleGridViewGet-Command -module `
SystemEssentials, SystemRestore, Environment.Path `
-command Function, AliasTo update a manually installed module, repeat the installation steps, or run:
$InstallPath = $env:PSModulePath -split ([IO.Path]::PathSeparator) | select -first 1
git -C $InstallPath pullor
Set-Location $InstallPath
gh repo syncUninstall-Module SystemEssentials, SystemRestore, Environment.Path, Microsoft.PowerShell.ConsoleGuiToolsor
Get-InstalledModule `
SystemEssentials, SystemRestore, Environment.Path, Microsoft.PowerShell.ConsoleGuiTools |
select -expand InstalledLocation |
Remove-Item -force -recurse