HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Windows/PolicyDefinitions/zh-TW/PowerShellExecutionPolicy.adml
<?xml version="1.0" encoding="utf-8"?>
<policyDefinitionResources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" revision="1.0" schemaVersion="1.0" xmlns="http://www.microsoft.com/GroupPolicy/PolicyDefinitions">
  <displayName>Windows PowerShell</displayName>
  <description>這個檔案包含 Windows PowerShell 的設定選項</description>
  <resources>
    <stringTable>
      <string id="AllScripts">允許所有指令碼</string>
      <string id="AllScriptsSigned">只允許簽署的指令碼</string>
      <string id="EnableScripts">開啟指令碼執行</string>
      <string id="EnableScripts_Explain">這個原則設定可以讓您設定指令碼執行原則,控制允許執行哪些指令碼。

如果您啟用這個原則設定,將允許執行下拉式清單中選取的指令碼。

[只允許簽署的指令碼] 原則設定只允許執行由受信任的發行者簽署的指令碼。

[允許本機指令碼和遠端已簽署的指令碼] 原則設定允許任何本機的指令碼執行; 來自網際網路的指令碼則必須由受信任的發行者簽署。

[允許所有指令碼] 原則設定允許所有指令碼執行。

如果您停用這個原則設定,將不允許任何指令碼執行。

注意: 這個原則設定同時位於本機群組原則編輯器的 [電腦設定] 與 [使用者設定] 之下。[電腦設定] 的優先順序高於 [使用者設定]。

如果您停用或未設定這個原則設定,該設定會還原為每個電腦的喜好設定; 如果未設定,則預設值為 [不允許任何指令碼]。</string>
      <string id="PowerShell">Windows PowerShell</string>
      <string id="RemoteSignedScripts">允許本機指令碼和遠端已簽署的指令碼</string>
      <string id="SUPPORTED_WIN7">至少需要 Microsoft Windows 7 或 Windows Server 2008 系列產品</string>
       
      <string id="EnableModuleLogging">開啟模組記錄</string>
      <string id="EnableModuleLogging_Explain">
        這個原則設定可以讓您開啟或關閉 Windows PowerShell 模組記錄。

        如果您啟用這個原則設定,特定模組成員的管線執行事件會記錄在 [事件檢視器] 的 Windows PowerShell 記錄中。啟用模組的這個原則設定,就等同將模組的 LogPipelineExecutionDetails 屬性為 True。

        如果您停用這個原則設定,會停用所有 Windows PowerShell 模組的執行事件記錄。停用模組的這個原則設定,就等同將模組的 LogPipelineExecutionDetails 屬性設定為 False。

        如果您未設定這個原則設定,模組的 LogPipelineExecutionDetails 屬性或嵌入式管理單元會決定是否要記錄模組的執行事件或嵌入式管理單元。根據預設,所有模組的 LogPipelineExecutionDetails 屬性和嵌入式管理單元會設定成 False。

        若要將模組和嵌入式管理單元新增至原則設定清單中,按一下 [顯示],然後在清單中輸入模組名稱。清單中的模組和嵌入式管理單元必須安裝在電腦中。

        注意: 這個原則設定同時位於群組原則編輯器的 [電腦設定] 與 [使用者設定] 之下。[電腦設定] 原則設定的優先順序高於 [使用者設定] 原則設定。
      </string>

      <string id="EnableTranscripting">打開 PowerShell 轉譯</string>
      <string id="EnableTranscripting_Explain">
        這個原則設定可讓您將 Windows PowerShell 命令的輸入與輸出擷取到文字式的記錄。

        如果您啟用這個原則設定,Windows PowerShell 將啟用 Windows PowerShell、Windows PowerShell ISE,以及其他有效率的調控
        Windows PowerShell 引擎的應用程式的轉譯。Windows PowerShell 預設會記錄文字記錄並輸出到每個使用者的「我的文件」目錄下,
        包含檔案名稱含有「PowerShell_transcript」以及電腦名稱與啟動時間。啟用這個原則等同於在每個 Windows PowerShell 工作階段
        呼叫 Start-Transcript cmdlet。

        如果您停用這個原則設定,PowerShell 為主的應用程式轉譯將預設為停用,即使轉譯仍可透過 Start-Transcript cmdlet 啟用。

        如果您使用 OutputDirectory 設定啟用轉譯記錄到共用的位置,請務必限制目錄的存取,以防止使用者檢視其他使用者或電腦的文字記錄。

        注意事項: 這個原則設定同時存在於「群組原則編輯器」的「電腦設定」和「使用者設定」兩者底下。「電腦設定」的原則設定優先於「使用者設定」的原則設定。
      </string>

      <string id="EnableScriptBlockLogging">打開 PowerShell 指令碼區塊記錄</string>
      <string id="EnableScriptBlockLogging_Explain">
        這個原則設定可將所有 PowerShell 指令碼記錄輸入到 Microsoft-Windows-PowerShell/Operational 事件記錄檔。如果您啟用這個原則設定,
        Windows PowerShell 會記錄命令的處理、指令碼區塊、功能,以及指令碼 - 無論是互動式或是自動地叫用。

        如果您停用這個原則設定,PowerShell 的指令碼輸入記錄將被停用。

        如果您啟用指令碼引動過程記錄,PowerShell 會額外記錄當命令、指令碼區塊、功能,或指令碼啟動或停止時的事件。啟用引動過程記錄會產生
        大量的事件記錄檔。
        
        注意事項: 這個原則設定同時存在於「群組原則編輯器」的「電腦設定」和「使用者設定」兩者底下。「電腦設定」的原則設定優先於「使用者設定」的原則設定。
      </string>
      
      <string id="EnableUpdateHelpDefaultSourcePath">設定 Update-Help 的預設來源路徑</string>
      <string id="EnableUpdateHelpDefaultSourcePath_Explain">這個原則設定可以讓您設定 Update-Help Cmdlet 的 SourcePath 參數預設值。

如果您啟用這個原則設定,Update-Help Cmdlet 會使用指定的值做為 SourcePath 參數的預設值。在 Update-Help Cmdlet 的 SourcePath 參數指定不同的值,可以覆寫這個預設值。

如果停用或未設定這個原則設定,則這個原則設定不會設定 Update-Help Cmdlet 的 SourcePath 參數預設值。

注意: 這個原則設定同時位於群組原則編輯器的 [電腦設定] 與 [使用者設定] 之下。[電腦設定] 原則設定的優先順序高於 [使用者設定] 原則設定。
      </string>
      <!--<string id="PowerShell">Windows PowerShell</string>-->
    </stringTable>
    <presentationTable>
      <presentation id="EnableScripts">
        <dropdownList refId="ExecutionPolicy" noSort="true">執行原則</dropdownList>
      </presentation>
      <presentation id="EnableModuleLogging">
        <text>若要開啟一或多個模組的記錄,按一下 [顯示],然後在清單中輸入模組名稱。支援萬用字元。</text>
        <listBox refId="Listbox_ModuleNames" required="false">模組名稱</listBox>
        <text>若要開啟 Windows PowerShell 核心模組的記錄,在清單中輸入下列模組名稱:</text>
        <text>Microsoft.PowerShell.*</text>
        <text>Microsoft.WSMan.Management</text>
      </presentation>
      <presentation id="EnableTranscripting">
        <textBox refId="OutputDirectory"><label>文字記錄輸出目錄</label></textBox>
        <checkBox refId="EnableInvocationHeader">包含引動過程標題:</checkBox>
      </presentation>     
      <presentation id="EnableScriptBlockLogging">
        <checkBox refId="EnableScriptBlockInvocationLogging">記錄指令碼區塊引動過程啟動/停止事件:</checkBox>
      </presentation>           
      <presentation id="EnableUpdateHelpDefaultSourcePath">
        <textBox refId="SourcePathForUpdateHelp">
          <label>預設來源路徑</label>
        </textBox>
      </presentation>
    </presentationTable>    
  </resources>

</policyDefinitionResources>