fixing folder name

This commit is contained in:
Mariah Breakey
2017-02-02 16:39:41 -08:00
parent a24728c1a9
commit e011b1d7db
5 changed files with 11 additions and 11 deletions
@@ -386,7 +386,7 @@ function Set-TargetResource
{
Set-EnvironmentVariable -Name $Name -Value $finalPath -Target @('Process')
Write-Verbose -Message ($script:localizedData.EnvVarPathUpdated -f $Name, $currentValueFromProcess, $finalPath)
}
}
}
}
}
@@ -0,0 +1,9 @@
[ClassVersion('1.0.0'), FriendlyName('Environment')]
class MSFT_EnvironmentResource : OMI_BaseResource
{
[Key, Description('The name of the environment variable for which you want to ensure a specific state.')] String Name;
[Write, Description('The desired value for the environment variable.')] String Value;
[Write, Description('Specifies if the environment varaible should exist.'), ValueMap{'Present', 'Absent'}, Values{'Present', 'Absent'}] String Ensure;
[Write, Description('Indicates whether or not the environment variable is the Path variable.')] Boolean Path;
[Write, Description('Indicates the target where the environment variable should be set.'), ValueMap{'Process', 'Machine'}, Values{'Process', 'Machine"\'}] String Target[];
};
@@ -15,7 +15,7 @@ ConvertFrom-StringData @'
EnvVarNotFound = Environment variable '{0}' does not exist.
EnvVarFound = Environment variable '{0}' with value '{1}' was successfully found.
EnvVarFoundWithMisMatchingValue = Environment variable '{0}' with value '{1}' mismatched the specified value '{2}'.
EnvVarRemoved = Environment variable '{0}' removed.
EnvVarRemoved = Environment variable '{0}' was removed.
GetItemPropertyFailure = Failed to get the item property for variable '{0}' with path '{1}'.
RemoveNonExistentVarError = Environment variable '{0}' cannot be removed because it does not exist.
'@
@@ -1,9 +0,0 @@
[ClassVersion("1.0.0"), FriendlyName("Environment")]
class MSFT_EnvironmentResource : OMI_BaseResource
{
[Key, Description("The name of the environment variable for which you want to ensure a specific state.")] String Name;
[Write, Description("The desired value for the environment variable.")] String Value;
[Write, Description("Specifies if the environment varaible should exist."), ValueMap{"Present", "Absent"}, Values{"Present", "Absent"}] String Ensure;
[Write, Description("Indicates whether or not the environment variable is the Path variable.")] Boolean Path;
[Write, Description("Indicates the target where the environment variable should be set."), ValueMap{"Process", "Machine"}, Values{"Process", "Machine"}] String Target[];
};