MegaBites-AI/Windows-powershell
0372
1<?xml version="1.0" encoding="utf-8"?>2<policyDefinitions 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">3 <policyNamespaces>4 <target prefix="powershellexecutionpolicy" namespace="Microsoft.Policies.PowerShellCore" />5 <using prefix="windows" namespace="Microsoft.Policies.Windows" />6 </policyNamespaces>7 <resources minRequiredRevision="1.0" />8 <supportedOn>9 <definitions>10 <definition name="SUPPORTED_WIN7" displayName="$(string.SUPPORTED_WIN7)" />11 </definitions>12 </supportedOn>13 <categories>14 <category name="PowerShell" displayName="$(string.PowerShell)">15 </category>16 </categories>17 <policies>18 <policy name="EnableScripts" class="Both" displayName="$(string.EnableScripts)" explainText="$(string.EnableScripts_Explain)" presentation="$(presentation.EnableScripts)" key="Software\Policies\Microsoft\PowerShellCore" valueName="EnableScripts">19 <parentCategory ref="PowerShell" />20 <supportedOn ref="SUPPORTED_WIN7" />21 <enabledValue>22 <decimal value="1" />23 </enabledValue>24 <disabledValue>25 <decimal value="0" />26 </disabledValue>27 <elements>28 <boolean id="UseWindowsPowerShellPolicySetting" valueName="UseWindowsPowerShellPolicySetting" />29 <enum id="ExecutionPolicy" valueName="ExecutionPolicy" required="true">30 <item displayName="$(string.AllScriptsSigned)">31 <value>32 <string>AllSigned</string>33 </value>34 </item>35 <item displayName="$(string.RemoteSignedScripts)">36 <value>37 <string>RemoteSigned</string>38 </value>39 </item>40 <item displayName="$(string.AllScripts)">41 <value>42 <string>Unrestricted</string>43 </value>44 </item>45 </enum>46 </elements>47 </policy>48 <policy name="EnableModuleLogging" class="Both" displayName="$(string.EnableModuleLogging)" explainText="$(string.EnableModuleLogging_Explain)" presentation="$(presentation.EnableModuleLogging)" key="Software\Policies\Microsoft\PowerShellCore\ModuleLogging" valueName="EnableModuleLogging">49 <parentCategory ref="PowerShell" />50 <supportedOn ref="SUPPORTED_WIN7" />51 <enabledValue>52 <decimal value="1" />53 </enabledValue>54 <disabledValue>55 <decimal value="0" />56 </disabledValue>57 <elements>58 <boolean id="UseWindowsPowerShellPolicySetting" valueName="UseWindowsPowerShellPolicySetting" />59 <list id="Listbox_ModuleNames" key="Software\Policies\Microsoft\PowerShellCore\ModuleLogging\ModuleNames" />60 </elements>61 </policy>62 <policy name="EnableTranscripting" class="Both" displayName="$(string.EnableTranscripting)" explainText="$(string.EnableTranscripting_Explain)" presentation="$(presentation.EnableTranscripting)" key="Software\Policies\Microsoft\PowerShellCore\Transcription" valueName="EnableTranscripting">63 <parentCategory ref="PowerShell" />64 <supportedOn ref="SUPPORTED_WIN7" />65 <enabledValue>66 <decimal value="1" />67 </enabledValue>68 <disabledValue>69 <decimal value="0" />70 </disabledValue>71 <elements>72 <boolean id="UseWindowsPowerShellPolicySetting" valueName="UseWindowsPowerShellPolicySetting" />73 <text id="OutputDirectory" valueName="OutputDirectory" />74 <boolean id="EnableInvocationHeader" valueName="EnableInvocationHeader" />75 </elements>76 </policy>77 <policy name="EnableScriptBlockLogging" class="Both" displayName="$(string.EnableScriptBlockLogging)" explainText="$(string.EnableScriptBlockLogging_Explain)" presentation="$(presentation.EnableScriptBlockLogging)" key="Software\Policies\Microsoft\PowerShellCore\ScriptBlockLogging" valueName="EnableScriptBlockLogging">78 <parentCategory ref="PowerShell" />79 <supportedOn ref="SUPPORTED_WIN7" />80 <enabledValue>81 <decimal value="1" />82 </enabledValue>83 <disabledValue>84 <decimal value="0" />85 </disabledValue>86 <elements>87 <boolean id="UseWindowsPowerShellPolicySetting" valueName="UseWindowsPowerShellPolicySetting" />88 <boolean id="EnableScriptBlockInvocationLogging" valueName="EnableScriptBlockInvocationLogging" />89 </elements>90 </policy> 91 <policy name="EnableUpdateHelpDefaultSourcePath" class="Both" displayName="$(string.EnableUpdateHelpDefaultSourcePath)" explainText="$(string.EnableUpdateHelpDefaultSourcePath_Explain)" presentation="$(presentation.EnableUpdateHelpDefaultSourcePath)" key="Software\Policies\Microsoft\PowerShellCore\UpdatableHelp" valueName="EnableUpdateHelpDefaultSourcePath">92 <parentCategory ref="PowerShell" />93 <supportedOn ref="SUPPORTED_WIN7" />94 <enabledValue>95 <decimal value="1" />96 </enabledValue>97 <disabledValue>98 <decimal value="0" />99 </disabledValue>100 <elements>101 <boolean id="UseWindowsPowerShellPolicySetting" valueName="UseWindowsPowerShellPolicySetting" />102 <text id="SourcePathForUpdateHelp" valueName="DefaultSourcePath" required="true"/>103 </elements>104 </policy>105 <policy name="ConsoleSessionConfiguration" class="Both" displayName="$(string.ConsoleSessionConfiguration)" explainText="$(string.ConsoleSessionConfiguration_Explain)" presentation="$(presentation.ConsoleSessionConfiguration)" key="Software\Policies\Microsoft\PowerShellCore\ConsoleSessionConfiguration" valueName="EnableConsoleSessionConfiguration">106 <parentCategory ref="PowerShell" />107 <supportedOn ref="SUPPORTED_WIN7" />108 <enabledValue>109 <decimal value="1" />110 </enabledValue>111 <disabledValue>112 <decimal value="0" />113 </disabledValue>114 <elements>115 <text id="ConsoleSessionConfigurationName" valueName="ConsoleSessionConfigurationName" required="true"/>116 </elements>117 </policy>118 </policies>119</policyDefinitions>120 