Files
PowerShell-PSDscResources/Examples/Sample_Environment_CreateNonPathVariable.ps1
T
Simon Heather 2a7b5eef2b Revert "Fix example dir BOM files"
This reverts commit 590a77441f.
2019-04-28 18:49:16 +01:00

26 lines
621 B
PowerShell

<#
.SYNOPSIS
Creates the environment variable 'TestEnvironmentVariable' and sets the value to 'TestValue'
both on the machine and within the process.
#>
Configuration Sample_Environment_CreateNonPathVariable
{
param ()
Import-DscResource -ModuleName 'PSDscResources'
Node localhost
{
Environment CreateEnvironmentVariable
{
Name = 'TestEnvironmentVariable'
Value = 'TestValue'
Ensure = 'Present'
Path = $false
Target = @('Process', 'Machine')
}
}
}
Sample_Environment_CreateNonPathVariable