Collection of Powershell modules and scripts for everyday tasks. Use at your own risk.
- add this repository as a bucket
scoop bucket add valor-modulis https://github.com/wookiefriseur/valor-modulis
- get a list of modules
- all modules share a common prefix to make it easier to identify and find them
scoop search vm_
- install a module
scoop install vm_hashutils
scoop install valor-modulis/vm_hashutils
(optional: specify bucket)
- the module is automatically symlinked to a scoop directory in
$ENV:PSModulePath
- autoimport should trigger when you try to use a function from a module (for instance
Get-Hash "Hallo"
) - try to use
Import-Module HashUtils
if autoimport fails
- autoimport should trigger when you try to use a function from a module (for instance
Invoke-Expression (New-Object net.webclient).DownloadString('https://get.scoop.sh')
Set-Executionpolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Not recommended, but you can either clone each module separately or all of them recursively and keep them updated like so:
git clone --recurse-submodules
git pull
git submodule update --recursive --remote
After cloning the repository you can add the functions to the current terminal session through:
- dot sourcing:
. script.ps1
- import if it's a module:
Import-Module ModuleName.psm1
For persistent scripts, load them in your psprofile.
For automatic module import, put it into one of your $ENV:PSModulePath
.
Use prefixes in case of naming conflicts.
- Uninstall providing the Module name:
scoop uninstall Get-Hash
scoop uninstall valor-modulis/Get-Hash
(optional: specify bucket)
- bucket can be removed as follows:
scoop bucket rm valor-modulis
Remove-Module Get-Hash
(this will only unload a module)- uninstall it in scoop for a more permanent solution
Can happen if the bucket inside ~\scoop
is broken. Easiest way is to just add it again.
- remove bucket
- cleanup
- add bucket again
- check
scoop bucket rm valor-modulis
scoop cleanup *
scoop bucket add valor-modulis https://github.com/wookiefriseur/valor-modulis
scoop search vm_