if($config.SelectSingleNode("//*[local-name()='policy' and @key='$($SplitPath.ToLower())' and (@valueName='$($Item.ToLower())' or @Name='$($Item.ToLower())' or .//*[local-name()='enum' and @valueName='$($Item.ToLower())'])]"))
{
@ -13686,7 +13686,7 @@ function UpdateLGPEPolicies
}
$Parameters=@{
Scope="Computer"
Scope="User"
# e.g. SOFTWARE\Microsoft\Windows\CurrentVersion\Policies
if($config.SelectSingleNode("//*[local-name()='policy' and @key='$($SplitPath.ToLower())' and (@valueName='$($Item.ToLower())' or @Name='$($Item.ToLower())' or .//*[local-name()='enum' and @valueName='$($Item.ToLower())'])]"))
{
@ -10096,7 +10096,7 @@ function UpdateLGPEPolicies
}
$Parameters=@{
Scope="Computer"
Scope="User"
# e.g. SOFTWARE\Microsoft\Windows\CurrentVersion\Policies
if($config.SelectSingleNode("//*[local-name()='policy' and @key='$($SplitPath.ToLower())' and (@valueName='$($Item.ToLower())' or @Name='$($Item.ToLower())' or .//*[local-name()='enum' and @valueName='$($Item.ToLower())'])]"))
{
@ -11317,7 +11317,7 @@ function UpdateLGPEPolicies
}
$Parameters=@{
Scope="Computer"
Scope="User"
# e.g. SOFTWARE\Microsoft\Windows\CurrentVersion\Policies
if($config.SelectSingleNode("//*[local-name()='policy' and @key='$($SplitPath.ToLower())' and (@valueName='$($Item.ToLower())' or @Name='$($Item.ToLower())' or .//*[local-name()='enum' and @valueName='$($Item.ToLower())'])]"))
{
@ -13726,7 +13726,7 @@ function UpdateLGPEPolicies
}
$Parameters=@{
Scope="Computer"
Scope="User"
# e.g. SOFTWARE\Microsoft\Windows\CurrentVersion\Policies
if($config.SelectSingleNode("//*[local-name()='policy' and @key='$($SplitPath.ToLower())' and (@valueName='$($Item.ToLower())' or @Name='$($Item.ToLower())' or .//*[local-name()='enum' and @valueName='$($Item.ToLower())'])]"))
{
@ -13091,7 +13091,7 @@ function UpdateLGPEPolicies
}
$Parameters=@{
Scope="Computer"
Scope="User"
# e.g. SOFTWARE\Microsoft\Windows\CurrentVersion\Policies
if($config.SelectSingleNode("//*[local-name()='policy' and @key='$($SplitPath.ToLower())' and (@valueName='$($Item.ToLower())' or @Name='$($Item.ToLower())' or .//*[local-name()='enum' and @valueName='$($Item.ToLower())'])]"))
{
@ -13128,7 +13128,7 @@ function UpdateLGPEPolicies
}
$Parameters=@{
Scope="Computer"
Scope="User"
# e.g. SOFTWARE\Microsoft\Windows\CurrentVersion\Policies