mirror of
https://github.com/PowerShell/PSDscResources
synced 2026-06-21 13:45:29 +00:00
fixing folder name
This commit is contained in:
+1
-1
@@ -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[];
|
||||
};
|
||||
BIN
Binary file not shown.
+1
-1
@@ -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[];
|
||||
};
|
||||
Reference in New Issue
Block a user