mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Correct case of $false special variable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user