Skip to content

Releases: a-bode/PSScriptConfig

v1.2.1

02 Mar 11:32
Compare
Choose a tag to compare

General Updates and Fixes

  • The New-PSScriptConfig -value Parameter now accepts any type #2

PSScriptConfig v1.2.0

28 Feb 15:55
Compare
Choose a tag to compare

Initial Release after CI/CD pipeline testing

Build Status

PSScriptConfig

Save recurring script configurations in your PowerShell profile and have them always available via the $PSSCriptConfig variable.

Installation

Install-Module PSScriptConfig
Import-Module PSScriptConfig
Register-PSScriptConfig

Configuration

Add Configuration

New-PSScriptConfig -Key mailRelay -Value mail.contoso.com
New-PSScriptConfig -Key mailRelayPort -Value 25
New-PSScriptConfig -Key mailFrom -Value admin@contoso.com

Get Configurations

$PSScriptConfig
$PSScriptConfig.mailRelay

Change Configuration

For the current session only.

$PSScriptConfig.mailRelay = "smtp.contoso.com"

Save permanently.

Save-PSScriptConfig

Remove Configuration

Remove-PSScriptConfig -Key mailRelay

Usage Example

Send-MailMessage -From $PSScriptConfig.mailFrom -SmtpServer $PSScriptConfig.mailRelay -Port $PSScriptConfig.mailRelayPort -To me@contoso.com -Subject test

PSScriptConfig v1.1.3

28 Feb 14:44
Compare
Choose a tag to compare

PSSCriptConfig v1.1.2

28 Feb 14:38
Compare
Choose a tag to compare

PSScriptConfig v1.1.1

28 Feb 14:07
Compare
Choose a tag to compare