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

25 lines
519 B
PowerShell

<#
.SYNOPSIS
Removes the environment variable 'TestEnvironmentVariable' from
both the machine and the process.
#>
Configuration Sample_Environment_Remove
{
param ()
Import-DscResource -ModuleName 'PSDscResources'
Node localhost
{
Environment RemoveEnvironmentVariable
{
Name = 'TestEnvironmentVariable'
Ensure = 'Absent'
Path = $false
Target = @('Process', 'Machine')
}
}
}
Sample_Environment_Remove