Correct case of $false special variable

This commit is contained in:
xtqqczze
2020-01-13 19:25:35 +00:00
parent 47a3b4e293
commit bb58e2aab6
6 changed files with 23 additions and 23 deletions
@@ -14,7 +14,7 @@ Describe 'Group policy settings tests' -Tag CI,RequireAdminOnWindows {
AfterAll {
$global:PSDefaultParameterValues = $originalDefaultParameterValues
if ( $IsWindows ) {
[System.Management.Automation.Internal.InternalTestHooks]::SetTestHook('BypassGroupPolicyCaching', $False)
[System.Management.Automation.Internal.InternalTestHooks]::SetTestHook('BypassGroupPolicyCaching', $false)
}
}
@@ -80,7 +80,7 @@ Describe 'Group policy settings tests' -Tag CI,RequireAdminOnWindows {
Get-Alias $RareCommand -ErrorAction SilentlyContinue | Out-Null
(Get-Module $ModuleToLog).LogPipelineExecutionDetails = $False # turn off logging
(Get-Module $ModuleToLog).LogPipelineExecutionDetails = $false # turn off logging
Remove-ItemProperty -Path $KeyPath -Name EnableModuleLogging -Force # turn off GP setting
Remove-item $ModuleNamesKeyPath -Recurse -Force
# usually event becomes visible in the log after ~500 ms