mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
[Feature] Address Steve's new comments
This commit is contained in:
@@ -498,7 +498,7 @@ namespace System.Management.Automation.Configuration
|
||||
|
||||
/// <summary>
|
||||
/// The GroupPolicy related settings used in PowerShell are as follows in Registry:
|
||||
/// - Software\Policies\Microsoft\Windows\PowerShell -- { EnableScripts (0 or 1); ExecutionPolicy (string) }
|
||||
/// - Software\Policies\Microsoft\PowerShellCore -- { EnableScripts (0 or 1); ExecutionPolicy (string) }
|
||||
/// SubKeys Name-Value-Pairs
|
||||
/// - ScriptBlockLogging { EnableScriptBlockLogging (0 or 1); EnableScriptBlockInvocationLogging (0 or 1) }
|
||||
/// - ModuleLogging { EnableModuleLogging (0 or 1); ModuleNames (string[]) }
|
||||
@@ -528,10 +528,10 @@ namespace System.Management.Automation.Configuration
|
||||
/// "Transcription": {
|
||||
/// "EnableTranscripting": true,
|
||||
/// "EnableInvocationHeader": true,
|
||||
/// "OutputDirectory": "c:\tmp"
|
||||
/// "OutputDirectory": "c:\\tmp"
|
||||
/// },
|
||||
/// "UpdatableHelp": {
|
||||
/// "DefaultSourcePath": "f:\temp"
|
||||
/// "DefaultSourcePath": "f:\\temp"
|
||||
/// },
|
||||
/// "ConsoleSessionConfiguration": {
|
||||
/// "EnableConsoleSessionConfiguration": true,
|
||||
|
||||
@@ -551,7 +551,7 @@ namespace System.Management.Automation
|
||||
case nameof(Transcription): result = policies.Transcription; break;
|
||||
case nameof(UpdatableHelp): result = policies.UpdatableHelp; break;
|
||||
case nameof(ConsoleSessionConfiguration): result = policies.ConsoleSessionConfiguration; break;
|
||||
default: Diagnostics.Assert(false, "Unreachable code"); break;
|
||||
default: Diagnostics.Assert(false, "Should be unreachable code. Update this switch block when new PowerShell policy types are added."); break;
|
||||
}
|
||||
if (result != null) { return (T) result; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user