PowerShell Remote Forge for Sudo
MIT License
PowerShell RemoteForge implementation for a sudo wrapped process.
See SudoForge index for more details.
These cmdlets have the following requirements
The follow example runs the scriptblock specified under a new PowerShell process under sudo
.
Invoke-Remote sudo: { whoami }
The next example shows how a custom credential can be specified for non-interactive purposes.
How the credential is created can be done through various means like through a SecretStore
.
# Prompts for the password in this example
$sudoInfo = New-SudoForgeInfo -Credential root
Invoke-Remote $sudoInfo { whoami }
This module is not available in the gallery at this point in time as it is more a POC for RemoteForge
.
Contributing is quite easy, fork this repo and submit a pull request with the changes.
To build this module run .\build.ps1 -Task Build
in PowerShell.
To test a build run .\build.ps1 -Task Test
in PowerShell.
This script will ensure all dependencies are installed before running the test suite.