This repository is a collection of PowerShell modules
and scripts.
Installable
powershell
(v6, v7, ...etc) contain some feature which not found in standard windows powershell. Therefore all incompatibility with standard Windows powershell is aBUG!
Exception to this the flagged scripts.
.
├── build.sh
├── Dockerfile
├── pwsh.sh
├── README.md
├── run.sh
├── docs/
└── src/
├── components/
│ └── component.ps1
├── LAB/
│ └── research-1/
│ └── research1.ps1
├── modules/
│ └── module1
│ └── module1.psm
└── scripts/
└── ps-app-1
└── src
└── modules
build.sh : Build new docker image
Dockerfile : Basic description of new docker image.
pwsh.sh : A simple interactive powershell environment.
README.md : This file
run.sh : Run interactive shell. (Need to build first!)
docs/ : Documentations, todos, research informations
src/ : Collection of scirpts and modules
Note:
build.sh
andrun.sh
is contain name and version numbers! You can change it to build and run custom versions.
Independent components for any projecs. Components has no active effect on the systems.
Research library with experimental projects.
Collection of different modules. This library follow the powershell module standards.
# Import powershell module:
Import-Module moduleName.psm
Script directory contain independent scripts in own folder, which is example, and/or solution for individual problems.
ps-app-1/ : The main folder of one powershell scritp.
ps-app-1/src/ : The source library of the script. (script functionality)
ps-app-1/src/modules : Snapshot of Required modules from root directory.
Modules under
ps-app-1/src/modules
are not guaranteed that contain the latest version of module in root directory.
Extra modules are imported to the interactive shell, for example: PSScriptAnalyzer
is ready to run with Invoke-ScriptAnalyzer
command.
- PSScriptAnalyzer
Only requirements is Powershell. All script and module are designed for Windows built-in powershell.
Required Windows 10 or later. Powershell are pre-installed. (Probably scripts are compatible with Windows 7, but its never tested)
You have many options to run powershell on Linux. This repository provides one recommended solution for platform independent developement. This solution is work on any linux distribution when you have docker
or podman
# Dockerfile is a basic description of recommended container image.
# Use my build script: build.sh
chmod +x ./build.sh
./build.sh
# After a success build, you can run an interactive powershell.
chmod +x ./run.sh
./run.sh
run.sh
mount the root ./src
folder to the container root directory. This content is editable from host system, and possible to test changes without restart container.
# With brew:
# Install homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install powershell with brew
brew install --cask powershell
# Run Powershell
pwsh
# Update Powershell
brew update
brew upgrade powershell --cask